hides the chosen graph in the chart with several graphs
index | number | the index of the series that should be hidden |
webix.ui({
view:"chart", id:"average", type:"bar",
series:[
{ value:"#sales#" },
{ value:"#sales2#" } //this will be hidden
],
data:multiple_dataset
});
$$("average").hideSeries(1);
The method allows for programmatic hiding of a series. At the same time, a series can be shown and hidden by clicking the corresponding icon in the chart legend. Like here: Related sample: Bar Chart: Several Graphs in One Chart