We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fe718d commit 5518befCopy full SHA for 5518bef
src/components/colorbar/draw.js
@@ -10,7 +10,7 @@
10
'use strict';
11
12
var d3 = require('d3');
13
-var tc = require('tinycolor2');
+var tinycolor = require('tinycolor2');
14
15
var Plotly = require('../../plotly');
16
var Plots = require('../../plots/plots');
@@ -362,7 +362,7 @@ module.exports = function draw(gd, id) {
362
// Tinycolor can't handle exponents and
363
// at this scale, removing it makes no difference.
364
var colorString = fillcolormap(d).replace('e-', ''),
365
- opaqueColor = tc(colorString).toHexString();
+ opaqueColor = tinycolor(colorString).toHexString();
366
367
// Colorbar cannot currently support opacities so we
368
// use an opaque fill even when alpha channels present
0 commit comments