Loading Data, JavaScript Programming Example of Loading Data

Loading Data, JavaScript Programming Example of Loading Data

The piece of code below will enable you to load data in Pivot Chart efficiently. Don't hesitate to use our free coding samples or a snippet tool below to speed up your web development projects.

JS Code

webix.ui({
  id:"pivot",
  view:"pivot-chart",
  height:300,
  structure:{
    groupBy: "continent",
    values: [{name:"balance", operation:"max", color: "#eed236"},{name:"oil", operation:"max", color: "#36abee"}],
    filters:[{name:"year", type:"select"}]
  },
  url: "//docs.webix.com/samples/61_pivot/common/data.json"
});