This is a migrated thread and some comments may be shown as answers.

CartesianChart auto change horizental axis value

3 Answers 21 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
saeed
Top achievements
Rank 1
saeed asked on 23 Nov 2020, 05:17 PM
Hello, how can horizontal axis items always contain 5 values of time? Now, as new data arrives, new values are constantly added to the horizontal axis, and the graph is compressed to the left corner.I use Cartesian Linear chart with 5 series bind to model class.

3 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 26 Nov 2020, 08:14 AM

Hi saeed,

Thank you for your interest in our chart component for WPF.

What comes up to my mind is to remove the first point in the collection when a new one is added. This way, you can have a specific number of points in the view. You could check our ChartView - Live Data demo in our WPF Controls Demo Application, which demonstrates a similar scenario. Can you check this demo and let me know if it works for you. If not, can you elaborate more on your scenario?

Regards,
Dinko
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/.

0
saeed
Top achievements
Rank 1
answered on 26 Nov 2020, 04:04 PM

Hi Dinko,

I would like to have chart same as this image

enter image description here

Horizontal value dynamic change

 

 

0
Dinko
Telerik team
answered on 01 Dec 2020, 10:35 AM

Hello saeed,

Thank you for the provided image.

This behavior is also demonstrated in the ChartView - Live Data demo from our WPF Controls Demo Application. When you open the application and navigate to this example, you can un-check the CheckBox on the right side. You can observe that the axis labels will not move with the points, which I think is what you are looking for.

By clicking on the CODE tab in the upper right corner you can see the code of the example. Give it a try and let me know if this works for you.

Regards,
Dinko
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/.

Tags
ChartView
Asked by
saeed
Top achievements
Rank 1
Answers by
Dinko
Telerik team
saeed
Top achievements
Rank 1
Share this question
or