var pieDiv = document.getElementById("pie-chart");
var traceA = {
type: "pie",
values: [8149300, 4916438, 4776980, 3100950, 2083210],
labels: ['Russia', 'Canada', 'Brazil', 'United States', 'China'],
hole: 0.25,
pull: [0.1, 0, 0, 0, 0],
direction: 'clockwise',
marker: {
colors: ['#CDDC39', '#673AB7', '#F44336', '#00BCD4', '#607D8B'],
line: {
color: 'black',
width: 3
}
},
textfont: {
family: 'Lato',
color: 'white',
size: 18
},
hoverlabel: {
bgcolor: 'black',
bordercolor: 'black',
font: {
family: 'Lato',
color: 'white',
size: 18
}
}
};
var data = [traceA];
var layout = {
title: "Area Under Forest for Different Countries"
};
Plotly.plot(pieDiv, data, layout);