We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4780619 commit ff2f1f8Copy full SHA for ff2f1f8
src/components/fields/Colorscale.js
@@ -13,7 +13,7 @@ class Colorscale extends Component {
13
onUpdate(colorscale, colorscaleType) {
14
if (Array.isArray(colorscale)) {
15
if (this.context.container.type === 'pie') {
16
- const numPieSlices = this.context.container.labels.length;
+ const numPieSlices = this.context.graphDiv.calcdata[0].length + 1;
17
const adjustedColorscale = adjustColorscale(
18
colorscale,
19
numPieSlices,
0 commit comments