FluentAnnotationOnlyChart class
A chart made of annotations alone: no axes, no legend, no marks.
The package exports it and the annotations layer requires it, even though
the storybook sidebar omits it. It exists because the Plotly adapter
produces figures whose only content is annotations
(AnnotationOnlyChart.types.ts:14, :22, :30).
Every annotation whose coordinates resolve in data space is dropped:
the context supplies no scales (AnnotationOnlyChart.tsx:139-143), so
resolveDataCoordinate returns nothing and the layer skips the annotation
silently. Only relative and pixel coordinates render here.
Upstream's two-pass measure — an unmeasured annotation is laid out at
180 x 60 on the first frame and snaps once a hidden measurement div reports
(ChartAnnotationLayer.tsx:446-467, :535-536, :607-633) — has no
analogue here, because FluentChartAnnotationLayer measures its children
synchronously during layout. The 180 x 60 fallback and the JSON
measurement-signature cache are therefore both absent.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FluentAnnotationOnlyChart
Constructors
-
FluentAnnotationOnlyChart({Key? key, required List<
FluentChartAnnotation> annotations, String? chartTitle, String? description, double? width, double? height, Color? paperBackgroundColor, Color? plotBackgroundColor, Color? fontColor, String? fontFamily, FluentChartMargins? margin, FluentAnnotationOnlyChartStyle? style}) -
Creates an annotation-only chart.
const
Properties
-
annotations
→ List<
FluentChartAnnotation> -
The annotations to place.
final
- chartTitle → String?
-
Optional heading above the content box. Rendered but hidden from
assistive technology (
AnnotationOnlyChart.tsx:190).final - description → String?
-
Preferred accessible name, taking precedence over chartTitle
(
AnnotationOnlyChart.tsx:169).final - fontColor → Color?
-
Overrides the text colour (
AnnotationOnlyChart.tsx:153).final - fontFamily → String?
-
Overrides the font family (
AnnotationOnlyChart.tsx:154).final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Hard height. Null resolves to the style's 650
(
AnnotationOnlyChart.tsx:92).final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → FluentChartMargins?
-
Converted to padding on the outer box (
AnnotationOnlyChart.tsx:14-29).final - paperBackgroundColor → Color?
-
Overrides the outer background (
AnnotationOnlyChart.tsx:152).final - plotBackgroundColor → Color?
-
Overrides the content-box background (
AnnotationOnlyChart.tsx:162).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → FluentAnnotationOnlyChartStyle?
-
Style layered over the derived defaults and the nearest
FluentAnnotationOnlyChartTheme.
final
- width → double?
-
Hard width. Null honours the incoming constraints.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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