ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Radar charts, angularaxis thickness and radialaxis grid color.
Posted by Cj Talas on May-01-2015 13:39
Attachments:
Hi Peter,

I have 2 images attached here.

q1)
How can i make the grid line of the radialaxis, the same color as the angular axis?


q2)
I noticed that the outer left grids of the angular axis are thicker compared to other grids.
is there a workaround to tweak specific grid thickness?

Thanks a lot.

Regards,
CJ
q1.JPG
q2.PNG

  Re: Radar charts, angularaxis thickness and radialaxis grid color.
Posted by Peter Kwan on May-02-2015 03:25
Hi Cj Talas,

q1) The color of the radial axis can be configured using Axis.setColors. For example:

c.radialAxis().setColors(0xcccccc, 0x000000);


q2) This graphical artifact is caused by anti-alias is being used in some of the grid line
segments. I have tried the following code, which forces anti-alias to be used in all grid line
segments, and it seems to solve the problem:

//This is your original label
c.angularAxis().setLabels(labels);

//Shift the axis by a very very small amount. It should have no visible effect, but it
//causes the coordinates to be non-integer, which forces all lines to be anti-aliased.
c.angularAxis().setLinearScale((0.0001, 4.0001, Chart.NoValue);

Hope this can help.

Regards
Peter Kwan

  Re: Radar charts, angularaxis thickness and radialaxis grid color.
Posted by Peter Kwan on May-02-2015 03:25
Hi Cj Talas,

q1) The color of the radial axis can be configured using Axis.setColors. For example:

c.radialAxis().setColors(0xcccccc, 0x000000);


q2) This graphical artifact is caused by anti-alias is being used in some of the grid line
segments. I have tried the following code, which forces anti-alias to be used in all grid line
segments, and it seems to solve the problem:

//This is your original label
c.angularAxis().setLabels(labels);

//Shift the axis by a very very small amount. It should have no visible effect, but it
//causes the coordinates to be non-integer, which forces all lines to be anti-aliased.
c.angularAxis().setLinearScale(0.0001, 4.0001, Chart.NoValue);

Hope this can help.

Regards
Peter Kwan

  Re: Radar charts, angularaxis thickness and radialaxis grid color.
Posted by Cj Talas on May-08-2015 14:57
Peter Kwan,

Thanks worked like magic!