Skip to content

Commit 5f910d9

Browse files
authored
Merge pull request #826 from plotly/null-colorscale
change colorscale reset value: [] => null (for python api)
2 parents 853a4ea + dad03d9 commit 5f910d9

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/components/fields/MarkerColor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class UnconnectedMarkerColor extends Component {
5858
this.context.updateContainer({
5959
['marker.color']: null,
6060
['marker.colorsrc']: null,
61-
['marker.colorscale']: [],
61+
['marker.colorscale']: null,
6262
});
6363
}
6464
}

src/lib/customTraceType.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ export function traceTypeToPlotlyInitFigure(traceType, gl = '') {
8383
type: 'scatter3d',
8484
mode: 'markers',
8585
};
86-
case 'pie':
87-
return {
88-
marker: {
89-
colors: [],
90-
},
91-
type: 'pie',
92-
};
9386
case 'bar':
9487
return {
9588
orientation: 'v',

0 commit comments

Comments
 (0)