Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set an horizontal scroll to my Barchart in swift

I am using the Charts framework from Daniel Cohen Gindi which is great but:

I would like my barchart to scroll horizontally to see additional data.

I've tried to add a scroll view but it didn't worked. I also tried different value like

barChart.setVisibleXRangeMaximum(10)
barChart.moveViewToX(90)

but it didn't work.

Is anyone managed it ?

Fingers crossed

like image 247
Ciboulette Avatar asked Mar 12 '23 11:03

Ciboulette


1 Answers

First set bar chart data and then call 'barChart.setVisibleXRangeMaximum(10)'

like image 142
levan Avatar answered Mar 15 '23 00:03

levan