objective c - How to depict a radar chart in iOS? -
i'm developing ios app , want depict graph shape circle pie chart, radius dependent on each specific values. sorry don't know name of such chart is, i'm sure every sane baseball fans or sports fans think should have ever seen such chart. example, if team's batting average best in league consists of 5 teams, radius length 5 (or other length proportional other values), , if same team's earned runs average fourth in league, length 2, etc, etc... , points or "tips" connected each other within chart, , area of connected figure filled colors.
sorry awful explanation (it's quite difficult non-english native explain more clearly), question is, feasible depict such graphs in ios application? if can done in ios app, how/what library use plot such graphs?
i've read core graphics documentation coreplot example page wasn't able find such charts in pages. don't idea of using d3 embedded in uiwebview
suggested in this post since it's slow due network latency. don't know other libraries flexible , versatile 2 libraries above.
i use ios 7.1 , xcode 5.1.
[update]
it's not bubble chart. let me explain little bit more concretely. chart hexagon if every component of record or sample best among other competing records or samples , number of component described six. in other words, length of component origin whatever longest possible values. if 1 component, say, stolen bases, not best in samples - say, it's second best -, length of component origin not longest; it's second longest among samples. , once every components (6 in case) plotted on graph, plotted points connected each other, , filled whatever colors make "area" of record. , might repeated in other records or samples well. unlike bubble chart, 1 graph made of 1 record , 6 features (or columns or variables) in case - not records , 1 feature (actually, three, 1 used make bubble) in case of bubble chart. hope it...
[update 2]
i got such charts on internet! chart this:
.
you're describing bubble chart. can make 1 core plot using scatter plot. implement 1 of following datasource methods provide custom plot symbols. use data determine size of each symbol. can different shapes , have varying fills , border line styles, too.
-(nsarray *)symbolsforscatterplot:(cptscatterplot *)plot recordindexrange:(nsrange)indexrange; -(cptplotsymbol *)symbolforscatterplot:(cptscatterplot *)plot recordindex:(nsuinteger)idx;
Comments
Post a Comment