Closed
Description
I read the doc at https://plot.ly/javascript/reference/#pie, it is said that we can provide an array of number (stroke's width) to give on a specific marker in pie chart.
But if we provide an array in "width" field like this:
var data = [{
values: [20, 26, 55],
labels: ['Residential', 'Non-Residential', 'Utility'],
type: 'pie',
pull: [0.1, 0, 0],
marker: {
colors: ['rebeccapurple', 'purple', 'mediumpurple'],
line: {
// WORKS
// width: 3
// ERROR
width: [3, 0, 0]
}
}
}];
Plotly.newPlot('myDiv', data);
It will produce such an error:
What i'm trying to achieve is something like this: (harcoded in inspection tools)
Codepen Link: https://codepen.io/rmdwirizki/pen/vzdNjp