You must be logged in to post your query.
Home › Forums › Chart Support › How to All range button set as selected in rangeChanged event
I am facing issue when I am trying to update new data in rangeChanged event. Actually what I am doing is that when Click in All button in range selector button then All data fetching from database and bind this data to datapoints then I will be render chart again. After render chart All button selected color automatically remove. I have using stockChart.rangeSelector.buttons.parent.buttonStyle.set(“backgroundColorOnSelect”, “#ff9800”); line of code but it is not working. Please suggest
This is jsfiddle code
You can set selectedRangeButtonIndex property to e.index value in rangeChanged event handler to highlight the button selected after manipulating with data. Please take a below code snippet for the same.
Also, checkout this updated JSFiddle for complete working code.
Thanks it is working….
You must be logged in to reply to this topic. Login/Register