Charts
Charts copied to clipboard
Inverted x-axis support
Seeing yAxis support inverted feature, but no xAxis.
I think xAxis inverting is useful for horizontal bar charts, for vertical ones, left -> right is more natural.
For horizontal bar chart, top -> bottom and bottom -> top both make sense.
Maybe this is my question. Did this feature add to library? How can I achieve to my goal?
Is there are any updates on this one? X-axis flip will be helpful for RTL languages
Is there are any updates?
Just revert your dataset, and enable right axes instead of left axes, this should do the trick
Just revert your dataset, and enable right axes instead of left axes, this should do the trick
How to revert dataset?
BarChartData( dataSet: chartDataset.reversed())
shows: Argument type 'ReversedCollection<BarChartDataSet>' does not conform to expected type 'ChartDataSetProtocol'
And how to revert X Axis texts. E.g.
my dataentry is:
[ChartDataEntry, x: 29.0, y 0.0, ChartDataEntry, x: 28.0, y 0.0, ChartDataEntry, x: 27.0, y 0.0, ChartDataEntry, x: 26.0, y 0.0, ChartDataEntry, x: 25.0, y 0.0, ChartDataEntry, x: 24.0, y 0.0, ChartDataEntry, x: 23.0, y 0.0, ChartDataEntry, x: 22.0, y 0.0, ChartDataEntry, x: 21.0, y 0.0, ChartDataEntry, x: 20.0, y 0.0, ChartDataEntry, x: 19.0, y 0.0, ChartDataEntry, x: 18.0, y 0.0, ChartDataEntry, x: 17.0, y 0.0, ChartDataEntry, x: 16.0, y 0.0, ChartDataEntry, x: 15.0, y 0.0, ChartDataEntry, x: 14.0, y 0.0, ChartDataEntry, x: 13.0, y 0.0, ChartDataEntry, x: 12.0, y 0.0, ChartDataEntry, x: 11.0, y 0.0, ChartDataEntry, x: 10.0, y 0.0, ChartDataEntry, x: 9.0, y 0.0, ChartDataEntry, x: 8.0, y 0.0, ChartDataEntry, x: 7.0, y 5.7, ChartDataEntry, x: 6.0, y 66.4, ChartDataEntry, x: 5.0, y 0.0, ChartDataEntry, x: 4.0, y 0.0, ChartDataEntry, x: 3.0, y 0.0, ChartDataEntry, x: 2.0, y 0.0, ChartDataEntry, x: 1.0, y 0.0]