Search code examples
swiftios-charts

iOS_Charts HorizontalBarChartView Vertical scrolling


What changes need to be done if I have to make 'HorizontalBarChartView' vertically scrollable. I want to show maximum of 8 bars at a time.


Solution

  • It already supports so. you can set maxScaleX/Y to limit the scale,

    also you can try setVisibleYRangeMaximum. horizontal bar chart's x axis is the same as normal bar's x axis position. It's not reverted with y axis