Chart
Displays a chart.
Parameters
the chart itself (excluding axes, markers, etc.). You can use lineChart or columnChart, or provide a custom Chart implementation.
creates and updates the ChartEntryModel for the chart.
the modifier to be applied to the chart.
the axis displayed at the start of the chart.
the axis displayed at the top of the chart.
the axis displayed at the end of the chart.
the axis displayed at the bottom of the chart.
appears when the chart is touched, highlighting the entry or entries nearest to the touch point.
allows for listening to marker visibility changes.
an optional legend for the chart.
houses scrolling-related settings.
whether zooming in and out is enabled.
the animation spec used for difference animations.
whether to display an animation when the chart is created. In this animation, the value of each chart entry is animated from zero to the actual value. This animation isn’t run in previews.
applies a horizontal fade to the edges of the chart area for scrollable charts.
defines whether the content of the chart should be scaled up when the dimensions are such that, at a scale factor of 1, an empty space would be visible near the end edge of the chart.
houses information on the chart’s scroll state. Allows for programmatic scrolling.
defines how the chart’s content is positioned horizontally.
overrides the x step (the difference between the x values of neighboring major entries). If this is null, the default x step (ChartEntryModel.xGcd) is used.
shown when no ChartEntryModel is available.
Displays a chart.
This function accepts a ChartEntryModel. For dynamic data, use the function overload that accepts a ChartModelProducer instance.
Parameters
the chart itself (excluding axes, markers, etc.). You can use lineChart or columnChart, or provide a custom Chart implementation.
the ChartEntryModel for the chart.
the modifier to be applied to the chart.
the axis displayed at the start of the chart.
the axis displayed at the top of the chart.
the axis displayed at the end of the chart.
the axis displayed at the bottom of the chart.
appears when the chart is touched, highlighting the entry or entries nearest to the touch point.
allows for listening to marker visibility changes.
an optional legend for the chart.
houses scrolling-related settings.
whether zooming in and out is enabled.
the chart’s previous ChartEntryModel. This is used to determine whether to perform an automatic scroll.
applies a horizontal fade to the edges of the chart area for scrollable charts.
defines whether the content of the chart should be scaled up when the dimensions are such that, at a scale factor of 1, an empty space would be visible near the end edge of the chart.
houses information on the chart’s scroll state. Allows for programmatic scrolling.
defines how the chart’s content is positioned horizontally.
overrides the x step (the difference between the x values of neighboring major entries). If this is null, the default x step (ChartEntryModel.xGcd) is used.