BasicChartSpec class
The specification for a basic chart.
See BasicChartType for the list of charts this supports.
Constructors
-
BasicChartSpec({List<
BasicChartAxis> ? axis, String? chartType, String? compareMode, List<BasicChartDomain> ? domains, int? headerCount, bool? interpolateNulls, String? legendPosition, bool? lineSmoothing, List<BasicChartSeries> ? series, String? stackedType, bool? threeDimensional, DataLabel? totalDataLabel}) - BasicChartSpec.fromJson(Map json_)
Properties
-
axis
↔ List<
BasicChartAxis> ? -
The axis on the chart.
getter/setter pair
- chartType ↔ String?
-
The type of the chart.
Possible string values are:
getter/setter pair
- compareMode ↔ String?
-
The behavior of tooltips and data highlighting when hovering on data and
chart area.
Possible string values are:
getter/setter pair
-
domains
↔ List<
BasicChartDomain> ? -
The domain of data this is charting.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerCount ↔ int?
-
The number of rows or columns in the data that are "headers".
getter/setter pair
- interpolateNulls ↔ bool?
-
If some values in a series are missing, gaps may appear in the chart (e.g,
segments of lines in a line chart will be missing).
getter/setter pair
- legendPosition ↔ String?
-
The position of the chart legend.
Possible string values are:
getter/setter pair
- lineSmoothing ↔ bool?
-
Gets whether all lines should be rendered smooth or straight by default.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
series
↔ List<
BasicChartSeries> ? -
The data this chart is visualizing.
getter/setter pair
- stackedType ↔ String?
-
The stacked type for charts that support vertical stacking.
getter/setter pair
- threeDimensional ↔ bool?
-
True to make the chart 3D.
getter/setter pair
- totalDataLabel ↔ DataLabel?
-
Controls whether to display additional data labels on stacked charts which
sum the total value of all stacked values at each value along the domain
axis.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited