Skip to content

Commit 60dd1d5

Browse files
committed
handle typed arrays for tickvals
1 parent bd4d2eb commit 60dd1d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plots/cartesian/tick_value_defaults.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
var cleanTicks = require('./clean_ticks');
44
var isArrayOrTypedArray = require('../../lib').isArrayOrTypedArray;
5+
var isTypedArraySpec = require('../../lib/array').isTypedArraySpec;
6+
var decodeTypedArraySpec = require('../../lib/array').decodeTypedArraySpec;
57

68
module.exports = function handleTickValueDefaults(containerIn, containerOut, coerce, axType, opts) {
79
if(!opts) opts = {};
@@ -12,6 +14,8 @@ module.exports = function handleTickValueDefaults(containerIn, containerOut, coe
1214

1315
function readInput(attr) {
1416
var v = cIn[attr];
17+
if(isTypedArraySpec(v)) v = decodeTypedArraySpec(v);
18+
1519
return (
1620
v !== undefined
1721
) ? v : (cOut._template || {})[attr];

0 commit comments

Comments
 (0)