I would like to add a secondary x-axis to my chart (having relative instead of absolute values) without a belonging data series. But I have problems to get this axis shown. With the following code, the axis is simlpy not shown:
Is it possible to a secondary axis without a complementay data series?
4 Answers, 1 is accepted
In order to display multiple axes in RadChartView, you will need to have more than one series. A possible solution is to add a second series to the chart so that the second axis will be painted and later hide the data points of the series:
If it can fit your local setup, you can also consider using an annotation instead of a secondary axis: https://docs.telerik.com/devtools/winforms/controls/chartview/features/annotations/grid-line.
I hope this will help. Let me know if you need further assistance.
thx for the reply. I tries somethijng similar even before going to the forum. I created another DataSeries (phantomLine) and gave it transparent as color. The behavoir of the chart then is really strange:
This leads to an annoying graph which moves(!) in the upper direction AND still does not show the second x-axis (see pic1)...
To show you what I want: this is a similar task with a relativel similar code and it works fine:
and this leads to this graph aka two x-axis (pic2)
I spend hours with this issue now and would really thankful for help, but also would like to mention that this functionality is not sufficiently documented. In the doc are very short three examples which do not help me regarding this. Is there another you could recommend me for issues like this. Nevertheless, for the short-term your help would be highly appreciated
Sorry for the typos.
And in the second to last sentence, I meant: Is there another more comprehensive documentation you could recommend me, please?
I am sending my test project illustrating the suggested approach from my previous post. Please note that the desired behavior is not directly supported and each of the multiple axes needs to be associated with a series added to the chart. About the documentation, we have tried to explain and provide several examples demonstrating the intended use of the multiple axes.
In case you will be needing further assistance, please open a support ticket and send us your project so that we can test it on our end. I hope this will help.