charts
charts copied to clipboard
Line chart is buggy
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