Charty
Charty copied to clipboard
Offset in axis
The point with max yValue
is always at the top edge of the graph. Which clips the circle. It would really help a lot if you could add the functionality to set offsets (as paddings in other views) to the graph.
Thanks!
Hey @arijit4 ,
What you mean by clips the circle
, mind attaching some screenshot withmore detail? thanks
Sorry @hi-manshu for not being clear enough.
The circles/blobs on points (don't know what to call it🥲) get clipped by the upper edge. I'm using padding as a workaround.
LineChart(
modifier = Modifier
.fillMaxSize()
.padding(16.dp),
lineData = entries,
color = MaterialTheme.colorScheme.secondary,
chartDimens = ChartDimens(20.dp)
)
It solves the above-mentioned issue. But the x axis values (15, 16, 17... in the screenshot) still get clipped. Again the dimmed lines parallel to x-axis are not centered according to the y-axis values. This is why the points with yValue = 10
looks less than 10
in the graph.
Couldn't find any
doc
forChartDimens
. But adding it helped :)
Hope the issue's a bit clearer now. Thanks!