gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Multiple lines in CPAxisLabel #253

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all,

         I am trying to create a scatter plot with date on xAxis and some other readings on y axis.. I would like to show date in the format day and small name of month ("dd MMM") on xAxis( JAN,FEB etc) with date on top of the month name.

1)  Can we have multiple lines in CPAxisLabel
2) If not, can we have multiple labels for one axis. (so that I can show date 
in one and month name in other)

        Thank you..

Original issue reported on code.google.com by iamjaya...@gmail.com on 7 Feb 2011 at 4:15

GoogleCodeExporter commented 9 years ago
This should be addressed by extending CPTextLayer to support multiple lines of 
text. That would make it easy to use multi-line annotations, labels, and titles 
anywhere on the graph.

Original comment by eskr...@mac.com on 11 Feb 2011 at 1:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision d36e1f187ad4.

Original comment by eskr...@mac.com on 18 May 2011 at 2:31

GoogleCodeExporter commented 9 years ago
Hey can you please elaborate how to make CPTextLayer multi-line? I was not able 
to find any kind of property like numberOfLines or something like that....It 
will be really helpful if you can explain.

Thanks in advance!

Original comment by spsriram...@gmail.com on 27 Jun 2011 at 3:30

GoogleCodeExporter commented 9 years ago
Add newline characters ("\n") where you want the line to break. You can set the 
alignment (left, center, right) in the text style.

Original comment by eskr...@mac.com on 27 Jun 2011 at 10:59

GoogleCodeExporter commented 9 years ago
Thanks a lot! It worked!

Original comment by spsriram...@gmail.com on 28 Jun 2011 at 5:33