showing results for - "chart js radar chart"
Louisa
01 Feb 2018
1new Chart(document.getElementById("radar-chart"), {
2    type: 'radar',
3    data: {
4      labels: ["Africa", "Asia", "Europe", "Latin America", "North America"],
5      datasets: [
6        {
7          label: "1950",
8          fill: true,
9          backgroundColor: "rgba(179,181,198,0.2)",
10          borderColor: "rgba(179,181,198,1)",
11          pointBorderColor: "#fff",
12          pointBackgroundColor: "rgba(179,181,198,1)",
13          data: [8.77,55.61,21.69,6.62,6.82]
14        }, {
15          label: "2050",
16          fill: true,
17          backgroundColor: "rgba(255,99,132,0.2)",
18          borderColor: "rgba(255,99,132,1)",
19          pointBorderColor: "#fff",
20          pointBackgroundColor: "rgba(255,99,132,1)",
21          pointBorderColor: "#fff",
22          data: [25.48,54.16,7.61,8.06,4.45]
23        }
24      ]
25    },
26    options: {
27      title: {
28        display: true,
29        text: 'Distribution in % of world population'
30      }
31    }
32});
33