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

Message ListMessage List     Post MessagePost Message

  Hi
Posted by Mani on May-14-2012 16:03
Im using webchartviewer in my asp.net project and its working fine.My question, X axis title names are bit high because of which it gets clustered and im not able to see clearly. Is there any property through which title can be tilted and shown in 45 degrees angle etc.

  Re: Hi
Posted by Peter Kwan on May-15-2012 04:55
Hi Mani,

By "x axis title names", do you mean "x axis labels". (In ChartDirector terminology, the x-axis only have 1 title, which is usually under the axis. The x-axis can have many labels along the axis.)

You may use Axis.setLabelStyle to rotate the labels by 45 or 90 degrees. For example, see the sample code "Trend Line Chart" or "Candlestick Chart".

In C#, the code is like:

//Arial 8pt black rotated by 45 degrees
c.xAxis().setLabelStyle("Arial", 8, 0x000000, 45);

Hope this can help.

Regards
Peter Kwan

  Re: Hi
Posted by Mani on May-15-2012 13:42
Thanks a ton Peter.It worked .I was looking for this only.This is how i modified
c.xAxis().setLabelStyle("Verdana Bold", 8, Chart.CColor(System.Drawing.Color.Black), 30);I never expected i will get a reply so soon.
Peter Kwan wrote:

Hi Mani,

By "x axis title names", do you mean "x axis labels". (In ChartDirector terminology, the x-axis only have 1 title, which is usually under the axis. The x-axis can have many labels along the axis.)

You may use Axis.setLabelStyle to rotate the labels by 45 or 90 degrees. For example, see the sample code "Trend Line Chart" or "Candlestick Chart".

In C#, the code is like:

//Arial 8pt black rotated by 45 degrees
c.xAxis().setLabelStyle("Arial", 8, 0x000000, 45);

Hope this can help.

Regards
Peter Kwan