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

Message ListMessage List     Post MessagePost Message

  does ChartDirector support draw the probability chart?
Posted by Eric on Dec-27-2016 10:20
Attachments:
hi,
please refer to the picture in the attachment.
does the  ChartDirector support the several chart type?

Best Regard!

Eric
Chart1.png
chart2.png

  Re: does ChartDirector support draw the probability chart?
Posted by Peter Kwan on Dec-28-2016 04:24
Hi Eric,

Yes, ChartDirector can plot these charts.

For the top chart, it is a trend line chart with confidence band, like:

http://www.advsofteng.com/doc/cdcpp.htm#confidenceband.htm

The main difference is that the vertical axis in your chart is labelled using probability. This can be achieved in ChartDirector by using custom axis labelling (eg. with Axis.addLabel).

More specifically, for the top chart, it seems the y-coordinate is actually the "z" statistic (normal distribution statistic) of the data, which is just the difference between the data value and the mean divided by the standard deviation. However, the y-axis is not lableled using the z-statistic, but is labelled using the probability value. In C#, it is like:

// The z statistic and its probability from standard normal distribution table
double[] labelZ = { -3.09, -2.33, -1.645, -1.28, ......};
string[] labelP = {"0.1", "1", "5", "10", ....};

// Axis scale from -3.09 to 3.09 (corresponds to 0.1% to 99.9%), with no labels
c.yAxis().setLinearScale2(-3.09, 3.09, null);

// Add custom labels.
for (int i = 0; i < labelZ.Length; ++i)
     c.yAxis().addLabel(labelZ[i], labelP[i]);

For the bottom chart, it is just a normal line chart in ChartDirector with data symbols. The horizontal line at around y = 257 can be drawn using Axis.addMark.

Hope this can help.

Regards
Peter Kwan