C3 pie chart example.
C3 pie chart example Draw an interactive pie chart using 'C3. js var pie_chart_layer: c3. generate({ -> This is the predefined keyword c3 charts to generate charts on respective control; bindto: '#pieChart', -> Changing our div control to Pie chart control or all pie chart features will binded to this control; json: [data],-> We metioned to pass all Countrywise population data in array format This page contains a collection of examples for various C3 visualizations. Layer. text = "pct" , legend. generate({ data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], ['data2', 130, 100, 140, 200, 150, 50 2. Pie<PolarPlotDatum>; var pie_chart = new c3. You can see many other examples in the pie chart section of the gallery. C3. generate({ data: { // iris data from R columns: [ ['data1', 30], ['data2', 120], ], type : 'pie', onclick: function (d, i) { console.