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 for the two upstream defects that arithmetic reproduces.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FluentHorizontalBarChart
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, FluentHorizontalBarChartStyle? style}) -
Creates a horizontal bar chart.
const
Properties
- barHeight → double?
-
Bar height override. Null resolves to 12
(
HorizontalBarChart.tsx:106).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
- 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
- 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