IChartSeriesIndexedModel for DateTime

I''d like to use the "IChartSeriesIndexedModel" interface as demonstrated in the "SimpleModel" sample. However, the value type of my x axis is DateTime instead of Double, but the interface only seems to allow the returning of double values. How can I implement this for a DateTime axis? Thanks, Terry

2 Replies

GM Geetha M Syncfusion Team December 2, 2005 04:58 AM UTC

Hi Terry, The IChartSeriesModel can be implemented for DateTime X values by returning the DateTime as a double value using the ToOADate method of DateTime. Please refer the attached sample which illustrates this. I hope this fulfills your requirements. Please let me know if this helps you. Thanks for using Syncfusion products. Regards, Geetha

F37903.zip


TF Terry Foster December 2, 2005 09:59 PM UTC

That worked great - thanks! Terry

Loader.
Up arrow icon