Skip to content

Commit 99be00b

Browse files
committed
make (regular) colorbar use trace._meta,
... and shared colorbar use fullLayout._meta.
1 parent 23bcbfc commit 99be00b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/components/colorbar/draw.js

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ function makeColorBarData(gd) {
140140
opts._id = 'cb' + trace.uid + (allowsMultiplotCbs && contName ? '-' + contName : '');
141141
opts._traceIndex = trace.index;
142142
opts._propPrefix = (contName ? contName + '.' : '') + 'colorbar.';
143+
opts._meta = trace._meta;
143144
calcOpts();
144145
out.push(opts);
145146
}
@@ -156,6 +157,7 @@ function makeColorBarData(gd) {
156157
opts = initOpts(cont.colorbar);
157158
opts._id = 'cb' + k;
158159
opts._propPrefix = k + '.colorbar.';
160+
opts._meta = fullLayout._meta;
159161

160162
cbOpt = {min: 'cmin', max: 'cmax'};
161163
if(colorAxOpts[0] !== 'heatmap') {
@@ -281,6 +283,7 @@ function drawColorBar(g, opts, gd) {
281283
propContainer: ax,
282284
propName: opts._propPrefix + 'title',
283285
traceIndex: opts._traceIndex,
286+
_meta: opts._meta,
284287
placeholder: fullLayout._dfltTitle.colorbar,
285288
containerGroup: g.select('.' + cn.cbtitle)
286289
};

0 commit comments

Comments
 (0)