Page 1 of 1

Gaussian distribution

Posted: Thu Dec 22, 2005 12:55 pm
by 9339415
Is it possible to tell a TCHart to draw bars in a Chart with Values which he sorts in the order of a Gaussian distribution. I also would like to draw an original Gaussian distribution as fast line over these bars.

Thanks for any ideas

Posted: Thu Dec 22, 2005 2:28 pm
by narcis
Hi mtspp,

I'm afraid this is not currently available, I'll add your request to our wish-list to be considered for future releases.

In the meantime, you could do that manually processing your series values after them being populated. You could create a fake series for the gaussian distribution and make the original series not visible. You could retrieve original series values using TChartSeries.XValues and TChartSeries.YValues TChartValueLists.

For the line over the bars you could use a TCurveFittingFunction which constructs a polynomial line based on its DataSource Series values. The algorithm used to fit the points is a Gaussian Polynomial.