Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Line chart is buggy #42

@haoyangxie

Description

@haoyangxie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions