kendo ui - How to highlight the axis? -
i have many axes in chart.
how highlight axis when hovering on line(axis-value)?
it necessary highlight axis line(axis-value) belongs (when hovering on line(axis-value))
(highlight = make bold or change color)
sorry bad english :)
you use serieshover event:
serieshover: function(e) { var axis = e.sender.getaxis( e.series.axis); (var i=0; i<e.sender.options.valueaxis.length; i++){ if (i ==axis._axis.axisindex){ e.sender.options.valueaxis[i].line.width = 3; } else { e.sender.options.valueaxis[i].line.width = 1; } } e.sender.refresh(); }
from series can theassociated axis, set axis line width , refresh chart.
Comments
Post a Comment