Home Forums Chart Support Alter lineThickness on mouseover?

Alter lineThickness on mouseover?

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

    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;
    			},
    #15422

    @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

    #15428

    Thank you so much!

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

You must be logged in to reply to this topic.