Hi,
I’m using Scichart v3.2, to draw scatter & line series, where the x-axis is a date (DateTime).
The requirement is that a certain x-range of each series will be drawn with a different color than the rest of the series.
However, the method signature in the API only allows axes of type ‘double’:
Color? GetColor(IRenderableSeries series, double xValue, double yValue)
So is it still possible in some way?
If not, what would be the best way (also performance-wise) to achieve this?
P.S. As I understand that in version 4.x the API was refactored and seems to allow this, but at the moment we cannot upgrade the version.
Thanks.
- Yonatan D asked 8 years ago
- You must login to post comments
Yes it is possible, you just need to perform a conversion as follows:
Color? GetColor(IRenderableSeries series, double xValue, double yValue)
{
DateTime xDate = new DateTime((long)xValue);
}
That should do it!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
Please login first to submit.