TreemapChartEngine
struct · ferroui-livecharts · v0.5.0
struct TreemapChartEngine
Members
layout
fn layout(nodes: &[TreemapNode], rect: Rect, padding: f64) -> Vec<TreemapTile>
The tiles of one series laid out in rect, in the order the source emits them: each
level squarified in descending weight, a node followed by its descendants.
measure
fn measure(size: Size, series: &[TreemapSeries], options: &TreemapOptions) -> Result<Scene, ChartError>
measure_with_labels
fn measure_with_labels(size: Size, series: &[TreemapSeries], options: &TreemapOptions, measure_text: impl FnMut(&str, f64) -> Size) -> Result<Scene, ChartError>
Native hosts supply their text metrics here, so that labels are culled with the typeface that draws them.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.