Example
var data = [{
values: [10, 20, 30],
labels: ['1st Qtr', '2nd Qtr', '3rd Qtr'],
type: 'pie',
textinfo: 'label+percent',
insidetextorientation: 'radial'
}];
var layout = {
title: {
text: 'Average Simulation Time'
},
height: 400,
width: 500,
showlegend: true,
legend: {
orientation: 'h',
x: 0.5,
xanchor: 'center',
y: -0.3
}
};
Plotly.newPlot('myDiv', data, layout);