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 |