You must be logged in to post your query.
Home › Forums › Chart Support › Alter lineThickness on mouseover?
Tagged: lineThickness, mouseover
With a data.mouseover defined like so the initial console log correctly gives the initial lineThickness value and then subsequent mouseovers give the value I set but lineThickness is not altered in chart.
Would I have to re-render to see it?
data: [ { type: "line", mouseover: function(e){ console.log(e.chart.axisX[0].lineThickness); e.chart.axisX[0].lineThickness = 5; return; },
@jerrygarciuh
After changing the value, you’ll need to re-render the chart to observe the changes. You can also use set method to change different properties of the chart. Please, take a look at this jsFiddle.
—- Bivek Singh, Team CanvasJS
Thank you so much!
You must be logged in to reply to this topic. Login/Register