Hi,
As per My requirements i need to generate a histogram chart using cocoa framework and objective c.
If any one knows the solution please let me know ASAP.
Thanks, Ravi
Hi,
As per My requirements i need to generate a histogram chart using cocoa framework and objective c.
If any one knows the solution please let me know ASAP.
Thanks, Ravi
Depending on your needs you can use a custom UIView subclass and perform the drawing by hand (overwrite drawRect:) or add UIViews for every bar (making nice animations possible with few code, but will not be efficient if many bars are needed).
You can easily write your own CALayer
using CoreAnimation.
You will just need some basic CALayers
with their colors, borders and shadows to draw the bars and some CATextLayers
to draw the text on the axis or below bars.
With some basic CA knowledge it will be easy and allow you to easily customize the graph with animations or effects..
You could use Core Plot. It doesn't support histograms directly, but if you calculate the bins and counts yourself, a bar plot is pretty easy to set up. The framework handles drawing everything including the axes and labels. It works on Mac, iPhone, and iPad.