Pre loader

XyDataSeries string datatypes

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

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 .

Version
10
  • You must to post comments
0
0

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,
Andrew

  • 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