Skip to content

Commit 8945bd1

Browse files
committed
make layout meta a valType:'any'
- to start accepting `meta: {key: value}` settings
1 parent 06ca2c1 commit 8945bd1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/plots/layout_attributes.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -410,15 +410,18 @@ module.exports = {
410410
},
411411

412412
meta: {
413-
valType: 'data_array',
413+
valType: 'any',
414+
arrayOk: true,
414415
editType: 'plot',
415416
description: [
416417
'Assigns extra meta information that can be used in various `text` attributes.',
417418
'Attributes such as the graph, axis and colorbar `title.text`, annotation `text`',
418419
'`trace.name` in legend items, `rangeselector`, `updatemenues` and `sliders` `label` text',
419420
'all support `meta`. One can access `meta` fields using template strings:',
420421
'`%{meta[i]}` where `i` is the index of the `meta`',
421-
'item in question.'
422+
'item in question.',
423+
'`meta` can also be an object for example `{key: value}` which can be accessed',
424+
'%{meta[key]}.'
422425
].join(' ')
423426
},
424427

0 commit comments

Comments
 (0)