Highcharts - Change opacity of chart when tooltip is shown -
when tooltip shown, possible change opacity of data points in chart, exception of data point label shown?
i.e. in default column chart, when mouse moves on column, column highlighted bit. same event, i'd other column's opacity change 50%.
thanks
you can use point mouseover , mouseout events callback functions in case of chart. inside events can update color of specific points. http://api.highcharts.com/highcharts#plotoptions.area.point.events.mouseover http://api.highcharts.com/highcharts#plotoptions.area.point.events.mouseout
if use rgba colors, able set opacity.
point: { events: { mouseover: function() { highcharts.each(this.series.data, function(p, i) { p.update({ color: 'rgba(50,120,60,0.5)' }, false) }); this.update({ color: 'rgba(50,120,60,1)' }); }, mouseout: function() { highcharts.each(this.series.data, function(p, i) { p.update({ color: 'rgba(50,120,60,1)' }, false) }); this.series.chart.redraw(); }, } }
here can see example how can work: http://jsfiddle.net/4q10q8r1/
kind regards.
Comments
Post a Comment