multilevel

enables tree structure for pie and donut charts

boolean multilevel;

Example

{
      view: "chart",
      type:"pie",
      value:"#sales#",
      multilevel: true,
      ...
}

Related samples

Details

Multilevel pie requires tree data:

var data = [
    { id: "1", group: "Europe", data: [
        { id: "1.1", country: "Germany", data:[
             { id: "1.1.1", quarter: 1, sales: 10000},
             { id: "1.1.2", quarter: 2, sales: 15000},
              ...
         ] },
         ...
    ] },
    { id: "2", group: "USA", data: [ ... ] }
];

Tree data can be formed with the help of $group scheme

Back to top