Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add legends to scatter graph of core plot

I am using core plot graph in my iphone application. How to add legends in scatter graph. Can anyone help me?

Thanks in advance

like image 786
Priya Avatar asked Nov 26 '25 10:11

Priya


1 Answers

graph_.legend = [CPTLegend legendWithGraph:graph_];
graph_.legend.fill = [CPTFill fillWithColor:[CPTColor darkGrayColor]];
graph_.legend.cornerRadius = 5.0;
graph_.legend.swatchSize = CGSizeMake(25.0, 25.0);
graph_.legendAnchor = CPTRectAnchorBottom;
graph_.legendDisplacement = CGPointMake(0.0, 12.0);
like image 88
Neo Avatar answered Nov 29 '25 01:11

Neo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!