I'm beginner with the Core Plot framework. Right now, I am able to render bar charts on the screen.
However, I need to draw a horizontal bar chart that has the bars extending from the Y axis, like so:
^
y|
|****
|*******
|**********
|******
|---------------> x
How would I implement such a horizontal bar chart in Core Plot?
you said you are using core-plot, there are sample codes with the framework, in which barChart has been implemented. You can have a look at it.
EDIT:
Sorry I saw you update now, and I got you need horizontal bars. Use following code.
CPBarPlot * barPlot = [CPBarPlot ...];
[barPlot setBarsAreHorizontal:YES];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With