We have created graph for x axis string and y axis double. we have create object like this XyDataSeries<string,double> if run app getting exception error .
How to declare and how to use it .
- senthil kumar asked 4 years ago
- You must login to post comments
Hi there,
Apologies, I missed this question!
To add string labels to the XAxis in SciChart iOS, use the LabelProvider feature.
The steps are:
- Use an XyDataSeries with type int,double for your data. X-values should be indexes (0,1,2,3,…)
- Set the XAxis.AutoTicks property to false, and set XAxis.MajorDelta to 1 / MinorDelta to 0.2. This will ensure you get one label for each 1 value
- Apply a LabelProvider to your XAxis. You need to use this to format the x-values (0,1,2,3) as strings.
Examples of how to use the LabelProvider in SciChart iOS can be found in the following examples:
Best regards,
Andrew
- Andrew Burnett-Thompson answered 4 years ago
- You must login to post comments
Please login first to submit.