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 |