Chart Alignment Problem

1 Answer 87 Views
ChartView
coderz
Top achievements
Rank 1
coderz asked on 20 Sep 2022, 09:12 AM | edited on 20 Sep 2022, 10:17 AM

We are testing a chart filled in the winforms dock, after add lineSeries to the chart, chart shrink. We are added chart.SetRadAutoScale(true),  chart.Refresh(),   chart.Area.Refresh(), chart.View.Refresh() nothing change.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 20 Sep 2022, 01:44 PM

Hello,

Thank you for the provided image.

Looking at the image you have an additional axis. using only the provided information I am not sure what is causing this. Could it be possible to isolate this in a standalone project? This way I can check how the Form is structured and think of a suitable solution. You can also specify which version of our controls are you using.

I am looking forward to your reply.

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/.

coderz
Top achievements
Rank 1
commented on 21 Sep 2022, 07:37 AM | edited

       
We found the problem....

At code initialize we set chart setting to empty for show grid & axes.


At the begining of fill button click method we add radChartView1.Axes.Purge(); and radChartView1.Invalidate();  his will fix the problem.


Dinko | Tech Support Engineer
Telerik team
commented on 21 Sep 2022, 11:05 AM

I am happy to hear that you have found the reason behind this behavior and thank you for sharing the solution for this. If you have any other questions, feel free to open a new thread with your questions inside.
Tags
ChartView
Asked by
coderz
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or