Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b36a39

Browse files
committed
fix plotschema
1 parent af9ec23 commit 9b36a39

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/traces/indicator/attributes.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ var textFontAttrs = fontAttrs({
2525
});
2626
delete(textFontAttrs.size); // TODO: relative size?
2727

28+
// TODO: choose appropriate editType
2829
var gaugeArcAttr = {
2930
color: {
3031
valType: 'color',
3132
editType: 'style',
33+
role: 'style',
3234
description: [
3335
'Sets the background color of the arc.'
3436
].join(' ')
@@ -129,7 +131,8 @@ module.exports = {
129131
description: [
130132
'Show relative change in percentage'
131133
].join(' ')
132-
}
134+
},
135+
editType: 'style'
133136
},
134137
gauge: {
135138
background: extendFlat({}, gaugeArcAttr, {
@@ -148,6 +151,7 @@ module.exports = {
148151
'Set the appearance of the gauge\'s target'
149152
].join(' ')
150153
}),
151-
description: 'The gauge of the Indicator plot.'
154+
description: 'The gauge of the Indicator plot.',
155+
editType: 'plot'
152156
}
153157
};

0 commit comments

Comments
 (0)