ChartTitle<D> class

Chart behavior that adds title text to a chart. An optional second line of text may be rendered as a sub-title.

Titles will by default be rendered as the outermost component in the chart margin.

Implemented types

Constructors

ChartTitle(String title, {BehaviorPosition? behaviorPosition, int? innerPadding, int? layoutMinSize, int? layoutPreferredSize, int? outerPadding, MaxWidthStrategy? maxWidthStrategy, ChartTitleDirection? titleDirection, OutsideJustification? titleOutsideJustification, int? titlePadding, TextStyleSpec? titleStyleSpec, String? subTitle, TextStyleSpec? subTitleStyleSpec})
Constructs a ChartTitle.

Properties

behaviorPosition BehaviorPosition
Layout position for the title.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
innerPadding int
Space between the "inside" of the chart, and the title behavior itself.
getter/setter pair
isRtl bool
no setter
layoutMinSize int?
Minimum size of the legend component. Optional.
getter/setter pair
layoutPreferredSize int?
Preferred size of the legend component. Defaults to 0.
getter/setter pair
maxWidthStrategy MaxWidthStrategy
Strategy for handling title text that is too large to fit. Defaults to truncating the text with ellipses.
getter/setter pair
outerPadding int
Space between the "outside" of the chart, and the title behavior itself.
getter/setter pair
role String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subTitle String?
Secondary text for the sub-title.
getter/setter pair
subTitleStyleSpec TextStyleSpec
Style of the subTitle text.
getter/setter pair
title String
Primary text for the title.
getter/setter pair
titleDirection ChartTitleDirection
Direction of the chart title text.
getter/setter pair
titleOutsideJustification OutsideJustification
Justification of the title text if it is positioned outside of the draw area.
getter/setter pair
titlePadding int
Space between the title and sub-title text, if defined.
getter/setter pair
titleStyleSpec TextStyleSpec
Style of the title text.
getter/setter pair

Methods

attachTo(BaseChart<D> chart) → void
Injects the behavior into a chart.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFrom(BaseChart<D> chart) → void
Removes the behavior from a chart.
override
toString() String
A string representation of this object.
inherited

Operators

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