PieChart<S extends Comparable, C extends Comparable> class
abstract
- Inheritance
-
- Object
- Chart<
S, C, SingleValueCategoryModel< S, C> > - PieChart
Constructors
- PieChart({String titleText = '', String subtitleText = '', dynamic width, dynamic height, ChartXAxis? xAxis, ChartYAxis? yAxis})
-
factory
Properties
- accessibility ↔ ChartAccessibility?
-
Returns accessibility of chart
getter/setter pairinherited
- chartOptions ↔ ChartOptions?
-
Returns chartOptions of chart
getter/setter pairinherited
-
chartSeries
→ List<
ChartSeries> -
An array of all the chart's series.
no setterinherited
- element → Element
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ dynamic
-
Returns height of chart
getter/setter pairinherited
- isDirtyBox ← bool
-
no getterinherited
- isDirtyLegend ← bool
-
no getterinherited
- legend ↔ ChartLegend?
-
Returns legend of chart
getter/setter pairinherited
-
model
↔ SingleValueCategoryModel<
S, C> ? -
Returns model
getter/setter pairinherited
- plotOptions ↔ ChartPlotOptions?
-
Returns plotOptions of chart
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
series
→ List<
ChartDataSets> -
no setterinherited
- subtitle ↔ ChartTitle?
-
Returns subtitle of chart
getter/setter pairinherited
- title ↔ ChartTitle?
-
Returns title of chart
getter/setter pairinherited
- tooltip ↔ ChartTooltip?
-
Returns tooltip of chart
getter/setter pairinherited
- width ↔ dynamic
-
Returns width of chart
getter/setter pairinherited
- xAxis ↔ ChartXAxis?
-
Returns xAxis of chart
getter/setter pairinherited
- yAxis ↔ ChartYAxis?
-
Returns yAxis of chart
getter/setter pairinherited
Methods
-
addSeries(
ChartDataSets options, [bool redraw = true, bool animation = true]) → ChartSeries? -
Add a series to the chart after render time.
Note that this method should never be used
when adding data synchronously at chart render time,
as it adds expense to the calculations and rendering.
When adding data at the same time as the chart is initialized,
add the series as a configuration option instead. With multiple axes,
the offset is dynamically adjusted.
inherited
-
at<
T> (List< T> ? list, int index) → T? -
inherited
-
destroy(
) → void -
Removes the chart and purges memory.
This method should be called before writing a new chart into the same container.
It is called internally on window unload to prevent leaks.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
redraw(
) → void -
inherited
-
reflow(
) → void -
Reflows the chart to its container.
By default, the chart reflows automatically to
its container following a window.resize event,
as per the chart.reflow option. However, there are no reliable events for div resize,
so if the container is resized without a window resize event,
this must be called explicitly.
inherited
-
render(
) → void -
Render chart with chart model
inherited
-
setSize(
[num width, num height, AnimationOptions animation]) → void -
Resize the chart to a given width and height.
In order to set the width only, the height argument may be skipped.
To set the height only, pass undefined for the width.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → void -
update chart's data and redraw
inherited
-
updatePoint(
int seriesIndex, int pointIndex, num value, [bool redraw = true, bool animation = true]) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited