Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 848 Bytes

PointChart.md

File metadata and controls

36 lines (28 loc) · 848 Bytes

PointChart

Using PointChart in your project:

  1. When you want a gradient shade
  PointChart(
    modifier = Modifier,
    colors = // colors
    pointData = // list of PointData 
  )
  1. When you want a solid shade:
  PointChart(
    modifier = Modifier,
    color = // colors
    pointData = // list of PointData 
  )

Creating Data Set:

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.

Additional Configuration (Optional)

  • 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