Hi, when i use the label buttons to hide a series the valueAxis adjusts to the remaining series and it changes the proportion of areas which looks really weird in a graph that doesn't even show the valueAxis like the one i have in production. I've found a workaround and i have it in this dojo but it feels kinda hacky and weird, is there a simpler way to maintain the valueAxis value and hide a series from the user view?.
the code of the solution is this:
function
onLegendItemClick(e) {
e.preventDefault();
var
serie = e.sender.options.series[e.seriesIndex]
serie.opacity = serie.opacity === 0 ? 0.4 : 0;
serie.markers.size = serie.markers.size === 0 ? 6 : 0;
serie.tooltip.visible = serie.tooltip.visible ===
false
?
true
:
false
;
var
chart = $(
"#chart"
).data(
"kendoChart"
);
chart.refresh();
console.log(serie);
console.log(e.sender);
}