SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


I am working on Android Application and I have a different requirement where I want to display all the values String array on XAxis, I don’t want to use DateAxis nor VisibleRange function, also no value should be hidden as we are not giving any zoom-in and out functionality in our app.

I would really appreciate if you can please assist with this


  • You must to post comments

Hi Yasir

In order to display strings on axis in SciChart Android you need to use the LabelProvider feature.

What you do:

  • Add your data into the XyDataSeries with X-Values equal to 0,1,2,3,4 …
  • Create a custom LabelProvider and attach it to the XAxis
  • Use this LabelProvider to convert from the numberical value (0,1,2,3,…) to desired string

There are a few examples of LabelProvider in our Android Examples suite.

1/ Java LabelProvider example
2/ Kotlin LabelProvider example

This second example shows a simple mapping of number to string.

Let me know if this helps

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.