FlexChart DataToPoint() and PointToData() with doubles?

Posted by: mhamilton on 31 January 2018, 5:46 pm EST

    • Post Options:
    • Link

    Posted 31 January 2018, 5:46 pm EST

    Is there another method for the FlexChart.DataToPoint() and FlexChart.PointToData() that use doubles instead of floats? I have my X Axis set to a DateTime but the DataToPoint and PointToData cause issues because the OADate is a double and casting it to a float losses the accuracy of the DateTime.

    Thanks!

  • Posted 1 February 2018, 7:28 am EST

    Hello,

    You may use the Axis’s ConvertBack method for working with Double type values. This would not need any casting and hence would not lead to loss of precision/accuracy.

    You may find more information about this method here: http://help.grapecity.com/componentone/NetHelp/FlexChartWin/webframe.html#C1.Win.FlexChart.4~C1.Win.Chart.Axis~ConvertBack.html

    Thanks,

    Ruchir Agarwal

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels