hideSeries of ui.rangechart, Methods Webix Docs

StartAPI Referenceui.rangechartMethods

hides the chosen graph in the chart with several graphs

void hideSeries(number index);

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

  • API

  • Articles

  • Back to top

    If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of chart widget product.