- When you want a gradient shade
PointChart(
modifier = Modifier,
colors = // colors
pointData = // list of PointData
)
- When you want a solid shade:
PointChart(
modifier = Modifier,
color = // colors
pointData = // list of PointData
)
to create a data set you need to pass List of PointData
, where PointData
looks like:
data class PointData(val xValue: Any, val yValue: Float)
Here, xValue
will be used as Labels and yValue
will represent the progress.
- To add padding the the chart, you can also use
ChartDimens
- To edit Config of the Axis, to suit your need to use
AxisConfig
- To edit the point representation use
PointConfig