Two Axes for SeriesProvider

1 Answer 59 Views
ChartView
Aleksej
Top achievements
Rank 1
Aleksej asked on 20 Dec 2021, 09:30 AM
I am using RadCartesianChart with ChartSeriesProvider.
I have several lines.
I want to show the vertical axis on the left and right, like in the example:

https://docs.telerik.com/devtools/wpf/controls/radchartview/axes/multipleaxes#multiple-axes-and-seriesprovider - it does not provide a solution to my problem. I need a common vertical axis for all lines

 

Thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 21 Dec 2021, 04:33 PM

Hello Aleksej,

Thank you for the provided image.

Although the RadChartView control does not expose API to achieve the desired result out of the box, you can define an additional hidden series and define a VerticalAxis for it to achieve the result from the image. Do note that you need to set the HorizontalLocation property of the axis.

For your convenience, I've prepared a small sample project to demonstrate what I have in mind. You can use a similar approach when dealing with a ChartSeriesProvider and provide a dummy series.

I hope you find this helpful.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Aleksej
Top achievements
Rank 1
commented on 22 Dec 2021, 12:34 PM

Thanks!
Too bad AxisHorizontalLocation doesn't contain LeftAndRight
Tags
ChartView
Asked by
Aleksej
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or