charts icon indicating copy to clipboard operation
charts copied to clipboard

Line chart is buggy

Open haoyangxie opened this issue 1 year ago • 0 comments

I found the line chart couldn't show point in the correct position, for example I revise the line chart data to

var lineChartData by mutableStateOf(
    LineChartData(
      points = listOf(
        Point(0.41163334f, "Label1"),
        Point(0.3429857f, "Label2"),
        Point(0.39720002f, "Label3"),
        Point(0.0842f, "Label4")
      ),
        lineDrawer = SolidLineDrawer(),
    )
  )

  var lineChartData2 by mutableStateOf(
    LineChartData(
      points = listOf(
        Point(0.003534f, "Label1"),
        Point(0.000123f, "Label2"),
        Point(0f, "Label3"),
        Point(0f, "Label4")
      ),
      lineDrawer = SolidLineDrawer(
        color = Color(0xFF00FF00)
      )
    )
  )

Here is the chart image

haoyangxie avatar Apr 04 '23 19:04 haoyangxie