ChartSpec class

The specifications of a chart.

Constructors

ChartSpec({String? altText, Color? backgroundColor, ColorStyle? backgroundColorStyle, BasicChartSpec? basicChart, BubbleChartSpec? bubbleChart, CandlestickChartSpec? candlestickChart, DataSourceChartProperties? dataSourceChartProperties, List<FilterSpec>? filterSpecs, String? fontName, String? hiddenDimensionStrategy, HistogramChartSpec? histogramChart, bool? maximized, OrgChartSpec? orgChart, PieChartSpec? pieChart, ScorecardChartSpec? scorecardChart, List<SortSpec>? sortSpecs, String? subtitle, TextFormat? subtitleTextFormat, TextPosition? subtitleTextPosition, String? title, TextFormat? titleTextFormat, TextPosition? titleTextPosition, TreemapChartSpec? treemapChart, WaterfallChartSpec? waterfallChart})
ChartSpec.fromJson(Map json_)

Properties

altText String?
The alternative text that describes the chart.
getter/setter pair
backgroundColor Color?
The background color of the entire chart.
getter/setter pair
backgroundColorStyle ColorStyle?
The background color of the entire chart.
getter/setter pair
basicChart BasicChartSpec?
A basic chart specification, can be one of many kinds of charts.
getter/setter pair
bubbleChart BubbleChartSpec?
A bubble chart specification.
getter/setter pair
candlestickChart CandlestickChartSpec?
A candlestick chart specification.
getter/setter pair
dataSourceChartProperties DataSourceChartProperties?
If present, the field contains data source chart specific properties.
getter/setter pair
filterSpecs List<FilterSpec>?
The filters applied to the source data of the chart.
getter/setter pair
fontName String?
The name of the font to use by default for all chart text (e.g. title, axis labels, legend).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hiddenDimensionStrategy String?
Determines how the charts will use hidden rows or columns. Possible string values are:
getter/setter pair
histogramChart HistogramChartSpec?
A histogram chart specification.
getter/setter pair
maximized bool?
True to make a chart fill the entire space in which it's rendered with minimum padding.
getter/setter pair
orgChart OrgChartSpec?
An org chart specification.
getter/setter pair
pieChart PieChartSpec?
A pie chart specification.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scorecardChart ScorecardChartSpec?
A scorecard chart specification.
getter/setter pair
sortSpecs List<SortSpec>?
The order to sort the chart data by.
getter/setter pair
subtitle String?
The subtitle of the chart.
getter/setter pair
subtitleTextFormat TextFormat?
The subtitle text format.
getter/setter pair
subtitleTextPosition TextPosition?
The subtitle text position.
getter/setter pair
title String?
The title of the chart.
getter/setter pair
titleTextFormat TextFormat?
The title text format.
getter/setter pair
titleTextPosition TextPosition?
The title text position.
getter/setter pair
treemapChart TreemapChartSpec?
A treemap chart specification.
getter/setter pair
waterfallChart WaterfallChartSpec?
A waterfall chart specification.
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