hideSeries of ui.chart, Methods Webix Docs

hides the chosen graph in the chart with several graphs

void hideSeries(number index);

numberthe index of the series that should be hidden

Example

webix.ui({
  view:"chart", id:"average", type:"bar",
  series:[
    { value:"#sales#" },
    { value:"#sales2#" }    //this will be hidden
  ],
  data:multiple_dataset
});
$$("average").hideSeries(1);

Details

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

See also

Back to top