|
remove axis labels from radar/polar chart |
Posted by Prashanth Bhat on Nov-14-2012 19:14 |
|
Hi,
I have a couple of questions.
1) How do I remove the axis labels from the radar chart eg.. in the attached image (0,1,2,3, and 4) are the labels i dont wish to be displayed
2)is there a way where we can specify dotted lines for the data for eg in the attached image i want the goal line to be a dotted line. also you can see the text in the labels in the image attached may get truncated/ cut (eg Data management, reporting and compliance) how can that be handled. any ideas?
Thanks
Prashanth
|
Re: remove axis labels from radar/polar chart |
Posted by Peter Kwan on Nov-14-2012 23:56 |
|
Hi Prashanth,
1. To remove axis labels in ChartDirector, simply set their colors to transparent. For example:
c.radialAxis().setColors(Chart.Transparent, Chart.Transparent);
2. To use a dotted line, you may use a "dash line color" instead of a solid color for the line. For example:
PolarLayer myLayer = c.addLineLayer(data1, c.dashLineColor(0xff0000, Chart.DotLine), "My Line");
Note that the above is using dotted line. If you want to use dash line, please change DotLine to DashLine.
3. For the labels, if you are worry they can be too long, you may set a maximum width, so that the labels will be wrapped to multiple lines if they exceed the width. For example:
c.angularAxis().setLabelStyle("Arial Bold", 10, 0x000000).setMaxWidth(100);
If the labels are known in advance, you can also insert line breaks ("\\n") in the label text. In this way, you can control where does the line break occur.
Hope this can help.
Regards
Peter Kwan |
|