We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon