FluentHorizontalBarChart class

A Fluent 2 horizontal bar chart: one titled strip per data entry, with an optional benchmark marker and a shared legend below.

There is no d3 here — every position is percentage arithmetic over the row width. See FluentHorizontalBarRowLayout.compute for where that arithmetic departs from upstream.

Inheritance

Constructors

FluentHorizontalBarChart({Key? key, required List<FluentChartData> data, double? barHeight, bool hideTooltip = false, FluentChartDataMode chartDataMode = FluentChartDataMode.byDefault, FluentHorizontalBarChartVariant variant = FluentHorizontalBarChartVariant.partToWhole, bool hideLabels = false, bool showTriangle = false, bool showLegendForSinglePointBar = false, String? culture, String? legendsOverflowText, List<FluentChartLegendItem>? legends, bool enabledWrapLines = false, FluentChartPopoverData? calloutPropsPerDataPoint(FluentChartDataPoint point)?, FluentHorizontalBarChartStyle? style})
Creates a horizontal bar chart.
const

Properties

barHeight → double?
Bar height override. Null resolves to 12 (HorizontalBarChart.tsx:106).
final
calloutPropsPerDataPoint → FluentChartPopoverData? Function(FluentChartDataPoint point)?
Overrides for the hover popover of one bar — calloutPropsPerDataPoint (HorizontalBarChart.tsx:479-481).
final
chartDataMode → FluentChartDataMode
How the number beside a row is rendered.
final
culture → String?
Locale tag for number formatting.
final
data → List<FluentChartData>
One entry per row.
final
enabledWrapLines → bool
Whether the legend wraps onto further lines instead of collapsing into an overflow menu — legendProps.enabledWrapLines, spread the same way as legends. Only a wrapped legend renders a row's FluentChartLegendItem.annotationBuilder (Legends.tsx:163).
final
hashCode → int
The hash code for this object.
no setterinherited
hideLabels → bool
Hides the absolute-scale in-bar label (HorizontalBarChart.tsx:285).
final
hideTooltip → bool
Suppresses the hover popover (HorizontalBarChart.tsx:318-321).
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
legends → List<FluentChartLegendItem>?
The legend rows, in place of the ones the chart derives from data — legendProps.legends.
final
legendsOverflowText → String?
Label on the legend overflow control.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showLegendForSinglePointBar → bool
Keeps the legend and skips the placeholder synthesis for a single-point row (HorizontalBarChart.tsx:400).
final
showTriangle → bool
Widens the row spacing to make room for a benchmark marker (useHorizontalBarChartStyles.styles.ts:119-125).
final
style → FluentHorizontalBarChartStyle?
Style layered over the derived defaults and the nearest FluentHorizontalBarChartTheme.
final
variant → FluentHorizontalBarChartVariant
Which scale the row draws against.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<FluentHorizontalBarChart>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited