Pre loader

XyDataSeries string datatypes


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 .

  • You must 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:

  1. Use an XyDataSeries with type int,double for your data. X-values should be indexes (0,1,2,3,…)
  2. 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
  3. 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,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies