Skip to content

Commit 3c468de

Browse files
committed
fix legend attribute and validate test
1 parent 7c95b4b commit 3c468de

File tree

3 files changed

+2
-51
lines changed

3 files changed

+2
-51
lines changed

src/plots/attributes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var fontAttrs = require('./font_attributes');
44
var fxAttrs = require('../components/fx/attributes');
5-
var counterRegex = require('../lib/regex').counter;
65

76
module.exports = {
87
type: {
@@ -37,7 +36,7 @@ module.exports = {
3736
valType: 'subplotid',
3837
dflt: 'legend',
3938
editType: 'style',
40-
regex: counterRegex('legend'),
39+
4140
description: [
4241
'Sets the reference to a legend to show this trace in.',
4342
'References to these legends are *legend*, *legend2*, *legend3*, etc.',

tasks/test_mock.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ function assert(name, v) {
6161
var condition = (
6262
e.code === 'invisible' ||
6363
e.code === 'dynamic' ||
64-
e.path[e.path.length - 1] === 'legend' ||
6564
e.path[e.path.length - 1] === 'coloraxis'
6665
);
67-
expectToBe(condition, true); // we accept invisible, dynamic, legend and coloraxis for now
66+
expectToBe(condition, true); // we accept invisible, dynamic and coloraxis for now
6867
if(!condition) {
6968
console.log('file:', name);
7069
console.log(JSON.stringify(v, null, 2));

0 commit comments

Comments
 (0)