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

set axis.labels.step in event has no effect immediately

3 Answers 49 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 05 Aug 2016, 01:18 PM

Hi,

I need a stockchart with none aggregate data, so I have to set:

          categoryAxis: {  baseUnit:"days", },

But then all labels are overlapped.

In the Navigator event I set axis.labels.step.

But this has no effect immediately: it is used in the next Navigator event.

http://dojo.telerik.com/usARa

1. Start dojo: all labels are overlapped
2. Change Navigator range: Chart is updated, newstep is assigned (see log), but has no effect on the labels
2. Change Navigator again: Chart is updated, newstep is assigned, label step is shown from last call.

 

If I call $("#stock-chart").data("kendoStockChart").refresh(); it works, but it needs long time to redraw the whole chart.
Without redraw the chart line is updated very fast.

Is a solution to apply immediately axis.labels.step = newStep;
without the slow chart refresh()?

Peter

 

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 09 Aug 2016, 07:31 AM
Hi Peter,

Changing any of the options requires chart to be redrawn. What I would suggest for the current case is using the redraw method instead of refresh.

Regards,
Iliana Nikolova
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Peter
Top achievements
Rank 1
answered on 09 Aug 2016, 07:43 AM

Hi Ilian,

thanks, but $("#stock-chart").data("kendoStockChart").redraw()  is similar slow like refresh(): you can see in http://dojo.telerik.com/usARa how the whole chart is deleted and then rebuild, also the navigator pane, which should not necessary. Can I only refresh/redraw the axis.labels ?

Regards,

Peter

0
Accepted
Iliana Dyankova
Telerik team
answered on 10 Aug 2016, 10:12 AM
Hi Peter,

I am afraid that refreshing / redrawing only the labels is not supported and there is no suitable workaround which I could suggest. Please accept my apologies for any inconvenience this may cause.

Regards,
Iliana Nikolova
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Peter
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Peter
Top achievements
Rank 1
Share this question
or