Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create pie series
- "series": [{
- "type": "PieSeries",
- "dataFields": {
- "value": "litres",
- "category": "country"
- }
- }],
- // Add data
- "data": [{
- "country": "Lithuania",
- "litres": 501.9
- }, {
- "country": "Czech Republic",
- "litres": 301.9
- }, {
- "country": "Ireland",
- "litres": 201.1
- }, {
- "country": "Germany",
- "litres": 165.8
- }, {
- "country": "Australia",
- "litres": 139.9
- }, {
- "country": "Austria",
- "litres": 128.3
- }, {
- "country": "UK",
- "litres": 99
- }, {
- "country": "Belgium",
- "litres": 60
- }, {
- "country": "The Netherlands",
- "litres": 50
- }],
- // And, for a good measure, let's add a legend
- "legend": {}
- }, "chartdiv", am4charts.PieChart);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement