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

Message ListMessage List     Post MessagePost Message

  How can I plot the type of chart?
Posted by wuqi on Dec-19-2013 16:35
Attachments:
Hi,
I want to  define x-axis of a lineChart.How can I do it.
Sample below
p3.png

  Re: How can I plot the type of chart?
Posted by Peter Kwan on Dec-20-2013 00:59
Hi wuqi,

The graph in your message looks like a statistics graph based on the normal distribution. In this type of graph, the x-axis is the standard deviation. However, instead of displaying the standard deviation on the x-axis, some people would put the cummulative probability as labels on the x-axis.

For your case, it looks the standard deviation on the x-axis is from -3.8 to 3.8. So the code is like (in C#/Java):

c.xAxis().setLinearScale2(-3.8, 3.8, null);

To put the labels on the x-axis, you would need to know the standard deviation for that label. For example, to put the label "2" (representing 2% of 0.02) on the x-axis, from the normal distribution table (see http://www.stat.tamu.edu/~lzhou/stat302/standardnormaltable.pdf), it corresponds to x = -2.05, so the code is:

c.xAxis().addLabel(-2.05, "2");

You may repeat the above for the other labels you need.

Hope this can help.

Regards
Peter Kwan

  Re: How can I plot the type of chart?
Posted by wuqi on Dec-20-2013 11:30
Hi Peter,
Thanks for your help. It's very helpful! I have solved this problem.