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

Chart Refresh / Redraw

3 Answers 151 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Riz
Top achievements
Rank 1
Riz asked on 09 Sep 2009, 11:09 AM
Hello,

I am trying to refresh or redraw the chart, problem is when I use;

this.chartArea.DataSeries.Clear();

it clear the chart and XY axes are removed which looks quite ugly.

My goals are as follows;

1) Refresh chart with new data after 1 minute 
2) after every 15 seconds refresh / redraw the chart to gain clients attention.

please advice how to achieve this

Thank you very much 

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 14 Sep 2009, 09:55 AM
Hello Joe,

I have tested removing data series, then adding them back and it works fine. Can you, please, give us more details on how you remove and insert data series so that the X and Y axes get removed?

Sincerely yours,
Evtim
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 2
answered on 16 Sep 2011, 10:29 PM
I am dealing with a similar issue.  Even though the chart redraws when a new data series returns, the original drawing of the chart stays on the page as well.  You don't notice it unless you change the layout and then you see multiple charts on the screen in their new position and the original position.  I can't expect the user to refresh the screen everytime the series changes or they want the chart layout to change.  The number of charts drawn corresponds with the number of layouts you can choose in rapid succession before the original chart can redraw.  I don't expect that the user is going to start choosing layouts in rapid succession but I need to be able to handle it if they do.
0
Yavor
Telerik team
answered on 21 Sep 2011, 10:58 AM
Hello James,

When there are no items, the no data template will be shown. Thus, you can bind the control to a smaller collection, or customize the no data string, to alert the user that there is no data.
Alternatively, you can show a separate image/textblock instead of the chart, to alert the user of the change.
I hope that one of these options is suitable for you.

All the best,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Riz
Top achievements
Rank 1
Answers by
Dwight
Telerik team
James
Top achievements
Rank 2
Yavor
Telerik team
Share this question
or