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

4 posts, 1 answers
  1. Peter
    Peter avatar
    35 posts
    Member since:
    May 2016

    Posted 05 Aug Link to this post

    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

     

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 09 Aug Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Peter
    Peter avatar
    35 posts
    Member since:
    May 2016

    Posted 09 Aug in reply to Iliana Nikolova Link to this post

    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

  5. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 10 Aug Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready