Home Forums Chart Support Turn off rendering for set

Turn off rendering for set

Viewing 3 posts - 1 through 3 (of 3 total)
  • #14552

    I’m trying to do bulk set for all chart’s on a page that have a large number of values based on user interaction with a page.

    roreach chart set
    chart.title.set(“fontColor”,hexColor);
    chart.legend.set(“fontColor”,hexColor);
    for each y and x axis
    x/yAxis.set(“titleFontColor”,hexColor);
    x/yAxis.set(“labelFontColor”,hexColor);

    because it renders them all in sequence it takes over 30 seconds sometimes. Is there a way to set all at once rather than one at a time?

    #14557

    Igor,

    set have a third parameter,
    updateChart: When true, Updates the chart automatically after setting the value. Defaults to true

    You can pass it as false when you don’t want to render for each set.

    Also you can use chart.options to change it’s property and calling chat.render at the end will update the changes to the chart.

    #14585

    Thanks! Somehow I missed that part when skimming the set docs.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.