You must be logged in to post your query.
Home › Forums › Chart Support › Turn off rendering for set
Tagged: bulk set slow
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?
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.
Thanks! Somehow I missed that part when skimming the set docs.
You must be logged in to reply to this topic. Login/Register