Skip to content

Commit 36a48f7

Browse files
authored
Merge pull request #3916 from plotly/scattergl-coloraxis
Coloraxis for scattergl
2 parents 4a8dd1c + 251d683 commit 36a48f7

File tree

3 files changed

+913
-1
lines changed

3 files changed

+913
-1
lines changed

src/lib/gl_format_color.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ function formatColor(containerIn, opacityIn, len) {
4141
var colorIn = containerIn.color;
4242
var isArrayColorIn = isArrayOrTypedArray(colorIn);
4343
var isArrayOpacityIn = isArrayOrTypedArray(opacityIn);
44+
var cOpts = Colorscale.extractOpts(containerIn);
4445
var colorOut = [];
4546

4647
var sclFunc, getColor, getOpacity, colori, opacityi;
4748

48-
if(containerIn.colorscale !== undefined) {
49+
if(cOpts.colorscale !== undefined) {
4950
sclFunc = Colorscale.makeColorScaleFuncFromTrace(containerIn);
5051
} else {
5152
sclFunc = validateColor;
46.1 KB
Loading

0 commit comments

Comments
 (0)