Skip to content

GChartWidget

type: GChart
required: true

The chart component (controller) which manages all components and decides the behavior of the chart.

type: TickerProvider
required: true

The ticker provider used for animations in the chart.

type: Widget Function(BuildContext context, GChart chart)
required: false

A builder function that returns a widget when there is no data in the chart.
by default it will display a text “No data” in the chart area.

type: Widget Function(BuildContext context, GChart chart)
required: false

A builder function that returns a widget when the chart is loading data.
by default it will display a CircularProgressIndicator widget over the chart.