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

Message ListMessage List     Post MessagePost Message

  radialAxis Label Postion
Posted by Kevin on Mar-05-2016 01:56
Attachments:
Is it possible to move the radialAxis labels to be on the North East spoke with still keeping the chart in the same position with North being on top. I just want the 25,20... to show on the North East line and keep everything else the same.

Thanks,
Kevin
chart.png

  Re: radialAxis Label Postion
Posted by Peter Kwan on Mar-05-2016 03:34
Hi Kevin,

In the original sample code, the axes are configured using:

string[] labels = {"North", "North\\nEast", "East", "South\\nEast", "South", "South\\nWest",
     "West", "North\\nWest"};

// Set angular axis as 0 - 360, with a spoke every 30 units
c.angularAxis().setLinearScale2(0, 360, labels);

To create the effect you need, the code can be modified to:

string[] labels = {"North\\nEast", "East", "South\\nEast", "South", "South\\nWest",
     "West", "North\\nWest", "North"};

// Set angular axis as 0 - 360, with a spoke every 30 units
c.angularAxis().setLinearScale2(45, 405, labels);

c.setStartAngle(45);

Hope this can help.

Regards
Peter Kwan