Search code examples
ios-charts

Graph combining HorizontalBarChart & CubicLineChart?


Is it possible to draw a graph combining a HorizontalBarChart with a CubicLineChart with iOS-charts? The CubicLineChart would be drawn from top to bottom, following the horizontal bars rather than left to right.

If not, can anyone recommend a graph library that would support this please?


Solution

  • Currently, No. But technically, you could, but you need to do a lot of decent study on the framework and rewrite a bunch of methods to get it work.

    Check out how combined chart is carried out, and make sure you understand how the ChartTransformer get setup and work. Then you are good to go.

    The other way is, use vertical bar chart and normal line chart to get what you want, like a combined chart, and rotate it 90 degree, and customize the axis labels maybe easier for you?

    BTW, you need to know that chart is making data easy to understand, I'm not sure would a chart like you said make it easier?