plotly.js 2.7.0 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +3 -3
  3. package/dist/README.md +26 -26
  4. package/dist/plot-schema.json +898 -407
  5. package/dist/plotly-basic.js +497 -186
  6. package/dist/plotly-basic.min.js +4 -4
  7. package/dist/plotly-cartesian.js +907 -329
  8. package/dist/plotly-cartesian.min.js +3 -3
  9. package/dist/plotly-finance.js +500 -188
  10. package/dist/plotly-finance.min.js +4 -4
  11. package/dist/plotly-geo-assets.js +2 -2
  12. package/dist/plotly-geo.js +486 -184
  13. package/dist/plotly-geo.min.js +4 -4
  14. package/dist/plotly-gl2d.js +505 -187
  15. package/dist/plotly-gl2d.min.js +2 -2
  16. package/dist/plotly-gl3d.js +486 -184
  17. package/dist/plotly-gl3d.min.js +2 -2
  18. package/dist/plotly-mapbox.js +486 -184
  19. package/dist/plotly-mapbox.min.js +2 -2
  20. package/dist/plotly-strict.js +1125 -547
  21. package/dist/plotly-strict.min.js +3 -3
  22. package/dist/plotly-with-meta.js +1214 -609
  23. package/dist/plotly.js +1179 -601
  24. package/dist/plotly.min.js +10 -10
  25. package/package.json +4 -4
  26. package/src/components/colorbar/attributes.js +29 -20
  27. package/src/components/colorbar/defaults.js +30 -8
  28. package/src/components/colorbar/draw.js +374 -128
  29. package/src/components/fx/hover.js +5 -2
  30. package/src/components/fx/hoverlabel_defaults.js +4 -2
  31. package/src/components/fx/layout_attributes.js +14 -4
  32. package/src/components/fx/layout_defaults.js +2 -0
  33. package/src/components/legend/attributes.js +7 -0
  34. package/src/components/legend/defaults.js +24 -7
  35. package/src/components/titles/index.js +8 -2
  36. package/src/plot_api/plot_api.js +1 -1
  37. package/src/plots/font_attributes.js +3 -0
  38. package/src/plots/layout_attributes.js +1 -0
  39. package/src/plots/plots.js +7 -15
  40. package/src/traces/bar/plot.js +8 -1
  41. package/src/traces/contour/attributes.js +12 -0
  42. package/src/traces/contour/defaults.js +9 -1
  43. package/src/traces/heatmap/attributes.js +16 -0
  44. package/src/traces/heatmap/defaults.js +2 -0
  45. package/src/traces/heatmap/label_defaults.js +13 -0
  46. package/src/traces/heatmap/plot.js +205 -4
  47. package/src/traces/histogram/calc.js +3 -2
  48. package/src/traces/histogram2d/attributes.js +8 -0
  49. package/src/traces/histogram2d/defaults.js +4 -0
  50. package/src/traces/histogram2dcontour/attributes.js +3 -1
  51. package/src/traces/histogram2dcontour/defaults.js +8 -1
  52. package/src/traces/pie/calc.js +3 -1
  53. package/src/version.js +1 -1
  54. package/tasks/test_mock.js +1 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (strict) v2.7.0
2
+ * plotly.js (strict) v2.8.3
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -77,7 +77,7 @@ for(var selector in rules) {
77
77
 
78
78
  module.exports = _dereq_('../src/transforms/aggregate');
79
79
 
80
- },{"../src/transforms/aggregate":927}],3:[function(_dereq_,module,exports){
80
+ },{"../src/transforms/aggregate":928}],3:[function(_dereq_,module,exports){
81
81
  'use strict';
82
82
 
83
83
  module.exports = _dereq_('../src/traces/bar');
@@ -147,7 +147,7 @@ module.exports = _dereq_('../src/traces/densitymapbox');
147
147
 
148
148
  module.exports = _dereq_('../src/transforms/filter');
149
149
 
150
- },{"../src/transforms/filter":928}],17:[function(_dereq_,module,exports){
150
+ },{"../src/transforms/filter":929}],17:[function(_dereq_,module,exports){
151
151
  'use strict';
152
152
 
153
153
  module.exports = _dereq_('../src/traces/funnel');
@@ -162,7 +162,7 @@ module.exports = _dereq_('../src/traces/funnelarea');
162
162
 
163
163
  module.exports = _dereq_('../src/transforms/groupby');
164
164
 
165
- },{"../src/transforms/groupby":929}],20:[function(_dereq_,module,exports){
165
+ },{"../src/transforms/groupby":930}],20:[function(_dereq_,module,exports){
166
166
  'use strict';
167
167
 
168
168
  module.exports = _dereq_('../src/traces/heatmap');
@@ -172,32 +172,32 @@ module.exports = _dereq_('../src/traces/heatmap');
172
172
 
173
173
  module.exports = _dereq_('../src/traces/heatmapgl');
174
174
 
175
- },{"../src/traces/heatmapgl":673}],22:[function(_dereq_,module,exports){
175
+ },{"../src/traces/heatmapgl":674}],22:[function(_dereq_,module,exports){
176
176
  'use strict';
177
177
 
178
178
  module.exports = _dereq_('../src/traces/histogram');
179
179
 
180
- },{"../src/traces/histogram":685}],23:[function(_dereq_,module,exports){
180
+ },{"../src/traces/histogram":686}],23:[function(_dereq_,module,exports){
181
181
  'use strict';
182
182
 
183
183
  module.exports = _dereq_('../src/traces/histogram2d');
184
184
 
185
- },{"../src/traces/histogram2d":691}],24:[function(_dereq_,module,exports){
185
+ },{"../src/traces/histogram2d":692}],24:[function(_dereq_,module,exports){
186
186
  'use strict';
187
187
 
188
188
  module.exports = _dereq_('../src/traces/histogram2dcontour');
189
189
 
190
- },{"../src/traces/histogram2dcontour":695}],25:[function(_dereq_,module,exports){
190
+ },{"../src/traces/histogram2dcontour":696}],25:[function(_dereq_,module,exports){
191
191
  'use strict';
192
192
 
193
193
  module.exports = _dereq_('../src/traces/icicle');
194
194
 
195
- },{"../src/traces/icicle":701}],26:[function(_dereq_,module,exports){
195
+ },{"../src/traces/icicle":702}],26:[function(_dereq_,module,exports){
196
196
  'use strict';
197
197
 
198
198
  module.exports = _dereq_('../src/traces/image');
199
199
 
200
- },{"../src/traces/image":714}],27:[function(_dereq_,module,exports){
200
+ },{"../src/traces/image":715}],27:[function(_dereq_,module,exports){
201
201
  'use strict';
202
202
 
203
203
  var Plotly = _dereq_('./core');
@@ -264,117 +264,117 @@ module.exports = Plotly;
264
264
 
265
265
  module.exports = _dereq_('../src/traces/indicator');
266
266
 
267
- },{"../src/traces/indicator":722}],29:[function(_dereq_,module,exports){
267
+ },{"../src/traces/indicator":723}],29:[function(_dereq_,module,exports){
268
268
  'use strict';
269
269
 
270
270
  module.exports = _dereq_('../src/traces/isosurface');
271
271
 
272
- },{"../src/traces/isosurface":728}],30:[function(_dereq_,module,exports){
272
+ },{"../src/traces/isosurface":729}],30:[function(_dereq_,module,exports){
273
273
  'use strict';
274
274
 
275
275
  module.exports = _dereq_('../src/traces/mesh3d');
276
276
 
277
- },{"../src/traces/mesh3d":733}],31:[function(_dereq_,module,exports){
277
+ },{"../src/traces/mesh3d":734}],31:[function(_dereq_,module,exports){
278
278
  'use strict';
279
279
 
280
280
  module.exports = _dereq_('../src/traces/ohlc');
281
281
 
282
- },{"../src/traces/ohlc":738}],32:[function(_dereq_,module,exports){
282
+ },{"../src/traces/ohlc":739}],32:[function(_dereq_,module,exports){
283
283
  'use strict';
284
284
 
285
285
  module.exports = _dereq_('../src/traces/parcats');
286
286
 
287
- },{"../src/traces/parcats":747}],33:[function(_dereq_,module,exports){
287
+ },{"../src/traces/parcats":748}],33:[function(_dereq_,module,exports){
288
288
  'use strict';
289
289
 
290
290
  module.exports = _dereq_('../src/traces/pie');
291
291
 
292
- },{"../src/traces/pie":757}],34:[function(_dereq_,module,exports){
292
+ },{"../src/traces/pie":758}],34:[function(_dereq_,module,exports){
293
293
  'use strict';
294
294
 
295
295
  module.exports = _dereq_('../src/traces/pointcloud');
296
296
 
297
- },{"../src/traces/pointcloud":766}],35:[function(_dereq_,module,exports){
297
+ },{"../src/traces/pointcloud":767}],35:[function(_dereq_,module,exports){
298
298
  'use strict';
299
299
 
300
300
  module.exports = _dereq_('../src/traces/sankey');
301
301
 
302
- },{"../src/traces/sankey":772}],36:[function(_dereq_,module,exports){
302
+ },{"../src/traces/sankey":773}],36:[function(_dereq_,module,exports){
303
303
  'use strict';
304
304
 
305
305
  module.exports = _dereq_('../src/traces/scatter3d');
306
306
 
307
- },{"../src/traces/scatter3d":810}],37:[function(_dereq_,module,exports){
307
+ },{"../src/traces/scatter3d":811}],37:[function(_dereq_,module,exports){
308
308
  'use strict';
309
309
 
310
310
  module.exports = _dereq_('../src/traces/scattercarpet');
311
311
 
312
- },{"../src/traces/scattercarpet":817}],38:[function(_dereq_,module,exports){
312
+ },{"../src/traces/scattercarpet":818}],38:[function(_dereq_,module,exports){
313
313
  'use strict';
314
314
 
315
315
  module.exports = _dereq_('../src/traces/scattergeo');
316
316
 
317
- },{"../src/traces/scattergeo":825}],39:[function(_dereq_,module,exports){
317
+ },{"../src/traces/scattergeo":826}],39:[function(_dereq_,module,exports){
318
318
  'use strict';
319
319
 
320
320
  module.exports = _dereq_('../src/traces/scattermapbox');
321
321
 
322
- },{"../src/traces/scattermapbox":835}],40:[function(_dereq_,module,exports){
322
+ },{"../src/traces/scattermapbox":836}],40:[function(_dereq_,module,exports){
323
323
  'use strict';
324
324
 
325
325
  module.exports = _dereq_('../src/traces/scatterpolar');
326
326
 
327
- },{"../src/traces/scatterpolar":843}],41:[function(_dereq_,module,exports){
327
+ },{"../src/traces/scatterpolar":844}],41:[function(_dereq_,module,exports){
328
328
  'use strict';
329
329
 
330
330
  module.exports = _dereq_('../src/traces/scatterternary');
331
331
 
332
- },{"../src/traces/scatterternary":851}],42:[function(_dereq_,module,exports){
332
+ },{"../src/traces/scatterternary":852}],42:[function(_dereq_,module,exports){
333
333
  'use strict';
334
334
 
335
335
  module.exports = _dereq_('../src/transforms/sort');
336
336
 
337
- },{"../src/transforms/sort":931}],43:[function(_dereq_,module,exports){
337
+ },{"../src/transforms/sort":932}],43:[function(_dereq_,module,exports){
338
338
  'use strict';
339
339
 
340
340
  module.exports = _dereq_('../src/traces/streamtube');
341
341
 
342
- },{"../src/traces/streamtube":857}],44:[function(_dereq_,module,exports){
342
+ },{"../src/traces/streamtube":858}],44:[function(_dereq_,module,exports){
343
343
  'use strict';
344
344
 
345
345
  module.exports = _dereq_('../src/traces/sunburst');
346
346
 
347
- },{"../src/traces/sunburst":865}],45:[function(_dereq_,module,exports){
347
+ },{"../src/traces/sunburst":866}],45:[function(_dereq_,module,exports){
348
348
  'use strict';
349
349
 
350
350
  module.exports = _dereq_('../src/traces/surface');
351
351
 
352
- },{"../src/traces/surface":874}],46:[function(_dereq_,module,exports){
352
+ },{"../src/traces/surface":875}],46:[function(_dereq_,module,exports){
353
353
  'use strict';
354
354
 
355
355
  module.exports = _dereq_('../src/traces/table');
356
356
 
357
- },{"../src/traces/table":882}],47:[function(_dereq_,module,exports){
357
+ },{"../src/traces/table":883}],47:[function(_dereq_,module,exports){
358
358
  'use strict';
359
359
 
360
360
  module.exports = _dereq_('../src/traces/treemap');
361
361
 
362
- },{"../src/traces/treemap":893}],48:[function(_dereq_,module,exports){
362
+ },{"../src/traces/treemap":894}],48:[function(_dereq_,module,exports){
363
363
  'use strict';
364
364
 
365
365
  module.exports = _dereq_('../src/traces/violin');
366
366
 
367
- },{"../src/traces/violin":906}],49:[function(_dereq_,module,exports){
367
+ },{"../src/traces/violin":907}],49:[function(_dereq_,module,exports){
368
368
  'use strict';
369
369
 
370
370
  module.exports = _dereq_('../src/traces/volume');
371
371
 
372
- },{"../src/traces/volume":914}],50:[function(_dereq_,module,exports){
372
+ },{"../src/traces/volume":915}],50:[function(_dereq_,module,exports){
373
373
  'use strict';
374
374
 
375
375
  module.exports = _dereq_('../src/traces/waterfall');
376
376
 
377
- },{"../src/traces/waterfall":922}],51:[function(_dereq_,module,exports){
377
+ },{"../src/traces/waterfall":923}],51:[function(_dereq_,module,exports){
378
378
  (function (global, factory) {
379
379
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, _dereq_('d3-array'), _dereq_('d3-collection'), _dereq_('d3-shape'), _dereq_('elementary-circuits-directed-graph')) :
380
380
  typeof define === 'function' && define.amd ? define(['exports', 'd3-array', 'd3-collection', 'd3-shape', 'elementary-circuits-directed-graph'], factory) :
@@ -96736,13 +96736,11 @@ var overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;
96736
96736
 
96737
96737
 
96738
96738
  module.exports = overrideAll({
96739
- // TODO: only right is supported currently
96740
- // orient: {
96741
- // valType: 'enumerated',
96742
- // values: ['left', 'right', 'top', 'bottom'],
96743
- // dflt: 'right',
96744
- //
96745
- // },
96739
+ orientation: {
96740
+ valType: 'enumerated',
96741
+ values: ['h', 'v'],
96742
+ dflt: 'v',
96743
+ },
96746
96744
  thicknessmode: {
96747
96745
  valType: 'enumerated',
96748
96746
  values: ['fraction', 'pixels'],
@@ -96765,14 +96763,12 @@ module.exports = overrideAll({
96765
96763
  },
96766
96764
  x: {
96767
96765
  valType: 'number',
96768
- dflt: 1.02,
96769
96766
  min: -2,
96770
96767
  max: 3,
96771
96768
  },
96772
96769
  xanchor: {
96773
96770
  valType: 'enumerated',
96774
96771
  values: ['left', 'center', 'right'],
96775
- dflt: 'left',
96776
96772
  },
96777
96773
  xpad: {
96778
96774
  valType: 'number',
@@ -96781,14 +96777,12 @@ module.exports = overrideAll({
96781
96777
  },
96782
96778
  y: {
96783
96779
  valType: 'number',
96784
- dflt: 0.5,
96785
96780
  min: -2,
96786
96781
  max: 3,
96787
96782
  },
96788
96783
  yanchor: {
96789
96784
  valType: 'enumerated',
96790
96785
  values: ['top', 'middle', 'bottom'],
96791
- dflt: 'middle',
96792
96786
  },
96793
96787
  ypad: {
96794
96788
  valType: 'number',
@@ -96820,15 +96814,21 @@ module.exports = overrideAll({
96820
96814
  ticks: extendFlat({}, axesAttrs.ticks, {dflt: ''}),
96821
96815
  ticklabeloverflow: extendFlat({}, axesAttrs.ticklabeloverflow, {
96822
96816
  }),
96817
+
96818
+ // ticklabelposition: not used directly, as values depend on orientation
96819
+ // left/right options are for x axes, and top/bottom options are for y axes
96823
96820
  ticklabelposition: {
96824
96821
  valType: 'enumerated',
96825
96822
  values: [
96826
96823
  'outside', 'inside',
96827
96824
  'outside top', 'inside top',
96825
+ 'outside left', 'inside left',
96826
+ 'outside right', 'inside right',
96828
96827
  'outside bottom', 'inside bottom'
96829
96828
  ],
96830
96829
  dflt: 'outside',
96831
96830
  },
96831
+
96832
96832
  ticklen: axesAttrs.ticklen,
96833
96833
  tickwidth: axesAttrs.tickwidth,
96834
96834
  tickcolor: axesAttrs.tickcolor,
@@ -96855,7 +96855,6 @@ module.exports = overrideAll({
96855
96855
  side: {
96856
96856
  valType: 'enumerated',
96857
96857
  values: ['right', 'top', 'bottom'],
96858
- dflt: 'top',
96859
96858
  }
96860
96859
  },
96861
96860
 
@@ -96914,23 +96913,30 @@ module.exports = function colorbarDefaults(containerIn, containerOut, layout) {
96914
96913
  return Lib.coerce(colorbarIn, colorbarOut, attributes, attr, dflt);
96915
96914
  }
96916
96915
 
96916
+ var margin = layout.margin || {t: 0, b: 0, l: 0, r: 0};
96917
+ var w = layout.width - margin.l - margin.r;
96918
+ var h = layout.height - margin.t - margin.b;
96919
+
96920
+ var orientation = coerce('orientation');
96921
+ var isVertical = orientation === 'v';
96922
+
96917
96923
  var thicknessmode = coerce('thicknessmode');
96918
96924
  coerce('thickness', (thicknessmode === 'fraction') ?
96919
- 30 / (layout.width - layout.margin.l - layout.margin.r) :
96925
+ 30 / (isVertical ? w : h) :
96920
96926
  30
96921
96927
  );
96922
96928
 
96923
96929
  var lenmode = coerce('lenmode');
96924
96930
  coerce('len', (lenmode === 'fraction') ?
96925
96931
  1 :
96926
- layout.height - layout.margin.t - layout.margin.b
96932
+ isVertical ? h : w
96927
96933
  );
96928
96934
 
96929
- coerce('x');
96930
- coerce('xanchor');
96935
+ coerce('x', isVertical ? 1.02 : 0.5);
96936
+ coerce('xanchor', isVertical ? 'left' : 'center');
96931
96937
  coerce('xpad');
96932
- coerce('y');
96933
- coerce('yanchor');
96938
+ coerce('y', isVertical ? 0.5 : 1.02);
96939
+ coerce('yanchor', isVertical ? 'middle' : 'bottom');
96934
96940
  coerce('ypad');
96935
96941
  Lib.noneOrAll(colorbarIn, colorbarOut, ['x', 'y']);
96936
96942
 
@@ -96940,7 +96946,22 @@ module.exports = function colorbarDefaults(containerIn, containerOut, layout) {
96940
96946
  coerce('borderwidth');
96941
96947
  coerce('bgcolor');
96942
96948
 
96943
- var ticklabelposition = coerce('ticklabelposition');
96949
+ var ticklabelposition = Lib.coerce(colorbarIn, colorbarOut, {
96950
+ ticklabelposition: {
96951
+ valType: 'enumerated',
96952
+ dflt: 'outside',
96953
+ values: isVertical ? [
96954
+ 'outside', 'inside',
96955
+ 'outside top', 'inside top',
96956
+ 'outside bottom', 'inside bottom'
96957
+ ] : [
96958
+ 'outside', 'inside',
96959
+ 'outside left', 'inside left',
96960
+ 'outside right', 'inside right'
96961
+ ]
96962
+ }
96963
+ }, 'ticklabelposition');
96964
+
96944
96965
  coerce('ticklabeloverflow', ticklabelposition.indexOf('inside') !== -1 ? 'hide past domain' : 'hide past div');
96945
96966
 
96946
96967
  handleTickValueDefaults(colorbarIn, colorbarOut, coerce, 'linear');
@@ -96962,7 +96983,7 @@ module.exports = function colorbarDefaults(containerIn, containerOut, layout) {
96962
96983
  size: Lib.bigFont(tickFont.size)
96963
96984
  });
96964
96985
  Lib.coerceFont(coerce, 'title.font', dfltTitleFont);
96965
- coerce('title.side');
96986
+ coerce('title.side', isVertical ? 'top' : 'right');
96966
96987
  };
96967
96988
 
96968
96989
  },{"../../lib":371,"../../plot_api/plot_template":410,"../../plots/cartesian/prefix_suffix_defaults":440,"../../plots/cartesian/tick_label_defaults":445,"../../plots/cartesian/tick_mark_defaults":446,"../../plots/cartesian/tick_value_defaults":447,"./attributes":235}],238:[function(_dereq_,module,exports){
@@ -97135,18 +97156,20 @@ function makeColorBarData(gd) {
97135
97156
  }
97136
97157
 
97137
97158
  function drawColorBar(g, opts, gd) {
97159
+ var isVertical = opts.orientation === 'v';
97138
97160
  var len = opts.len;
97139
97161
  var lenmode = opts.lenmode;
97140
97162
  var thickness = opts.thickness;
97141
97163
  var thicknessmode = opts.thicknessmode;
97142
97164
  var outlinewidth = opts.outlinewidth;
97143
97165
  var borderwidth = opts.borderwidth;
97166
+ var bgcolor = opts.bgcolor;
97144
97167
  var xanchor = opts.xanchor;
97145
97168
  var yanchor = opts.yanchor;
97146
97169
  var xpad = opts.xpad;
97147
97170
  var ypad = opts.ypad;
97148
97171
  var optsX = opts.x;
97149
- var optsY = opts.y;
97172
+ var optsY = isVertical ? opts.y : 1 - opts.y;
97150
97173
 
97151
97174
  var fullLayout = gd._fullLayout;
97152
97175
  var gs = fullLayout._size;
@@ -97177,23 +97200,35 @@ function drawColorBar(g, opts, gd) {
97177
97200
  // when the colorbar itself is pushing the margins.
97178
97201
  // but then the fractional size is calculated based on the
97179
97202
  // actual graph size, so that the axes will size correctly.
97180
- var thickPx = Math.round(thickness * (thicknessmode === 'fraction' ? gs.w : 1));
97181
- var thickFrac = thickPx / gs.w;
97182
- var lenPx = Math.round(len * (lenmode === 'fraction' ? gs.h : 1));
97183
- var lenFrac = lenPx / gs.h;
97184
- var xpadFrac = xpad / gs.w;
97185
- var yExtraPx = (borderwidth + outlinewidth) / 2;
97186
- var ypadFrac = ypad / gs.h;
97203
+ var thickPx = Math.round(thickness * (thicknessmode === 'fraction' ? (isVertical ? gs.w : gs.h) : 1));
97204
+ var thickFrac = thickPx / (isVertical ? gs.w : gs.h);
97205
+ var lenPx = Math.round(len * (lenmode === 'fraction' ? (isVertical ? gs.h : gs.w) : 1));
97206
+ var lenFrac = lenPx / (isVertical ? gs.h : gs.w);
97187
97207
 
97188
97208
  // x positioning: do it initially just for left anchor,
97189
97209
  // then fix at the end (since we don't know the width yet)
97190
- var uPx = Math.round(optsX * gs.w + xpad);
97191
- // for dragging... this is getting a little muddled...
97192
- var uFrac = optsX - thickFrac * ({center: 0.5, right: 1}[xanchor] || 0);
97210
+ var uPx = Math.round(isVertical ?
97211
+ optsX * gs.w + xpad :
97212
+ optsY * gs.h + ypad
97213
+ );
97193
97214
 
97194
- // y positioning we can do correctly from the start
97195
- var vFrac = optsY + lenFrac * (({top: -0.5, bottom: 0.5}[yanchor] || 0) - 0.5);
97196
- var vPx = Math.round(gs.h * (1 - vFrac));
97215
+ var xRatio = {center: 0.5, right: 1}[xanchor] || 0;
97216
+ var yRatio = {top: 1, middle: 0.5}[yanchor] || 0;
97217
+
97218
+ // for dragging... this is getting a little muddled...
97219
+ var uFrac = isVertical ?
97220
+ optsX - xRatio * thickFrac :
97221
+ optsY - yRatio * thickFrac;
97222
+
97223
+ // y/x positioning (for v/h) we can do correctly from the start
97224
+ var vFrac = isVertical ?
97225
+ optsY - yRatio * lenFrac :
97226
+ optsX - xRatio * lenFrac;
97227
+
97228
+ var vPx = Math.round(isVertical ?
97229
+ gs.h * (1 - vFrac) :
97230
+ gs.w * vFrac
97231
+ );
97197
97232
 
97198
97233
  // stash a few things for makeEditable
97199
97234
  opts._lenFrac = lenFrac;
@@ -97206,12 +97241,23 @@ function drawColorBar(g, opts, gd) {
97206
97241
 
97207
97242
  // position can't go in through supplyDefaults
97208
97243
  // because that restricts it to [0,1]
97209
- ax.position = optsX + xpadFrac + thickFrac;
97244
+ ax.position = thickFrac + (isVertical ?
97245
+ optsX + xpad / gs.w :
97246
+ optsY + ypad / gs.h
97247
+ );
97210
97248
 
97211
- if(['top', 'bottom'].indexOf(titleSide) !== -1) {
97249
+ var topOrBottom = ['top', 'bottom'].indexOf(titleSide) !== -1;
97250
+
97251
+ if(isVertical && topOrBottom) {
97212
97252
  ax.title.side = titleSide;
97213
- ax.titlex = optsX + xpadFrac;
97214
- ax.titley = vFrac + (title.side === 'top' ? lenFrac - ypadFrac : ypadFrac);
97253
+ ax.titlex = optsX + xpad / gs.w;
97254
+ ax.titley = vFrac + (title.side === 'top' ? lenFrac - ypad / gs.h : ypad / gs.h);
97255
+ }
97256
+
97257
+ if(!isVertical && !topOrBottom) {
97258
+ ax.title.side = titleSide;
97259
+ ax.titley = optsY + ypad / gs.h;
97260
+ ax.titlex = vFrac + xpad / gs.w; // right side
97215
97261
  }
97216
97262
 
97217
97263
  if(line.color && opts.tickmode === 'auto') {
@@ -97236,9 +97282,12 @@ function drawColorBar(g, opts, gd) {
97236
97282
 
97237
97283
  // set domain after init, because we may want to
97238
97284
  // allow it outside [0,1]
97239
- ax.domain = [
97240
- vFrac + ypadFrac,
97241
- vFrac + lenFrac - ypadFrac
97285
+ ax.domain = isVertical ? [
97286
+ vFrac + ypad / gs.h,
97287
+ vFrac + lenFrac - ypad / gs.h
97288
+ ] : [
97289
+ vFrac + xpad / gs.w,
97290
+ vFrac + lenFrac - xpad / gs.w
97242
97291
  ];
97243
97292
 
97244
97293
  ax.setScale();
@@ -97248,9 +97297,13 @@ function drawColorBar(g, opts, gd) {
97248
97297
  var titleCont = g.select('.' + cn.cbtitleunshift)
97249
97298
  .attr('transform', strTranslate(-Math.round(gs.l), -Math.round(gs.t)));
97250
97299
 
97300
+ var ticklabelposition = ax.ticklabelposition;
97301
+ var titleFontSize = ax.title.font.size;
97302
+
97251
97303
  var axLayer = g.select('.' + cn.cbaxis);
97252
97304
  var titleEl;
97253
97305
  var titleHeight = 0;
97306
+ var titleWidth = 0;
97254
97307
 
97255
97308
  function drawTitle(titleClass, titleOpts) {
97256
97309
  var dfltTitleOpts = {
@@ -97275,54 +97328,98 @@ function drawColorBar(g, opts, gd) {
97275
97328
  }
97276
97329
 
97277
97330
  function drawDummyTitle() {
97278
- if(['top', 'bottom'].indexOf(titleSide) !== -1) {
97279
- // draw the title so we know how much room it needs
97280
- // when we squish the axis. This one only applies to
97281
- // top or bottom titles, not right side.
97282
- var x = gs.l + (optsX + xpadFrac) * gs.w;
97283
- var fontSize = ax.title.font.size;
97284
- var y;
97331
+ // draw the title so we know how much room it needs
97332
+ // when we squish the axis.
97333
+ // On vertical colorbars this only applies to top or bottom titles, not right side.
97334
+ // On horizontal colorbars this only applies to right, etc.
97335
+
97336
+ if(
97337
+ (isVertical && topOrBottom) ||
97338
+ (!isVertical && !topOrBottom)
97339
+ ) {
97340
+ var x, y;
97285
97341
 
97286
97342
  if(titleSide === 'top') {
97287
- y = (1 - (vFrac + lenFrac - ypadFrac)) * gs.h +
97288
- gs.t + 3 + fontSize * 0.75;
97289
- } else {
97290
- y = (1 - (vFrac + ypadFrac)) * gs.h +
97291
- gs.t - 3 - fontSize * 0.25;
97343
+ x = xpad + gs.l + gs.w * optsX;
97344
+ y = ypad + gs.t + gs.h * (1 - vFrac - lenFrac) + 3 + titleFontSize * 0.75;
97345
+ }
97346
+
97347
+ if(titleSide === 'bottom') {
97348
+ x = xpad + gs.l + gs.w * optsX;
97349
+ y = ypad + gs.t + gs.h * (1 - vFrac) - 3 - titleFontSize * 0.25;
97350
+ }
97351
+
97352
+ if(titleSide === 'right') {
97353
+ y = ypad + gs.t + gs.h * optsY + 3 + titleFontSize * 0.75;
97354
+ x = xpad + gs.l + gs.w * vFrac;
97292
97355
  }
97356
+
97293
97357
  drawTitle(ax._id + 'title', {
97294
- attributes: {x: x, y: y, 'text-anchor': 'start'}
97358
+ attributes: {x: x, y: y, 'text-anchor': isVertical ? 'start' : 'middle'}
97295
97359
  });
97296
97360
  }
97297
97361
  }
97298
97362
 
97299
97363
  function drawCbTitle() {
97300
- if(['top', 'bottom'].indexOf(titleSide) === -1) {
97301
- var fontSize = ax.title.font.size;
97302
- var y = ax._offset + ax._length / 2;
97303
- var x = gs.l + (ax.position || 0) * gs.w + ((ax.side === 'right') ?
97304
- 10 + fontSize * ((ax.showticklabels ? 1 : 0.5)) :
97305
- -10 - fontSize * ((ax.showticklabels ? 0.5 : 0)));
97306
-
97307
- // the 'h' + is a hack to get around the fact that
97308
- // convertToTspans rotates any 'y...' class by 90 degrees.
97309
- // TODO: find a better way to control this.
97310
- drawTitle('h' + ax._id + 'title', {
97364
+ if(
97365
+ (isVertical && !topOrBottom) ||
97366
+ (!isVertical && topOrBottom)
97367
+ ) {
97368
+ var pos = ax.position || 0;
97369
+ var mid = ax._offset + ax._length / 2;
97370
+ var x, y;
97371
+
97372
+ if(titleSide === 'right') {
97373
+ y = mid;
97374
+ x = gs.l + gs.w * pos + 10 + titleFontSize * (
97375
+ ax.showticklabels ? 1 : 0.5
97376
+ );
97377
+ } else {
97378
+ x = mid;
97379
+
97380
+ if(titleSide === 'bottom') {
97381
+ y = gs.t + gs.h * pos + 10 + (
97382
+ ticklabelposition.indexOf('inside') === -1 ?
97383
+ ax.tickfont.size :
97384
+ 0
97385
+ ) + (
97386
+ ax.ticks !== 'intside' ?
97387
+ opts.ticklen || 0 :
97388
+ 0
97389
+ );
97390
+ }
97391
+
97392
+ if(titleSide === 'top') {
97393
+ var nlines = title.text.split('<br>').length;
97394
+ y = gs.t + gs.h * pos + 10 - thickPx - LINE_SPACING * titleFontSize * nlines;
97395
+ }
97396
+ }
97397
+
97398
+ drawTitle((isVertical ?
97399
+ // the 'h' + is a hack to get around the fact that
97400
+ // convertToTspans rotates any 'y...' class by 90 degrees.
97401
+ // TODO: find a better way to control this.
97402
+ 'h' :
97403
+ 'v'
97404
+ ) + ax._id + 'title', {
97311
97405
  avoid: {
97312
97406
  selection: d3.select(gd).selectAll('g.' + ax._id + 'tick'),
97313
97407
  side: titleSide,
97314
- offsetLeft: gs.l,
97315
- offsetTop: 0,
97316
- maxShift: fullLayout.width
97408
+ offsetTop: isVertical ? 0 : gs.t,
97409
+ offsetLeft: isVertical ? gs.l : 0,
97410
+ maxShift: isVertical ? fullLayout.width : fullLayout.height
97317
97411
  },
97318
97412
  attributes: {x: x, y: y, 'text-anchor': 'middle'},
97319
- transform: {rotate: '-90', offset: 0}
97413
+ transform: {rotate: isVertical ? -90 : 0, offset: 0}
97320
97414
  });
97321
97415
  }
97322
97416
  }
97323
97417
 
97324
97418
  function drawAxis() {
97325
- if(['top', 'bottom'].indexOf(titleSide) !== -1) {
97419
+ if(
97420
+ (!isVertical && !topOrBottom) ||
97421
+ (isVertical && topOrBottom)
97422
+ ) {
97326
97423
  // squish the axis top to make room for the title
97327
97424
  var titleGroup = g.select('.' + cn.cbtitle);
97328
97425
  var titleText = titleGroup.select('text');
@@ -97334,39 +97431,63 @@ function drawColorBar(g, opts, gd) {
97334
97431
  if(titleText.node()) {
97335
97432
  lineSize = parseInt(titleText.node().style.fontSize, 10) * LINE_SPACING;
97336
97433
  }
97434
+
97435
+ var bb;
97337
97436
  if(mathJaxNode) {
97338
- titleHeight = Drawing.bBox(mathJaxNode).height;
97437
+ bb = Drawing.bBox(mathJaxNode);
97438
+ titleWidth = bb.width;
97439
+ titleHeight = bb.height;
97339
97440
  if(titleHeight > lineSize) {
97340
97441
  // not entirely sure how mathjax is doing
97341
97442
  // vertical alignment, but this seems to work.
97342
97443
  titleTrans[1] -= (titleHeight - lineSize) / 2;
97343
97444
  }
97344
97445
  } else if(titleText.node() && !titleText.classed(cn.jsPlaceholder)) {
97345
- titleHeight = Drawing.bBox(titleText.node()).height;
97446
+ bb = Drawing.bBox(titleText.node());
97447
+ titleWidth = bb.width;
97448
+ titleHeight = bb.height;
97346
97449
  }
97347
- if(titleHeight) {
97348
- // buffer btwn colorbar and title
97349
- // TODO: configurable
97350
- titleHeight += 5;
97351
97450
 
97352
- if(titleSide === 'top') {
97353
- ax.domain[1] -= titleHeight / gs.h;
97354
- titleTrans[1] *= -1;
97355
- } else {
97356
- ax.domain[0] += titleHeight / gs.h;
97357
- var nlines = svgTextUtils.lineCount(titleText);
97358
- titleTrans[1] += (1 - nlines) * lineSize;
97451
+ if(isVertical) {
97452
+ if(titleHeight) {
97453
+ // buffer btwn colorbar and title
97454
+ // TODO: configurable
97455
+ titleHeight += 5;
97456
+
97457
+ if(titleSide === 'top') {
97458
+ ax.domain[1] -= titleHeight / gs.h;
97459
+ titleTrans[1] *= -1;
97460
+ } else {
97461
+ ax.domain[0] += titleHeight / gs.h;
97462
+ var nlines = svgTextUtils.lineCount(titleText);
97463
+ titleTrans[1] += (1 - nlines) * lineSize;
97464
+ }
97465
+
97466
+ titleGroup.attr('transform', strTranslate(titleTrans[0], titleTrans[1]));
97467
+ ax.setScale();
97359
97468
  }
97469
+ } else { // horizontal colorbars
97470
+ if(titleWidth) {
97471
+ if(titleSide === 'right') {
97472
+ ax.domain[0] += (titleWidth + titleFontSize / 2) / gs.w;
97473
+ }
97360
97474
 
97361
- titleGroup.attr('transform', strTranslate(titleTrans[0], titleTrans[1]));
97362
- ax.setScale();
97475
+ titleGroup.attr('transform', strTranslate(titleTrans[0], titleTrans[1]));
97476
+ ax.setScale();
97477
+ }
97363
97478
  }
97364
97479
  }
97365
97480
 
97366
97481
  g.selectAll('.' + cn.cbfills + ',.' + cn.cblines)
97367
- .attr('transform', strTranslate(0, Math.round(gs.h * (1 - ax.domain[1]))));
97482
+ .attr('transform', isVertical ?
97483
+ strTranslate(0, Math.round(gs.h * (1 - ax.domain[1]))) :
97484
+ strTranslate(Math.round(gs.w * ax.domain[0]), 0)
97485
+ );
97368
97486
 
97369
- axLayer.attr('transform', strTranslate(0, Math.round(-gs.t)));
97487
+ axLayer.attr('transform', isVertical ?
97488
+ strTranslate(0, Math.round(-gs.t)) :
97489
+ strTranslate(Math.round(-gs.l), 0)
97490
+ );
97370
97491
 
97371
97492
  var fills = g.select('.' + cn.cbfills)
97372
97493
  .selectAll('rect.' + cn.cbfill)
@@ -97392,20 +97513,22 @@ function drawColorBar(g, opts, gd) {
97392
97513
 
97393
97514
  // offset the side adjoining the next rectangle so they
97394
97515
  // overlap, to prevent antialiasing gaps
97395
- z[1] = Lib.constrain(z[1] + (z[1] > z[0]) ? 1 : -1, zBounds[0], zBounds[1]);
97396
-
97516
+ if(isVertical) {
97517
+ z[1] = Lib.constrain(z[1] + (z[1] > z[0]) ? 1 : -1, zBounds[0], zBounds[1]);
97518
+ } /* else {
97519
+ // TODO: horizontal case
97520
+ } */
97397
97521
 
97398
97522
  // Colorbar cannot currently support opacities so we
97399
97523
  // use an opaque fill even when alpha channels present
97400
- var fillEl = d3.select(this).attr({
97401
- x: uPx,
97402
- width: Math.max(thickPx, 2),
97403
- y: d3.min(z),
97404
- height: Math.max(d3.max(z) - d3.min(z), 2),
97405
- });
97524
+ var fillEl = d3.select(this)
97525
+ .attr(isVertical ? 'x' : 'y', uPx)
97526
+ .attr(isVertical ? 'y' : 'x', d3.min(z))
97527
+ .attr(isVertical ? 'width' : 'height', Math.max(thickPx, 2))
97528
+ .attr(isVertical ? 'height' : 'width', Math.max(d3.max(z) - d3.min(z), 2));
97406
97529
 
97407
97530
  if(opts._fillgradient) {
97408
- Drawing.gradient(fillEl, gd, opts._id, 'vertical', opts._fillgradient, 'fill');
97531
+ Drawing.gradient(fillEl, gd, opts._id, isVertical ? 'vertical' : 'horizontalreversed', opts._fillgradient, 'fill');
97409
97532
  } else {
97410
97533
  // tinycolor can't handle exponents and
97411
97534
  // at this scale, removing it makes no difference.
@@ -97421,9 +97544,15 @@ function drawColorBar(g, opts, gd) {
97421
97544
  .classed(cn.cbline, true);
97422
97545
  lines.exit().remove();
97423
97546
  lines.each(function(d) {
97547
+ var a = uPx;
97548
+ var b = (Math.round(ax.c2p(d)) + (line.width / 2) % 1);
97549
+
97424
97550
  d3.select(this)
97425
- .attr('d', 'M' + uPx + ',' +
97426
- (Math.round(ax.c2p(d)) + (line.width / 2) % 1) + 'h' + thickPx)
97551
+ .attr('d', 'M' +
97552
+ (isVertical ? a + ',' + b : b + ',' + a) +
97553
+ (isVertical ? 'h' : 'v') +
97554
+ thickPx
97555
+ )
97427
97556
  .call(Drawing.lineGroupStyle, line.width, lineColormap(d), line.dash);
97428
97557
  });
97429
97558
 
@@ -97456,82 +97585,211 @@ function drawColorBar(g, opts, gd) {
97456
97585
  // TODO: why are we redrawing multiple times now with this?
97457
97586
  // I guess autoMargin doesn't like being post-promise?
97458
97587
  function positionCB() {
97588
+ var bb;
97459
97589
  var innerThickness = thickPx + outlinewidth / 2;
97460
- if(ax.ticklabelposition.indexOf('inside') === -1) {
97461
- innerThickness += Drawing.bBox(axLayer.node()).width;
97590
+ if(ticklabelposition.indexOf('inside') === -1) {
97591
+ bb = Drawing.bBox(axLayer.node());
97592
+ innerThickness += isVertical ? bb.width : bb.height;
97462
97593
  }
97463
97594
 
97464
97595
  titleEl = titleCont.select('text');
97465
97596
 
97597
+ var titleWidth = 0;
97598
+
97599
+ var topSideVertical = isVertical && titleSide === 'top';
97600
+ var rightSideHorizontal = !isVertical && titleSide === 'right';
97601
+
97602
+ var moveY = 0;
97603
+
97466
97604
  if(titleEl.node() && !titleEl.classed(cn.jsPlaceholder)) {
97605
+ var _titleHeight;
97606
+
97467
97607
  var mathJaxNode = titleCont.select('.h' + ax._id + 'title-math-group').node();
97468
- var titleWidth;
97469
- if(mathJaxNode && ['top', 'bottom'].indexOf(titleSide) !== -1) {
97470
- titleWidth = Drawing.bBox(mathJaxNode).width;
97608
+ if(mathJaxNode && (
97609
+ (isVertical && topOrBottom) ||
97610
+ (!isVertical && !topOrBottom)
97611
+ )) {
97612
+ bb = Drawing.bBox(mathJaxNode);
97613
+ titleWidth = bb.width;
97614
+ _titleHeight = bb.height;
97471
97615
  } else {
97472
97616
  // note: the formula below works for all title sides,
97473
97617
  // (except for top/bottom mathjax, above)
97474
97618
  // but the weird gs.l is because the titleunshift
97475
97619
  // transform gets removed by Drawing.bBox
97476
- titleWidth = Drawing.bBox(titleCont.node()).right - uPx - gs.l;
97620
+ bb = Drawing.bBox(titleCont.node());
97621
+ titleWidth = bb.right - gs.l - (isVertical ? uPx : vPx);
97622
+ _titleHeight = bb.bottom - gs.t - (isVertical ? vPx : uPx);
97623
+
97624
+ if(
97625
+ !isVertical && titleSide === 'top'
97626
+ ) {
97627
+ innerThickness += bb.height;
97628
+ moveY = bb.height;
97629
+ }
97477
97630
  }
97478
- innerThickness = Math.max(innerThickness, titleWidth);
97631
+
97632
+ if(rightSideHorizontal) {
97633
+ titleEl.attr('transform', strTranslate(titleWidth / 2 + titleFontSize / 2, 0));
97634
+
97635
+ titleWidth *= 2;
97636
+ }
97637
+
97638
+ innerThickness = Math.max(innerThickness,
97639
+ isVertical ? titleWidth : _titleHeight
97640
+ );
97479
97641
  }
97480
97642
 
97481
- var outerThickness = 2 * xpad + innerThickness + borderwidth + outlinewidth / 2;
97643
+ var outerThickness = (isVertical ?
97644
+ xpad :
97645
+ ypad
97646
+ ) * 2 + innerThickness + borderwidth + outlinewidth / 2;
97482
97647
 
97483
- g.select('.' + cn.cbbg).attr({
97484
- x: uPx - xpad - (borderwidth + outlinewidth) / 2,
97485
- y: vPx - lenPx - yExtraPx,
97486
- width: Math.max(outerThickness, 2),
97487
- height: Math.max(lenPx + 2 * yExtraPx, 2)
97488
- })
97489
- .call(Color.fill, opts.bgcolor)
97648
+ var hColorbarMoveTitle = 0;
97649
+ if(!isVertical && title.text && yanchor === 'bottom' && optsY <= 0) {
97650
+ hColorbarMoveTitle = outerThickness / 2;
97651
+
97652
+ outerThickness += hColorbarMoveTitle;
97653
+ moveY += hColorbarMoveTitle;
97654
+ }
97655
+ fullLayout._hColorbarMoveTitle = hColorbarMoveTitle;
97656
+ fullLayout._hColorbarMoveCBTitle = moveY;
97657
+
97658
+ var extraW = borderwidth + outlinewidth;
97659
+
97660
+ g.select('.' + cn.cbbg)
97661
+ .attr('x', (isVertical ? uPx : vPx) - extraW / 2 - (isVertical ? xpad : 0))
97662
+ .attr('y', (isVertical ? vPx : uPx) - (isVertical ? lenPx : ypad + moveY - hColorbarMoveTitle))
97663
+ .attr(isVertical ? 'width' : 'height', Math.max(outerThickness - hColorbarMoveTitle, 2))
97664
+ .attr(isVertical ? 'height' : 'width', Math.max(lenPx + extraW, 2))
97665
+ .call(Color.fill, bgcolor)
97490
97666
  .call(Color.stroke, opts.bordercolor)
97491
97667
  .style('stroke-width', borderwidth);
97492
97668
 
97493
- g.selectAll('.' + cn.cboutline).attr({
97494
- x: uPx,
97495
- y: vPx - lenPx + ypad + (titleSide === 'top' ? titleHeight : 0),
97496
- width: Math.max(thickPx, 2),
97497
- height: Math.max(lenPx - 2 * ypad - titleHeight, 2)
97498
- })
97669
+ var moveX = rightSideHorizontal ? Math.max(titleWidth - 10, 0) : 0;
97670
+
97671
+ g.selectAll('.' + cn.cboutline)
97672
+ .attr('x', (isVertical ? uPx : vPx + xpad) + moveX)
97673
+ .attr('y', (isVertical ? vPx + ypad - lenPx : uPx) + (topSideVertical ? titleHeight : 0))
97674
+ .attr(isVertical ? 'width' : 'height', Math.max(thickPx, 2))
97675
+ .attr(isVertical ? 'height' : 'width', Math.max(lenPx - (isVertical ?
97676
+ 2 * ypad + titleHeight :
97677
+ 2 * xpad + moveX
97678
+ ), 2))
97499
97679
  .call(Color.stroke, opts.outlinecolor)
97500
97680
  .style({
97501
97681
  fill: 'none',
97502
97682
  'stroke-width': outlinewidth
97503
97683
  });
97504
97684
 
97505
- // fix positioning for xanchor!='left'
97506
- var xoffset = ({center: 0.5, right: 1}[xanchor] || 0) * outerThickness;
97507
- g.attr('transform', strTranslate(gs.l - xoffset, gs.t));
97685
+ g.attr('transform', strTranslate(
97686
+ gs.l - (isVertical ? xRatio * outerThickness : 0),
97687
+ gs.t - (isVertical ? 0 : (1 - yRatio) * outerThickness - moveY)
97688
+ ));
97689
+
97690
+ if(!isVertical && (
97691
+ borderwidth || (
97692
+ tinycolor(bgcolor).getAlpha() &&
97693
+ !tinycolor.equals(fullLayout.paper_bgcolor, bgcolor)
97694
+ )
97695
+ )) {
97696
+ // for horizontal colorbars when there is a border line or having different background color
97697
+ // hide/adjust x positioning for the first/last tick labels if they go outside the border
97698
+ var tickLabels = axLayer.selectAll('text');
97699
+ var numTicks = tickLabels[0].length;
97700
+
97701
+ var border = g.select('.' + cn.cbbg).node();
97702
+ var oBb = Drawing.bBox(border);
97703
+ var oTr = Drawing.getTranslate(g);
97704
+
97705
+ var TEXTPAD = 2;
97706
+
97707
+ tickLabels.each(function(d, i) {
97708
+ var first = 0;
97709
+ var last = numTicks - 1;
97710
+ if(i === first || i === last) {
97711
+ var iBb = Drawing.bBox(this);
97712
+ var iTr = Drawing.getTranslate(this);
97713
+ var deltaX;
97714
+
97715
+ if(i === last) {
97716
+ var iRight = iBb.right + iTr.x;
97717
+ var oRight = oBb.right + oTr.x + vPx - borderwidth - TEXTPAD + optsX;
97718
+
97719
+ deltaX = oRight - iRight;
97720
+ if(deltaX > 0) deltaX = 0;
97721
+ } else if(i === first) {
97722
+ var iLeft = iBb.left + iTr.x;
97723
+ var oLeft = oBb.left + oTr.x + vPx + borderwidth + TEXTPAD;
97724
+
97725
+ deltaX = oLeft - iLeft;
97726
+ if(deltaX < 0) deltaX = 0;
97727
+ }
97728
+
97729
+ if(deltaX) {
97730
+ if(numTicks < 3) { // adjust position
97731
+ this.setAttribute('transform',
97732
+ 'translate(' + deltaX + ',0) ' +
97733
+ this.getAttribute('transform')
97734
+ );
97735
+ } else { // hide
97736
+ this.setAttribute('visibility', 'hidden');
97737
+ }
97738
+ }
97739
+ }
97740
+ });
97741
+ }
97508
97742
 
97509
97743
  // auto margin adjustment
97510
97744
  var marginOpts = {};
97745
+ var lFrac = FROM_TL[xanchor];
97746
+ var rFrac = FROM_BR[xanchor];
97511
97747
  var tFrac = FROM_TL[yanchor];
97512
97748
  var bFrac = FROM_BR[yanchor];
97513
- if(lenmode === 'pixels') {
97514
- marginOpts.y = optsY;
97515
- marginOpts.t = lenPx * tFrac;
97516
- marginOpts.b = lenPx * bFrac;
97517
- } else {
97518
- marginOpts.t = marginOpts.b = 0;
97519
- marginOpts.yt = optsY + len * tFrac;
97520
- marginOpts.yb = optsY - len * bFrac;
97521
- }
97522
97749
 
97523
- var lFrac = FROM_TL[xanchor];
97524
- var rFrac = FROM_BR[xanchor];
97525
- if(thicknessmode === 'pixels') {
97526
- marginOpts.x = optsX;
97527
- marginOpts.l = outerThickness * lFrac;
97528
- marginOpts.r = outerThickness * rFrac;
97529
- } else {
97530
- var extraThickness = outerThickness - thickPx;
97531
- marginOpts.l = extraThickness * lFrac;
97532
- marginOpts.r = extraThickness * rFrac;
97533
- marginOpts.xl = optsX - thickness * lFrac;
97534
- marginOpts.xr = optsX + thickness * rFrac;
97750
+ var extraThickness = outerThickness - thickPx;
97751
+ if(isVertical) {
97752
+ if(lenmode === 'pixels') {
97753
+ marginOpts.y = optsY;
97754
+ marginOpts.t = lenPx * tFrac;
97755
+ marginOpts.b = lenPx * bFrac;
97756
+ } else {
97757
+ marginOpts.t = marginOpts.b = 0;
97758
+ marginOpts.yt = optsY + len * tFrac;
97759
+ marginOpts.yb = optsY - len * bFrac;
97760
+ }
97761
+
97762
+ if(thicknessmode === 'pixels') {
97763
+ marginOpts.x = optsX;
97764
+ marginOpts.l = outerThickness * lFrac;
97765
+ marginOpts.r = outerThickness * rFrac;
97766
+ } else {
97767
+ marginOpts.l = extraThickness * lFrac;
97768
+ marginOpts.r = extraThickness * rFrac;
97769
+ marginOpts.xl = optsX - thickness * lFrac;
97770
+ marginOpts.xr = optsX + thickness * rFrac;
97771
+ }
97772
+ } else { // horizontal colorbars
97773
+ if(lenmode === 'pixels') {
97774
+ marginOpts.x = optsX;
97775
+ marginOpts.l = lenPx * lFrac;
97776
+ marginOpts.r = lenPx * rFrac;
97777
+ } else {
97778
+ marginOpts.l = marginOpts.r = 0;
97779
+ marginOpts.xl = optsX + len * lFrac;
97780
+ marginOpts.xr = optsX - len * rFrac;
97781
+ }
97782
+
97783
+ if(thicknessmode === 'pixels') {
97784
+ marginOpts.y = 1 - optsY;
97785
+ marginOpts.t = outerThickness * tFrac;
97786
+ marginOpts.b = outerThickness * bFrac;
97787
+ } else {
97788
+ marginOpts.t = extraThickness * tFrac;
97789
+ marginOpts.b = extraThickness * bFrac;
97790
+ marginOpts.yt = optsY - thickness * tFrac;
97791
+ marginOpts.yb = optsY + thickness * bFrac;
97792
+ }
97535
97793
  }
97536
97794
 
97537
97795
  Plots.autoMargin(gd, opts._id, marginOpts);
@@ -97548,6 +97806,7 @@ function drawColorBar(g, opts, gd) {
97548
97806
  }
97549
97807
 
97550
97808
  function makeEditable(g, opts, gd) {
97809
+ var isVertical = opts.orientation === 'v';
97551
97810
  var fullLayout = gd._fullLayout;
97552
97811
  var gs = fullLayout._size;
97553
97812
  var t0, xf, yf;
@@ -97562,9 +97821,13 @@ function makeEditable(g, opts, gd) {
97562
97821
  moveFn: function(dx, dy) {
97563
97822
  g.attr('transform', t0 + strTranslate(dx, dy));
97564
97823
 
97565
- xf = dragElement.align(opts._uFrac + (dx / gs.w), opts._thickFrac,
97824
+ xf = dragElement.align(
97825
+ (isVertical ? opts._uFrac : opts._vFrac) + (dx / gs.w),
97826
+ isVertical ? opts._thickFrac : opts._lenFrac,
97566
97827
  0, 1, opts.xanchor);
97567
- yf = dragElement.align(opts._vFrac - (dy / gs.h), opts._lenFrac,
97828
+ yf = dragElement.align(
97829
+ (isVertical ? opts._vFrac : (1 - opts._uFrac)) - (dy / gs.h),
97830
+ isVertical ? opts._lenFrac : opts._thickFrac,
97568
97831
  0, 1, opts.yanchor);
97569
97832
 
97570
97833
  var csr = dragElement.getCursor(xf, yf, opts.xanchor, opts.yanchor);
@@ -97641,6 +97904,8 @@ function calcLevels(gd, opts, zrange) {
97641
97904
  function mockColorBarAxis(gd, opts, zrange) {
97642
97905
  var fullLayout = gd._fullLayout;
97643
97906
 
97907
+ var isVertical = opts.orientation === 'v';
97908
+
97644
97909
  var cbAxisIn = {
97645
97910
  type: 'linear',
97646
97911
  range: zrange,
@@ -97671,17 +97936,19 @@ function mockColorBarAxis(gd, opts, zrange) {
97671
97936
  title: opts.title,
97672
97937
  showline: true,
97673
97938
  anchor: 'free',
97674
- side: 'right',
97939
+ side: isVertical ? 'right' : 'bottom',
97675
97940
  position: 1
97676
97941
  };
97677
97942
 
97943
+ var letter = isVertical ? 'y' : 'x';
97944
+
97678
97945
  var cbAxisOut = {
97679
97946
  type: 'linear',
97680
- _id: 'y' + opts._id
97947
+ _id: letter + opts._id
97681
97948
  };
97682
97949
 
97683
97950
  var axisOptions = {
97684
- letter: 'y',
97951
+ letter: letter,
97685
97952
  font: fullLayout.font,
97686
97953
  noHover: true,
97687
97954
  noTickson: true,
@@ -100660,7 +100927,7 @@ drawing.setTextPointsScale = function(selection, xScale, yScale) {
100660
100927
  });
100661
100928
  };
100662
100929
 
100663
- },{"../../components/fx/helpers":270,"../../constants/alignment":339,"../../constants/interactions":346,"../../constants/xmlns_namespaces":348,"../../lib":371,"../../lib/svg_text_utils":396,"../../registry":501,"../../traces/scatter/make_bubble_size_func":794,"../../traces/scatter/subtypes":802,"../color":234,"../colorscale":246,"./symbol_defs":257,"@plotly/d3":53,"fast-isnumeric":99,"tinycolor2":195}],257:[function(_dereq_,module,exports){
100930
+ },{"../../components/fx/helpers":270,"../../constants/alignment":339,"../../constants/interactions":346,"../../constants/xmlns_namespaces":348,"../../lib":371,"../../lib/svg_text_utils":396,"../../registry":501,"../../traces/scatter/make_bubble_size_func":795,"../../traces/scatter/subtypes":803,"../color":234,"../colorscale":246,"./symbol_defs":257,"@plotly/d3":53,"fast-isnumeric":99,"tinycolor2":195}],257:[function(_dereq_,module,exports){
100664
100931
  'use strict';
100665
100932
 
100666
100933
  var d3 = _dereq_('@plotly/d3');
@@ -101759,7 +102026,7 @@ function errorCoords(d, xa, ya) {
101759
102026
  return out;
101760
102027
  }
101761
102028
 
101762
- },{"../../traces/scatter/subtypes":802,"../drawing":256,"@plotly/d3":53,"fast-isnumeric":99}],264:[function(_dereq_,module,exports){
102029
+ },{"../../traces/scatter/subtypes":803,"../drawing":256,"@plotly/d3":53,"fast-isnumeric":99}],264:[function(_dereq_,module,exports){
101763
102030
  'use strict';
101764
102031
 
101765
102032
  var d3 = _dereq_('@plotly/d3');
@@ -103294,7 +103561,9 @@ function createHoverText(hoverData, opts) {
103294
103561
  orientation: 'v'
103295
103562
  }
103296
103563
  };
103297
- var mockLayoutOut = {};
103564
+ var mockLayoutOut = {
103565
+ font: font
103566
+ };
103298
103567
  legendSupplyDefaults(mockLayoutIn, mockLayoutOut, gd._fullData);
103299
103568
  var mockLegend = mockLayoutOut.legend;
103300
103569
 
@@ -103335,7 +103604,8 @@ function createHoverText(hoverData, opts) {
103335
103604
 
103336
103605
  // Draw unified hover label
103337
103606
  mockLegend._inHover = true;
103338
- mockLegend._groupTitleFont = font;
103607
+ mockLegend._groupTitleFont = hoverlabel.grouptitlefont;
103608
+
103339
103609
  legendDraw(gd, mockLegend);
103340
103610
 
103341
103611
  // Position the hover
@@ -104337,9 +104607,11 @@ var isUnifiedHover = _dereq_('./helpers').isUnifiedHover;
104337
104607
  module.exports = function handleHoverLabelDefaults(contIn, contOut, coerce, opts) {
104338
104608
  opts = opts || {};
104339
104609
 
104610
+ var hasLegend = contOut.legend;
104611
+
104340
104612
  function inheritFontAttr(attr) {
104341
104613
  if(!opts.font[attr]) {
104342
- opts.font[attr] = contOut.legend ? contOut.legend.font[attr] : contOut.font[attr];
104614
+ opts.font[attr] = hasLegend ? contOut.legend.font[attr] : contOut.font[attr];
104343
104615
  }
104344
104616
  }
104345
104617
 
@@ -104350,7 +104622,7 @@ module.exports = function handleHoverLabelDefaults(contIn, contOut, coerce, opts
104350
104622
  inheritFontAttr('family');
104351
104623
  inheritFontAttr('color');
104352
104624
 
104353
- if(contOut.legend) {
104625
+ if(hasLegend) {
104354
104626
  if(!opts.bgcolor) opts.bgcolor = Color.combine(contOut.legend.bgcolor, contOut.paper_bgcolor);
104355
104627
  if(!opts.bordercolor) opts.bordercolor = contOut.legend.bordercolor;
104356
104628
  } else {
@@ -104459,11 +104731,13 @@ function castHoverinfo(trace, fullLayout, ptNumber) {
104459
104731
 
104460
104732
  var constants = _dereq_('./constants');
104461
104733
 
104462
- var fontAttrs = _dereq_('../../plots/font_attributes')({
104734
+ var fontAttrs = _dereq_('../../plots/font_attributes');
104735
+
104736
+ var font = fontAttrs({
104463
104737
  editType: 'none',
104464
104738
  });
104465
- fontAttrs.family.dflt = constants.HOVERFONT;
104466
- fontAttrs.size.dflt = constants.HOVERFONTSIZE;
104739
+ font.family.dflt = constants.HOVERFONT;
104740
+ font.size.dflt = constants.HOVERFONTSIZE;
104467
104741
 
104468
104742
  module.exports = {
104469
104743
  clickmode: {
@@ -104519,7 +104793,10 @@ module.exports = {
104519
104793
  valType: 'color',
104520
104794
  editType: 'none',
104521
104795
  },
104522
- font: fontAttrs,
104796
+ font: font,
104797
+ grouptitlefont: fontAttrs({
104798
+ editType: 'none',
104799
+ }),
104523
104800
  align: {
104524
104801
  valType: 'enumerated',
104525
104802
  values: ['left', 'right', 'auto'],
@@ -104532,6 +104809,7 @@ module.exports = {
104532
104809
  dflt: 15,
104533
104810
  editType: 'none',
104534
104811
  },
104812
+
104535
104813
  editType: 'none'
104536
104814
  },
104537
104815
  selectdirection: {
@@ -104579,6 +104857,8 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
104579
104857
  }
104580
104858
 
104581
104859
  handleHoverLabelDefaults(layoutIn, layoutOut, coerce);
104860
+
104861
+ Lib.coerceFont(coerce, 'hoverlabel.grouptitlefont', layoutOut.hoverlabel.font);
104582
104862
  };
104583
104863
 
104584
104864
  },{"../../lib":371,"./hoverlabel_defaults":272,"./hovermode_defaults":273,"./layout_attributes":275}],277:[function(_dereq_,module,exports){
@@ -105462,6 +105742,9 @@ module.exports = {
105462
105742
  font: fontAttrs({
105463
105743
  editType: 'legend',
105464
105744
  }),
105745
+ grouptitlefont: fontAttrs({
105746
+ editType: 'legend',
105747
+ }),
105465
105748
  orientation: {
105466
105749
  valType: 'enumerated',
105467
105750
  values: ['v', 'h'],
@@ -105585,6 +105868,7 @@ var Registry = _dereq_('../../registry');
105585
105868
  var Lib = _dereq_('../../lib');
105586
105869
  var Template = _dereq_('../../plot_api/plot_template');
105587
105870
 
105871
+ var plotsAttrs = _dereq_('../../plots/attributes');
105588
105872
  var attributes = _dereq_('./attributes');
105589
105873
  var basePlotLayoutAttributes = _dereq_('../../plots/layout_attributes');
105590
105874
  var helpers = _dereq_('./helpers');
@@ -105592,13 +105876,30 @@ var helpers = _dereq_('./helpers');
105592
105876
 
105593
105877
  module.exports = function legendDefaults(layoutIn, layoutOut, fullData) {
105594
105878
  var containerIn = layoutIn.legend || {};
105879
+ var containerOut = Template.newContainer(layoutOut, 'legend');
105880
+
105881
+ function coerce(attr, dflt) {
105882
+ return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);
105883
+ }
105884
+
105885
+ var trace;
105886
+ var traceCoerce = function(attr, dflt) {
105887
+ var traceIn = trace._input;
105888
+ var traceOut = trace;
105889
+ return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt);
105890
+ };
105891
+
105892
+ var globalFont = layoutOut.font || {};
105893
+ var grouptitlefont = Lib.coerceFont(coerce, 'grouptitlefont', Lib.extendFlat({}, globalFont, {
105894
+ size: Math.round(globalFont.size * 1.1)
105895
+ }));
105595
105896
 
105596
105897
  var legendTraceCount = 0;
105597
105898
  var legendReallyHasATrace = false;
105598
105899
  var defaultOrder = 'normal';
105599
105900
 
105600
105901
  for(var i = 0; i < fullData.length; i++) {
105601
- var trace = fullData[i];
105902
+ trace = fullData[i];
105602
105903
 
105603
105904
  if(!trace.visible) continue;
105604
105905
 
@@ -105625,6 +105926,8 @@ module.exports = function legendDefaults(layoutIn, layoutOut, fullData) {
105625
105926
  legendTraceCount++;
105626
105927
  }
105627
105928
  }
105929
+
105930
+ Lib.coerceFont(traceCoerce, 'legendgrouptitle.font', grouptitlefont);
105628
105931
  }
105629
105932
 
105630
105933
  if((Registry.traceIs(trace, 'bar') && layoutOut.barmode === 'stack') ||
@@ -105643,13 +105946,10 @@ module.exports = function legendDefaults(layoutIn, layoutOut, fullData) {
105643
105946
  basePlotLayoutAttributes, 'showlegend',
105644
105947
  legendReallyHasATrace && legendTraceCount > 1);
105645
105948
 
105646
- if(showLegend === false && !containerIn.uirevision) return;
105647
-
105648
- var containerOut = Template.newContainer(layoutOut, 'legend');
105949
+ // delete legend
105950
+ if(showLegend === false) layoutOut.legend = undefined;
105649
105951
 
105650
- function coerce(attr, dflt) {
105651
- return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);
105652
- }
105952
+ if(showLegend === false && !containerIn.uirevision) return;
105653
105953
 
105654
105954
  coerce('uirevision', layoutOut.uirevision);
105655
105955
 
@@ -105711,7 +106011,7 @@ module.exports = function legendDefaults(layoutIn, layoutOut, fullData) {
105711
106011
  }
105712
106012
  };
105713
106013
 
105714
- },{"../../lib":371,"../../plot_api/plot_template":410,"../../plots/layout_attributes":477,"../../registry":501,"./attributes":284,"./helpers":290}],287:[function(_dereq_,module,exports){
106014
+ },{"../../lib":371,"../../plot_api/plot_template":410,"../../plots/attributes":417,"../../plots/layout_attributes":477,"../../registry":501,"./attributes":284,"./helpers":290}],287:[function(_dereq_,module,exports){
105715
106015
  'use strict';
105716
106016
 
105717
106017
  var d3 = _dereq_('@plotly/d3');
@@ -107684,7 +107984,7 @@ function dimAttr(v, dflt, max) {
107684
107984
  return v;
107685
107985
  }
107686
107986
 
107687
- },{"../../lib":371,"../../registry":501,"../../traces/pie/helpers":756,"../../traces/pie/style_one":762,"../../traces/scatter/subtypes":802,"../color":234,"../colorscale/helpers":245,"../drawing":256,"./constants":285,"@plotly/d3":53}],293:[function(_dereq_,module,exports){
107987
+ },{"../../lib":371,"../../registry":501,"../../traces/pie/helpers":757,"../../traces/pie/style_one":763,"../../traces/scatter/subtypes":803,"../color":234,"../colorscale/helpers":245,"../drawing":256,"./constants":285,"@plotly/d3":53}],293:[function(_dereq_,module,exports){
107688
107988
  'use strict';
107689
107989
 
107690
107990
  var constants = _dereq_('./constants');
@@ -108918,7 +109218,7 @@ function fillCustomButton(customButtons) {
108918
109218
  return customButtons;
108919
109219
  }
108920
109220
 
108921
- },{"../../plots/cartesian/axis_ids":425,"../../registry":501,"../../traces/scatter/subtypes":802,"../fx/helpers":270,"./buttons":294,"./constants":295,"./modebar":299}],299:[function(_dereq_,module,exports){
109221
+ },{"../../plots/cartesian/axis_ids":425,"../../registry":501,"../../traces/scatter/subtypes":803,"../fx/helpers":270,"./buttons":294,"./constants":295,"./modebar":299}],299:[function(_dereq_,module,exports){
108922
109222
  'use strict';
108923
109223
 
108924
109224
  var d3 = _dereq_('@plotly/d3');
@@ -110847,7 +111147,7 @@ module.exports = templatedArray('shape', {
110847
111147
  editType: 'arraydraw'
110848
111148
  });
110849
111149
 
110850
- },{"../../constants/axis_placeable_objects":340,"../../lib/extend":361,"../../plot_api/plot_template":410,"../../traces/scatter/attributes":777,"../annotations/attributes":217,"../drawing/attributes":255}],315:[function(_dereq_,module,exports){
111150
+ },{"../../constants/axis_placeable_objects":340,"../../lib/extend":361,"../../plot_api/plot_template":410,"../../traces/scatter/attributes":778,"../annotations/attributes":217,"../drawing/attributes":255}],315:[function(_dereq_,module,exports){
110851
111151
  'use strict';
110852
111152
 
110853
111153
  var Lib = _dereq_('../../lib');
@@ -114163,8 +114463,10 @@ function draw(gd, titleClass, options) {
114163
114463
 
114164
114464
  var elShouldExist = txt || editable;
114165
114465
 
114466
+ var hColorbarMoveTitle;
114166
114467
  if(!group) {
114167
114468
  group = Lib.ensureSingle(fullLayout._infolayer, 'g', 'g-' + titleClass);
114469
+ hColorbarMoveTitle = fullLayout._hColorbarMoveTitle;
114168
114470
  }
114169
114471
 
114170
114472
  var el = group.selectAll('text')
@@ -114188,13 +114490,17 @@ function draw(gd, titleClass, options) {
114188
114490
  function drawTitle(titleEl) {
114189
114491
  var transformVal;
114190
114492
 
114493
+ if(!transform && hColorbarMoveTitle) {
114494
+ transform = {};
114495
+ }
114496
+
114191
114497
  if(transform) {
114192
114498
  transformVal = '';
114193
114499
  if(transform.rotate) {
114194
114500
  transformVal += 'rotate(' + [transform.rotate, attributes.x, attributes.y] + ')';
114195
114501
  }
114196
- if(transform.offset) {
114197
- transformVal += strTranslate(0, transform.offset);
114502
+ if(transform.offset || hColorbarMoveTitle) {
114503
+ transformVal += strTranslate(0, (transform.offset || 0) - (hColorbarMoveTitle || 0));
114198
114504
  }
114199
114505
  } else {
114200
114506
  transformVal = null;
@@ -116031,7 +116337,7 @@ exports.Fx = {
116031
116337
  exports.Snapshot = _dereq_('./snapshot');
116032
116338
  exports.PlotSchema = _dereq_('./plot_api/plot_schema');
116033
116339
 
116034
- },{"../build/plotcss":1,"./components/annotations":225,"./components/annotations3d":230,"./components/colorbar":240,"./components/colorscale":246,"./components/errorbars":262,"./components/fx":274,"./components/grid":278,"./components/images":283,"./components/legend":291,"./components/modebar":297,"./components/rangeselector":305,"./components/rangeslider":312,"./components/shapes":326,"./components/sliders":331,"./components/updatemenus":337,"./fonts/ploticon":350,"./locale-en":401,"./locale-en-us":400,"./plot_api":405,"./plot_api/plot_schema":409,"./plots/plots":486,"./registry":501,"./snapshot":506,"./traces/scatter":789,"./version":932,"native-promise-only":144}],350:[function(_dereq_,module,exports){
116340
+ },{"../build/plotcss":1,"./components/annotations":225,"./components/annotations3d":230,"./components/colorbar":240,"./components/colorscale":246,"./components/errorbars":262,"./components/fx":274,"./components/grid":278,"./components/images":283,"./components/legend":291,"./components/modebar":297,"./components/rangeselector":305,"./components/rangeslider":312,"./components/shapes":326,"./components/sliders":331,"./components/updatemenus":337,"./fonts/ploticon":350,"./locale-en":401,"./locale-en-us":400,"./plot_api":405,"./plot_api/plot_schema":409,"./plots/plots":486,"./registry":501,"./snapshot":506,"./traces/scatter":790,"./version":933,"native-promise-only":144}],350:[function(_dereq_,module,exports){
116035
116341
  'use strict';
116036
116342
 
116037
116343
  module.exports = {
@@ -126391,7 +126697,7 @@ function cleanDeprecatedAttributeKeys(aobj) {
126391
126697
  if((key === 'title' || oldAxisTitleRegex.test(key) || colorbarRegex.test(key)) &&
126392
126698
  (typeof value === 'string' || typeof value === 'number')) {
126393
126699
  replace(key, key.replace('title', 'title.text'));
126394
- } else if(key.indexOf('titlefont') > -1) {
126700
+ } else if(key.indexOf('titlefont') > -1 && key.indexOf('grouptitlefont') === -1) {
126395
126701
  replace(key, key.replace('titlefont', 'title.font'));
126396
126702
  } else if(key.indexOf('titleposition') > -1) {
126397
126703
  replace(key, key.replace('titleposition', 'title.position'));
@@ -131116,7 +131422,7 @@ function toImage(gd, opts) {
131116
131422
 
131117
131423
  module.exports = toImage;
131118
131424
 
131119
- },{"../lib":371,"../plots/plots":486,"../snapshot/helpers":505,"../snapshot/svgtoimg":507,"../snapshot/tosvg":509,"../version":932,"./plot_api":407,"fast-isnumeric":99}],414:[function(_dereq_,module,exports){
131425
+ },{"../lib":371,"../plots/plots":486,"../snapshot/helpers":505,"../snapshot/svgtoimg":507,"../snapshot/tosvg":509,"../version":933,"./plot_api":407,"fast-isnumeric":99}],414:[function(_dereq_,module,exports){
131120
131426
  'use strict';
131121
131427
 
131122
131428
  var Lib = _dereq_('../lib');
@@ -144259,6 +144565,9 @@ module.exports = function(opts) {
144259
144565
  // TODO - that's uber hacky... better solution?
144260
144566
  };
144261
144567
 
144568
+ if(opts.autoSize) attrs.size.dflt = 'auto';
144569
+ if(opts.autoColor) attrs.color.dflt = 'auto';
144570
+
144262
144571
  if(opts.arrayOk) {
144263
144572
  attrs.family.arrayOk = true;
144264
144573
  attrs.size.arrayOk = true;
@@ -147858,7 +148167,7 @@ proto.hoverFormatter = function(axisName, val) {
147858
148167
  return Axes.tickText(axis, axis.c2l(val), 'hover').text;
147859
148168
  };
147860
148169
 
147861
- },{"../../../stackgl_modules":933,"../../components/dragelement/helpers":252,"../../components/fx":274,"../../lib/show_no_webgl_msg":392,"../../plots/cartesian/axes":421,"../../registry":501,"../cartesian/autorange":420,"../cartesian/constants":428,"../cartesian/constraints":429,"./camera":461,"./convert":462,"webgl-context":199}],465:[function(_dereq_,module,exports){
148170
+ },{"../../../stackgl_modules":934,"../../components/dragelement/helpers":252,"../../components/fx":274,"../../lib/show_no_webgl_msg":392,"../../plots/cartesian/axes":421,"../../registry":501,"../cartesian/autorange":420,"../cartesian/constants":428,"../cartesian/constraints":429,"./camera":461,"./convert":462,"webgl-context":199}],465:[function(_dereq_,module,exports){
147862
148171
  'use strict';
147863
148172
 
147864
148173
  var overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;
@@ -149905,7 +150214,7 @@ proto.make4thDimension = function() {
149905
150214
 
149906
150215
  module.exports = Scene;
149907
150216
 
149908
- },{"../../../stackgl_modules":933,"../../components/fx":274,"../../lib":371,"../../lib/show_no_webgl_msg":392,"../../lib/str2rgbarray":395,"../../plots/cartesian/axes":421,"../../registry":501,"./layout/convert":469,"./layout/spikes":472,"./layout/tick_marks":473,"./project":474,"has-passive-events":132,"webgl-context":199}],476:[function(_dereq_,module,exports){
150217
+ },{"../../../stackgl_modules":934,"../../components/fx":274,"../../lib":371,"../../lib/show_no_webgl_msg":392,"../../lib/str2rgbarray":395,"../../plots/cartesian/axes":421,"../../registry":501,"./layout/convert":469,"./layout/spikes":472,"./layout/tick_marks":473,"./project":474,"has-passive-events":132,"webgl-context":199}],476:[function(_dereq_,module,exports){
149909
150218
  'use strict';
149910
150219
 
149911
150220
  module.exports = function zip3(x, y, z, len) {
@@ -150096,6 +150405,7 @@ module.exports = {
150096
150405
  valType: 'boolean',
150097
150406
  editType: 'legend',
150098
150407
  },
150408
+
150099
150409
  colorway: {
150100
150410
  valType: 'colorlist',
150101
150411
  dflt: colorAttrs.defaults,
@@ -151209,7 +151519,7 @@ attrs.uirevision = {
151209
151519
  editType: 'none',
151210
151520
  };
151211
151521
 
151212
- },{"../../components/color":234,"../../lib":371,"../../plot_api/edit_types":403,"../../plot_api/plot_template":410,"../../traces/scatter/attributes":777,"../domain":451,"../font_attributes":452,"./constants":478}],483:[function(_dereq_,module,exports){
151522
+ },{"../../components/color":234,"../../lib":371,"../../plot_api/edit_types":403,"../../plot_api/plot_template":410,"../../traces/scatter/attributes":778,"../domain":451,"../font_attributes":452,"./constants":478}],483:[function(_dereq_,module,exports){
151213
151523
  'use strict';
151214
151524
 
151215
151525
  var Lib = _dereq_('../../lib');
@@ -153478,13 +153788,7 @@ plots.supplyTraceDefaults = function(traceIn, traceOut, colorIndex, layout, trac
153478
153788
  );
153479
153789
 
153480
153790
  coerce('legendgroup');
153481
- var titleText = coerce('legendgrouptitle.text');
153482
- if(titleText) {
153483
- Lib.coerceFont(coerce, 'legendgrouptitle.font', Lib.extendFlat({}, layout.font, {
153484
- size: Math.round(layout.font.size * 1.1) // default to larger font size
153485
- }));
153486
- }
153487
-
153791
+ coerce('legendgrouptitle.text');
153488
153792
  coerce('legendrank');
153489
153793
 
153490
153794
  traceOut._dfltShowLegend = true;
@@ -153632,16 +153936,14 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
153632
153936
 
153633
153937
  coerce('autotypenumbers');
153634
153938
 
153635
- var globalFont = Lib.coerceFont(coerce, 'font');
153636
-
153637
- coerce('title.text', layoutOut._dfltTitle.plot);
153939
+ var font = Lib.coerceFont(coerce, 'font');
153940
+ var fontSize = font.size;
153638
153941
 
153639
- Lib.coerceFont(coerce, 'title.font', {
153640
- family: globalFont.family,
153641
- size: Math.round(globalFont.size * 1.4),
153642
- color: globalFont.color
153643
- });
153942
+ Lib.coerceFont(coerce, 'title.font', Lib.extendFlat({}, font, {
153943
+ size: Math.round(fontSize * 1.4)
153944
+ }));
153644
153945
 
153946
+ coerce('title.text', layoutOut._dfltTitle.plot);
153645
153947
  coerce('title.xref');
153646
153948
  coerce('title.yref');
153647
153949
  coerce('title.x');
@@ -160947,7 +161249,7 @@ module.exports = {
160947
161249
  }
160948
161250
  };
160949
161251
 
160950
- },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../../plots/template_attributes":496,"../scatter/attributes":777,"./constants":513}],512:[function(_dereq_,module,exports){
161252
+ },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../../plots/template_attributes":496,"../scatter/attributes":778,"./constants":513}],512:[function(_dereq_,module,exports){
160951
161253
  'use strict';
160952
161254
 
160953
161255
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -161022,7 +161324,7 @@ module.exports = function calc(gd, trace) {
161022
161324
  return cd;
161023
161325
  };
161024
161326
 
161025
- },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../scatter/calc_selection":779,"./arrays_to_calcdata":510}],513:[function(_dereq_,module,exports){
161327
+ },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../scatter/calc_selection":780,"./arrays_to_calcdata":510}],513:[function(_dereq_,module,exports){
161026
161328
  'use strict';
161027
161329
 
161028
161330
  module.exports = {
@@ -161989,7 +162291,7 @@ module.exports = {
161989
162291
  handleText: handleText
161990
162292
  };
161991
162293
 
161992
- },{"../../components/color":234,"../../lib":371,"../../plots/cartesian/constraints":429,"../../registry":501,"../scatter/period_defaults":797,"../scatter/xy_defaults":804,"./attributes":511,"./style_defaults":526}],516:[function(_dereq_,module,exports){
162294
+ },{"../../components/color":234,"../../lib":371,"../../plots/cartesian/constraints":429,"../../registry":501,"../scatter/period_defaults":798,"../scatter/xy_defaults":805,"./attributes":511,"./style_defaults":526}],516:[function(_dereq_,module,exports){
161993
162295
  'use strict';
161994
162296
 
161995
162297
  module.exports = function eventData(out, pt, trace) {
@@ -162334,7 +162636,7 @@ module.exports = {
162334
162636
  }
162335
162637
  };
162336
162638
 
162337
- },{"../../plots/cartesian":435,"../scatter/marker_colorbar":795,"./arrays_to_calcdata":510,"./attributes":511,"./calc":512,"./cross_trace_calc":514,"./defaults":515,"./event_data":516,"./hover":518,"./layout_attributes":520,"./layout_defaults":521,"./plot":522,"./select":523,"./style":525}],520:[function(_dereq_,module,exports){
162639
+ },{"../../plots/cartesian":435,"../scatter/marker_colorbar":796,"./arrays_to_calcdata":510,"./attributes":511,"./calc":512,"./cross_trace_calc":514,"./defaults":515,"./event_data":516,"./hover":518,"./layout_attributes":520,"./layout_defaults":521,"./plot":522,"./select":523,"./style":525}],520:[function(_dereq_,module,exports){
162338
162640
  'use strict';
162339
162641
 
162340
162642
 
@@ -163050,12 +163352,14 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
163050
163352
  var trace = cd[0].trace;
163051
163353
  var texttemplate = Lib.castOption(trace, index, 'texttemplate');
163052
163354
  if(!texttemplate) return '';
163355
+ var isHistogram = (trace.type === 'histogram');
163053
163356
  var isWaterfall = (trace.type === 'waterfall');
163054
163357
  var isFunnel = (trace.type === 'funnel');
163358
+ var isHorizontal = trace.orientation === 'h';
163055
163359
 
163056
163360
  var pLetter, pAxis;
163057
163361
  var vLetter, vAxis;
163058
- if(trace.orientation === 'h') {
163362
+ if(isHorizontal) {
163059
163363
  pLetter = 'y';
163060
163364
  pAxis = ya;
163061
163365
  vLetter = 'x';
@@ -163090,6 +163394,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
163090
163394
  var pt = {};
163091
163395
  appendArrayPointValue(pt, trace, cdi.i);
163092
163396
 
163397
+ if(isHistogram || pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
163398
+ if(isHistogram || pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
163399
+ if(isHistogram || pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
163400
+ if(isHistogram || pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
163401
+
163093
163402
  if(isWaterfall) {
163094
163403
  obj.delta = +cdi.rawS || cdi.s;
163095
163404
  obj.deltaLabel = formatNumber(obj.delta);
@@ -163700,7 +164009,7 @@ module.exports = {
163700
164009
  // error_y
163701
164010
  };
163702
164011
 
163703
- },{"../../lib/extend":361,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatterpolar/attributes":838}],529:[function(_dereq_,module,exports){
164012
+ },{"../../lib/extend":361,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatterpolar/attributes":839}],529:[function(_dereq_,module,exports){
163704
164013
  'use strict';
163705
164014
 
163706
164015
  var hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;
@@ -163804,7 +164113,7 @@ module.exports = {
163804
164113
  crossTraceCalc: crossTraceCalc
163805
164114
  };
163806
164115
 
163807
- },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"../../lib":371,"../../registry":501,"../bar/arrays_to_calcdata":510,"../bar/cross_trace_calc":514,"../scatter/calc_selection":779}],530:[function(_dereq_,module,exports){
164116
+ },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"../../lib":371,"../../registry":501,"../bar/arrays_to_calcdata":510,"../bar/cross_trace_calc":514,"../scatter/calc_selection":780}],530:[function(_dereq_,module,exports){
163808
164117
  'use strict';
163809
164118
 
163810
164119
  var Lib = _dereq_('../../lib');
@@ -163855,7 +164164,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
163855
164164
  Lib.coerceSelectionMarkerOpacity(traceOut, coerce);
163856
164165
  };
163857
164166
 
163858
- },{"../../lib":371,"../bar/style_defaults":526,"../scatterpolar/defaults":840,"./attributes":528}],531:[function(_dereq_,module,exports){
164167
+ },{"../../lib":371,"../bar/style_defaults":526,"../scatterpolar/defaults":841,"./attributes":528}],531:[function(_dereq_,module,exports){
163859
164168
  'use strict';
163860
164169
 
163861
164170
  var Fx = _dereq_('../../components/fx');
@@ -163922,7 +164231,7 @@ module.exports = function hoverPoints(pointData, xval, yval) {
163922
164231
  return [pointData];
163923
164232
  };
163924
164233
 
163925
- },{"../../components/fx":274,"../../lib":371,"../../plots/polar/helpers":488,"../bar/hover":518,"../scatterpolar/hover":842}],532:[function(_dereq_,module,exports){
164234
+ },{"../../components/fx":274,"../../lib":371,"../../plots/polar/helpers":488,"../bar/hover":518,"../scatterpolar/hover":843}],532:[function(_dereq_,module,exports){
163926
164235
  'use strict';
163927
164236
 
163928
164237
  module.exports = {
@@ -163953,7 +164262,7 @@ module.exports = {
163953
164262
  }
163954
164263
  };
163955
164264
 
163956
- },{"../../plots/polar":489,"../bar/select":523,"../bar/style":525,"../scatter/marker_colorbar":795,"../scatterpolar/format_labels":841,"./attributes":528,"./calc":529,"./defaults":530,"./hover":531,"./layout_attributes":533,"./layout_defaults":534,"./plot":535}],533:[function(_dereq_,module,exports){
164265
+ },{"../../plots/polar":489,"../bar/select":523,"../bar/style":525,"../scatter/marker_colorbar":796,"../scatterpolar/format_labels":842,"./attributes":528,"./calc":529,"./defaults":530,"./hover":531,"./layout_attributes":533,"./layout_defaults":534,"./plot":535}],533:[function(_dereq_,module,exports){
163957
164266
  'use strict';
163958
164267
 
163959
164268
  module.exports = {
@@ -164334,7 +164643,7 @@ module.exports = {
164334
164643
  }
164335
164644
  };
164336
164645
 
164337
- },{"../../components/color/attributes":233,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatter/attributes":777}],537:[function(_dereq_,module,exports){
164646
+ },{"../../components/color/attributes":233,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatter/attributes":778}],537:[function(_dereq_,module,exports){
164338
164647
  'use strict';
164339
164648
 
164340
164649
  var isNumeric = _dereq_('fast-isnumeric');
@@ -165315,7 +165624,7 @@ module.exports = {
165315
165624
  handlePointsDefaults: handlePointsDefaults
165316
165625
  };
165317
165626
 
165318
- },{"../../components/color":234,"../../lib":371,"../../plots/cartesian/axis_autotype":422,"../../registry":501,"../bar/defaults":515,"../scatter/period_defaults":797,"./attributes":536}],540:[function(_dereq_,module,exports){
165627
+ },{"../../components/color":234,"../../lib":371,"../../plots/cartesian/axis_autotype":422,"../../registry":501,"../bar/defaults":515,"../scatter/period_defaults":798,"./attributes":536}],540:[function(_dereq_,module,exports){
165319
165628
  'use strict';
165320
165629
 
165321
165630
  module.exports = function eventData(out, pt) {
@@ -166203,7 +166512,7 @@ module.exports = {
166203
166512
  hoverlabel: OHLCattrs.hoverlabel,
166204
166513
  };
166205
166514
 
166206
- },{"../../lib":371,"../../plots/cartesian/axis_format_attributes":424,"../box/attributes":536,"../ohlc/attributes":734}],549:[function(_dereq_,module,exports){
166515
+ },{"../../lib":371,"../../plots/cartesian/axis_format_attributes":424,"../box/attributes":536,"../ohlc/attributes":735}],549:[function(_dereq_,module,exports){
166207
166516
  'use strict';
166208
166517
 
166209
166518
  var Lib = _dereq_('../../lib');
@@ -166247,7 +166556,7 @@ function ptFunc(o, h, l, c) {
166247
166556
  };
166248
166557
  }
166249
166558
 
166250
- },{"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../ohlc/calc":735}],550:[function(_dereq_,module,exports){
166559
+ },{"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../ohlc/calc":736}],550:[function(_dereq_,module,exports){
166251
166560
  'use strict';
166252
166561
 
166253
166562
  var Lib = _dereq_('../../lib');
@@ -166289,7 +166598,7 @@ function handleDirection(traceIn, traceOut, coerce, direction) {
166289
166598
  coerce(direction + '.fillcolor', Color.addOpacity(lineColor, 0.5));
166290
166599
  }
166291
166600
 
166292
- },{"../../components/color":234,"../../lib":371,"../ohlc/ohlc_defaults":739,"../scatter/period_defaults":797,"./attributes":548}],551:[function(_dereq_,module,exports){
166601
+ },{"../../components/color":234,"../../lib":371,"../ohlc/ohlc_defaults":740,"../scatter/period_defaults":798,"./attributes":548}],551:[function(_dereq_,module,exports){
166293
166602
  'use strict';
166294
166603
 
166295
166604
  module.exports = {
@@ -166313,7 +166622,7 @@ module.exports = {
166313
166622
  selectPoints: _dereq_('../ohlc/select')
166314
166623
  };
166315
166624
 
166316
- },{"../../plots/cartesian":435,"../box/cross_trace_calc":538,"../box/layout_attributes":543,"../box/layout_defaults":544,"../box/plot":545,"../box/style":547,"../ohlc/hover":737,"../ohlc/select":741,"./attributes":548,"./calc":549,"./defaults":550}],552:[function(_dereq_,module,exports){
166625
+ },{"../../plots/cartesian":435,"../box/cross_trace_calc":538,"../box/layout_attributes":543,"../box/layout_defaults":544,"../box/plot":545,"../box/style":547,"../ohlc/hover":738,"../ohlc/select":742,"./attributes":548,"./calc":549,"./defaults":550}],552:[function(_dereq_,module,exports){
166317
166626
  'use strict';
166318
166627
 
166319
166628
  var handleAxisDefaults = _dereq_('./axis_defaults');
@@ -169513,7 +169822,7 @@ module.exports = extendFlat({
169513
169822
  })
169514
169823
  );
169515
169824
 
169516
- },{"../../components/color/attributes":233,"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scattergeo/attributes":819}],580:[function(_dereq_,module,exports){
169825
+ },{"../../components/color/attributes":233,"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scattergeo/attributes":820}],580:[function(_dereq_,module,exports){
169517
169826
  'use strict';
169518
169827
 
169519
169828
  var isNumeric = _dereq_('fast-isnumeric');
@@ -169566,7 +169875,7 @@ module.exports = function calc(gd, trace) {
169566
169875
  return calcTrace;
169567
169876
  };
169568
169877
 
169569
- },{"../../components/colorscale/calc":242,"../../constants/numerical":347,"../scatter/arrays_to_calcdata":776,"../scatter/calc_selection":779,"fast-isnumeric":99}],581:[function(_dereq_,module,exports){
169878
+ },{"../../components/colorscale/calc":242,"../../constants/numerical":347,"../scatter/arrays_to_calcdata":777,"../scatter/calc_selection":780,"fast-isnumeric":99}],581:[function(_dereq_,module,exports){
169570
169879
  'use strict';
169571
169880
 
169572
169881
  var Lib = _dereq_('../../lib');
@@ -170506,7 +170815,7 @@ attrs.transforms = undefined;
170506
170815
 
170507
170816
  module.exports = attrs;
170508
170817
 
170509
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../mesh3d/attributes":729}],594:[function(_dereq_,module,exports){
170818
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../mesh3d/attributes":730}],594:[function(_dereq_,module,exports){
170510
170819
  'use strict';
170511
170820
 
170512
170821
  var colorscaleCalc = _dereq_('../../components/colorscale/calc');
@@ -170681,7 +170990,7 @@ function createConeTrace(scene, data) {
170681
170990
 
170682
170991
  module.exports = createConeTrace;
170683
170992
 
170684
- },{"../../../stackgl_modules":933,"../../components/colorscale":246,"../../lib":371,"../../lib/gl_format_color":367,"../../plots/gl3d/zip3":476}],596:[function(_dereq_,module,exports){
170993
+ },{"../../../stackgl_modules":934,"../../components/colorscale":246,"../../lib":371,"../../lib/gl_format_color":367,"../../plots/gl3d/zip3":476}],596:[function(_dereq_,module,exports){
170685
170994
  'use strict';
170686
170995
 
170687
170996
  var Lib = _dereq_('../../lib');
@@ -170811,6 +171120,10 @@ module.exports = extendFlat({
170811
171120
  yhoverformat: axisHoverFormat('y'),
170812
171121
  zhoverformat: axisHoverFormat('z', 1),
170813
171122
  hovertemplate: heatmapAttrs.hovertemplate,
171123
+ texttemplate: extendFlat({}, heatmapAttrs.texttemplate, {
171124
+ }),
171125
+ textfont: extendFlat({}, heatmapAttrs.textfont, {
171126
+ }),
170814
171127
  hoverongaps: heatmapAttrs.hoverongaps,
170815
171128
  connectgaps: extendFlat({}, heatmapAttrs.connectgaps, {
170816
171129
  }),
@@ -170926,7 +171239,7 @@ module.exports = extendFlat({
170926
171239
  })
170927
171240
  );
170928
171241
 
170929
- },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../constants/filter_ops":343,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../heatmap/attributes":655,"../scatter/attributes":777}],599:[function(_dereq_,module,exports){
171242
+ },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../constants/filter_ops":343,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../heatmap/attributes":655,"../scatter/attributes":778}],599:[function(_dereq_,module,exports){
170930
171243
  'use strict';
170931
171244
 
170932
171245
  var Colorscale = _dereq_('../../components/colorscale');
@@ -171445,6 +171758,7 @@ var handlePeriodDefaults = _dereq_('../scatter/period_defaults');
171445
171758
  var handleConstraintDefaults = _dereq_('./constraint_defaults');
171446
171759
  var handleContoursDefaults = _dereq_('./contours_defaults');
171447
171760
  var handleStyleDefaults = _dereq_('./style_defaults');
171761
+ var handleHeatmapLabelDefaults = _dereq_('../heatmap/label_defaults');
171448
171762
  var attributes = _dereq_('./attributes');
171449
171763
 
171450
171764
 
@@ -171469,8 +171783,8 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
171469
171783
 
171470
171784
  coerce('text');
171471
171785
  coerce('hovertext');
171472
- coerce('hovertemplate');
171473
171786
  coerce('hoverongaps');
171787
+ coerce('hovertemplate');
171474
171788
 
171475
171789
  var isConstraint = (coerce('contours.type') === 'constraint');
171476
171790
  coerce('connectgaps', Lib.isArray1D(traceOut.z));
@@ -171481,9 +171795,16 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
171481
171795
  handleContoursDefaults(traceIn, traceOut, coerce, coerce2);
171482
171796
  handleStyleDefaults(traceIn, traceOut, coerce, layout);
171483
171797
  }
171798
+
171799
+ if(
171800
+ traceOut.contours &&
171801
+ traceOut.contours.coloring === 'heatmap'
171802
+ ) {
171803
+ handleHeatmapLabelDefaults(coerce, layout);
171804
+ }
171484
171805
  };
171485
171806
 
171486
- },{"../../lib":371,"../heatmap/xyz_defaults":669,"../scatter/period_defaults":797,"./attributes":598,"./constraint_defaults":603,"./contours_defaults":605,"./style_defaults":619}],608:[function(_dereq_,module,exports){
171807
+ },{"../../lib":371,"../heatmap/label_defaults":665,"../heatmap/xyz_defaults":670,"../scatter/period_defaults":798,"./attributes":598,"./constraint_defaults":603,"./contours_defaults":605,"./style_defaults":619}],608:[function(_dereq_,module,exports){
171487
171808
  'use strict';
171488
171809
 
171489
171810
  var Lib = _dereq_('../../lib');
@@ -172757,7 +173078,7 @@ function makeClipMask(cd0) {
172757
173078
  return z;
172758
173079
  }
172759
173080
 
172760
- },{"../../components/colorscale":246,"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../../plots/cartesian/axes":421,"../../plots/cartesian/set_convert":443,"../heatmap/plot":666,"./close_boundaries":600,"./constants":602,"./convert_to_constraints":606,"./empty_pathinfo":608,"./find_all_paths":610,"./make_crossings":615,"@plotly/d3":53}],617:[function(_dereq_,module,exports){
173081
+ },{"../../components/colorscale":246,"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../../plots/cartesian/axes":421,"../../plots/cartesian/set_convert":443,"../heatmap/plot":667,"./close_boundaries":600,"./constants":602,"./convert_to_constraints":606,"./empty_pathinfo":608,"./find_all_paths":610,"./make_crossings":615,"@plotly/d3":53}],617:[function(_dereq_,module,exports){
172761
173082
  'use strict';
172762
173083
 
172763
173084
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -172925,7 +173246,7 @@ module.exports = function style(gd) {
172925
173246
  heatmapStyle(gd);
172926
173247
  };
172927
173248
 
172928
- },{"../../components/drawing":256,"../heatmap/style":667,"./make_color_map":614,"@plotly/d3":53}],619:[function(_dereq_,module,exports){
173249
+ },{"../../components/drawing":256,"../heatmap/style":668,"./make_color_map":614,"@plotly/d3":53}],619:[function(_dereq_,module,exports){
172929
173250
  'use strict';
172930
173251
 
172931
173252
  var colorscaleDefaults = _dereq_('../../components/colorscale/defaults');
@@ -173138,7 +173459,7 @@ function heatmappishCalc(gd, trace) {
173138
173459
  return [cd0];
173139
173460
  }
173140
173461
 
173141
- },{"../../components/colorscale/calc":242,"../../lib":371,"../carpet/lookup_carpetid":571,"../contour/set_contours":617,"../heatmap/clean_2d_array":657,"../heatmap/convert_column_xyz":659,"../heatmap/find_empties":661,"../heatmap/interp2d":664,"../heatmap/make_bound_array":665,"./defaults":622}],622:[function(_dereq_,module,exports){
173462
+ },{"../../components/colorscale/calc":242,"../../lib":371,"../carpet/lookup_carpetid":571,"../contour/set_contours":617,"../heatmap/clean_2d_array":657,"../heatmap/convert_column_xyz":659,"../heatmap/find_empties":661,"../heatmap/interp2d":664,"../heatmap/make_bound_array":666,"./defaults":622}],622:[function(_dereq_,module,exports){
173142
173463
  'use strict';
173143
173464
 
173144
173465
  var Lib = _dereq_('../../lib');
@@ -173198,7 +173519,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
173198
173519
  }
173199
173520
  };
173200
173521
 
173201
- },{"../../lib":371,"../contour/constraint_defaults":603,"../contour/contours_defaults":605,"../contour/style_defaults":619,"../heatmap/xyz_defaults":669,"./attributes":620}],623:[function(_dereq_,module,exports){
173522
+ },{"../../lib":371,"../contour/constraint_defaults":603,"../contour/contours_defaults":605,"../contour/style_defaults":619,"../heatmap/xyz_defaults":670,"./attributes":620}],623:[function(_dereq_,module,exports){
173202
173523
  'use strict';
173203
173524
 
173204
173525
  module.exports = {
@@ -173759,7 +174080,7 @@ module.exports = extendFlat({
173759
174080
  })
173760
174081
  );
173761
174082
 
173762
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scattermapbox/attributes":829}],626:[function(_dereq_,module,exports){
174083
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scattermapbox/attributes":830}],626:[function(_dereq_,module,exports){
173763
174084
  'use strict';
173764
174085
 
173765
174086
  var isNumeric = _dereq_('fast-isnumeric');
@@ -173992,7 +174313,7 @@ module.exports = function hoverPoints(pointData, xval, yval) {
173992
174313
  return [newPointData];
173993
174314
  };
173994
174315
 
173995
- },{"../../plots/cartesian/axes":421,"../scattermapbox/hover":834}],631:[function(_dereq_,module,exports){
174316
+ },{"../../plots/cartesian/axes":421,"../scattermapbox/hover":835}],631:[function(_dereq_,module,exports){
173996
174317
  'use strict';
173997
174318
 
173998
174319
  module.exports = {
@@ -174030,7 +174351,7 @@ module.exports = {
174030
174351
  }
174031
174352
  };
174032
174353
 
174033
- },{"../../plots/mapbox":480,"../heatmap/colorbar":658,"../scattermapbox/format_labels":833,"./attributes":625,"./calc":626,"./defaults":628,"./event_data":629,"./hover":630,"./plot":632}],632:[function(_dereq_,module,exports){
174354
+ },{"../../plots/mapbox":480,"../heatmap/colorbar":658,"../scattermapbox/format_labels":834,"./attributes":625,"./calc":626,"./defaults":628,"./event_data":629,"./hover":630,"./plot":632}],632:[function(_dereq_,module,exports){
174034
174355
  'use strict';
174035
174356
 
174036
174357
  var convert = _dereq_('./convert');
@@ -174262,7 +174583,7 @@ function funnelMarker() {
174262
174583
  return marker;
174263
174584
  }
174264
174585
 
174265
- },{"../../components/color":234,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatter/attributes":777,"./constants":636}],635:[function(_dereq_,module,exports){
174586
+ },{"../../components/color":234,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatter/attributes":778,"./constants":636}],635:[function(_dereq_,module,exports){
174266
174587
  'use strict';
174267
174588
 
174268
174589
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -174362,7 +174683,7 @@ function fixNum(a) {
174362
174683
  return (a === BADNUM) ? 0 : a;
174363
174684
  }
174364
174685
 
174365
- },{"../../constants/numerical":347,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../scatter/calc_selection":779,"./arrays_to_calcdata":633}],636:[function(_dereq_,module,exports){
174686
+ },{"../../constants/numerical":347,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../scatter/calc_selection":780,"./arrays_to_calcdata":633}],636:[function(_dereq_,module,exports){
174366
174687
  'use strict';
174367
174688
 
174368
174689
  module.exports = {
@@ -174530,7 +174851,7 @@ module.exports = {
174530
174851
  crossTraceDefaults: crossTraceDefaults
174531
174852
  };
174532
174853
 
174533
- },{"../../components/color":234,"../../lib":371,"../bar/defaults":515,"../scatter/period_defaults":797,"../scatter/xy_defaults":804,"./attributes":634}],639:[function(_dereq_,module,exports){
174854
+ },{"../../components/color":234,"../../lib":371,"../bar/defaults":515,"../scatter/period_defaults":798,"../scatter/xy_defaults":805,"./attributes":634}],639:[function(_dereq_,module,exports){
174534
174855
  'use strict';
174535
174856
 
174536
174857
  module.exports = function eventData(out, pt /* , trace, cd, pointNumber */) {
@@ -175000,7 +175321,7 @@ module.exports = {
175000
175321
  }
175001
175322
  };
175002
175323
 
175003
- },{"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":751}],647:[function(_dereq_,module,exports){
175324
+ },{"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":752}],647:[function(_dereq_,module,exports){
175004
175325
  'use strict';
175005
175326
 
175006
175327
  var plots = _dereq_('../../plots/plots');
@@ -175033,7 +175354,7 @@ module.exports = {
175033
175354
  crossTraceCalc: crossTraceCalc
175034
175355
  };
175035
175356
 
175036
- },{"../pie/calc":753}],649:[function(_dereq_,module,exports){
175357
+ },{"../pie/calc":754}],649:[function(_dereq_,module,exports){
175037
175358
  'use strict';
175038
175359
 
175039
175360
  var Lib = _dereq_('../../lib');
@@ -175107,7 +175428,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
175107
175428
  coerce('baseratio');
175108
175429
  };
175109
175430
 
175110
- },{"../../lib":371,"../../plots/domain":451,"../bar/defaults":515,"../pie/defaults":754,"./attributes":646}],650:[function(_dereq_,module,exports){
175431
+ },{"../../lib":371,"../../plots/domain":451,"../bar/defaults":515,"../pie/defaults":755,"./attributes":646}],650:[function(_dereq_,module,exports){
175111
175432
  'use strict';
175112
175433
 
175113
175434
  module.exports = {
@@ -175132,7 +175453,7 @@ module.exports = {
175132
175453
  }
175133
175454
  };
175134
175455
 
175135
- },{"../pie/style_one":762,"./attributes":646,"./base_plot":647,"./calc":648,"./defaults":649,"./layout_attributes":651,"./layout_defaults":652,"./plot":653,"./style":654}],651:[function(_dereq_,module,exports){
175456
+ },{"../pie/style_one":763,"./attributes":646,"./base_plot":647,"./calc":648,"./defaults":649,"./layout_attributes":651,"./layout_defaults":652,"./plot":653,"./style":654}],651:[function(_dereq_,module,exports){
175136
175457
  'use strict';
175137
175458
 
175138
175459
  var hiddenlabels = _dereq_('../pie/layout_attributes').hiddenlabels;
@@ -175151,7 +175472,7 @@ module.exports = {
175151
175472
  }
175152
175473
  };
175153
175474
 
175154
- },{"../pie/layout_attributes":758}],652:[function(_dereq_,module,exports){
175475
+ },{"../pie/layout_attributes":759}],652:[function(_dereq_,module,exports){
175155
175476
  'use strict';
175156
175477
 
175157
175478
  var Lib = _dereq_('../../lib');
@@ -175458,7 +175779,7 @@ function setCoords(cd) {
175458
175779
  }
175459
175780
  }
175460
175781
 
175461
- },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../bar/plot":522,"../bar/uniform_text":527,"../pie/helpers":756,"../pie/plot":760,"@plotly/d3":53}],654:[function(_dereq_,module,exports){
175782
+ },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../bar/plot":522,"../bar/uniform_text":527,"../pie/helpers":757,"../pie/plot":761,"@plotly/d3":53}],654:[function(_dereq_,module,exports){
175462
175783
  'use strict';
175463
175784
 
175464
175785
  var d3 = _dereq_('@plotly/d3');
@@ -175483,13 +175804,15 @@ module.exports = function style(gd) {
175483
175804
  });
175484
175805
  };
175485
175806
 
175486
- },{"../bar/uniform_text":527,"../pie/style_one":762,"@plotly/d3":53}],655:[function(_dereq_,module,exports){
175807
+ },{"../bar/uniform_text":527,"../pie/style_one":763,"@plotly/d3":53}],655:[function(_dereq_,module,exports){
175487
175808
  'use strict';
175488
175809
 
175489
175810
  var scatterAttrs = _dereq_('../scatter/attributes');
175490
175811
  var baseAttrs = _dereq_('../../plots/attributes');
175812
+ var fontAttrs = _dereq_('../../plots/font_attributes');
175491
175813
  var axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
175492
175814
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
175815
+ var texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;
175493
175816
  var colorScaleAttrs = _dereq_('../../components/colorscale/attributes');
175494
175817
 
175495
175818
  var extendFlat = _dereq_('../../lib/extend').extendFlat;
@@ -175568,6 +175891,19 @@ module.exports = extendFlat({
175568
175891
  zhoverformat: axisHoverFormat('z', 1),
175569
175892
 
175570
175893
  hovertemplate: hovertemplateAttrs(),
175894
+ texttemplate: texttemplateAttrs({
175895
+ arrayOk: false,
175896
+ editType: 'plot'
175897
+ }, {
175898
+ keys: ['x', 'y', 'z', 'text']
175899
+ }),
175900
+ textfont: fontAttrs({
175901
+ editType: 'plot',
175902
+ autoSize: true,
175903
+ autoColor: true,
175904
+ colorEditType: 'style',
175905
+ }),
175906
+
175571
175907
  showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})
175572
175908
  }, {
175573
175909
  transforms: undefined
@@ -175575,7 +175911,7 @@ module.exports = extendFlat({
175575
175911
  colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})
175576
175912
  );
175577
175913
 
175578
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../scatter/attributes":777}],656:[function(_dereq_,module,exports){
175914
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../../plots/template_attributes":496,"../scatter/attributes":778}],656:[function(_dereq_,module,exports){
175579
175915
  'use strict';
175580
175916
 
175581
175917
  var Registry = _dereq_('../../registry');
@@ -175776,7 +176112,7 @@ function dropZonBreaks(x, y, z) {
175776
176112
  return newZ;
175777
176113
  }
175778
176114
 
175779
- },{"../../components/colorscale/calc":242,"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../../registry":501,"../histogram2d/calc":688,"./clean_2d_array":657,"./convert_column_xyz":659,"./find_empties":661,"./interp2d":664,"./make_bound_array":665}],657:[function(_dereq_,module,exports){
176115
+ },{"../../components/colorscale/calc":242,"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../../registry":501,"../histogram2d/calc":689,"./clean_2d_array":657,"./convert_column_xyz":659,"./find_empties":661,"./interp2d":664,"./make_bound_array":666}],657:[function(_dereq_,module,exports){
175780
176116
  'use strict';
175781
176117
 
175782
176118
  var isNumeric = _dereq_('fast-isnumeric');
@@ -175940,6 +176276,7 @@ module.exports = function convertColumnData(trace, ax1, ax2, var1Name, var2Name,
175940
176276
  var Lib = _dereq_('../../lib');
175941
176277
 
175942
176278
  var handleXYZDefaults = _dereq_('./xyz_defaults');
176279
+ var handleHeatmapLabelDefaults = _dereq_('./label_defaults');
175943
176280
  var handlePeriodDefaults = _dereq_('../scatter/period_defaults');
175944
176281
  var handleStyleDefaults = _dereq_('./style_defaults');
175945
176282
  var colorscaleDefaults = _dereq_('../../components/colorscale/defaults');
@@ -175965,6 +176302,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
175965
176302
  coerce('hovertext');
175966
176303
  coerce('hovertemplate');
175967
176304
 
176305
+ handleHeatmapLabelDefaults(coerce, layout);
175968
176306
  handleStyleDefaults(traceIn, traceOut, coerce, layout);
175969
176307
 
175970
176308
  coerce('hoverongaps');
@@ -175973,7 +176311,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
175973
176311
  colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});
175974
176312
  };
175975
176313
 
175976
- },{"../../components/colorscale/defaults":244,"../../lib":371,"../scatter/period_defaults":797,"./attributes":655,"./style_defaults":668,"./xyz_defaults":669}],661:[function(_dereq_,module,exports){
176314
+ },{"../../components/colorscale/defaults":244,"../../lib":371,"../scatter/period_defaults":798,"./attributes":655,"./label_defaults":665,"./style_defaults":669,"./xyz_defaults":670}],661:[function(_dereq_,module,exports){
175977
176315
  'use strict';
175978
176316
 
175979
176317
  var maxRowLength = _dereq_('../../lib').maxRowLength;
@@ -176223,7 +176561,7 @@ module.exports = {
176223
176561
  }
176224
176562
  };
176225
176563
 
176226
- },{"../../plots/cartesian":435,"./attributes":655,"./calc":656,"./colorbar":658,"./defaults":660,"./hover":662,"./plot":666,"./style":667}],664:[function(_dereq_,module,exports){
176564
+ },{"../../plots/cartesian":435,"./attributes":655,"./calc":656,"./colorbar":658,"./defaults":660,"./hover":662,"./plot":667,"./style":668}],664:[function(_dereq_,module,exports){
176227
176565
  'use strict';
176228
176566
 
176229
176567
  var Lib = _dereq_('../../lib');
@@ -176351,6 +176689,21 @@ function iterateInterp2d(z, emptyPoints, overshoot) {
176351
176689
  },{"../../lib":371}],665:[function(_dereq_,module,exports){
176352
176690
  'use strict';
176353
176691
 
176692
+ var Lib = _dereq_('../../lib');
176693
+
176694
+ module.exports = function handleHeatmapLabelDefaults(coerce, layout) {
176695
+ coerce('texttemplate');
176696
+
176697
+ var fontDflt = Lib.extendFlat({}, layout.font, {
176698
+ color: 'auto',
176699
+ size: 'auto'
176700
+ });
176701
+ Lib.coerceFont(coerce, 'textfont', fontDflt);
176702
+ };
176703
+
176704
+ },{"../../lib":371}],666:[function(_dereq_,module,exports){
176705
+ 'use strict';
176706
+
176354
176707
  var Registry = _dereq_('../../registry');
176355
176708
  var isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;
176356
176709
 
@@ -176428,16 +176781,34 @@ module.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks,
176428
176781
  return arrayOut;
176429
176782
  };
176430
176783
 
176431
- },{"../../lib":371,"../../registry":501}],666:[function(_dereq_,module,exports){
176784
+ },{"../../lib":371,"../../registry":501}],667:[function(_dereq_,module,exports){
176432
176785
  'use strict';
176433
176786
 
176434
176787
  var d3 = _dereq_('@plotly/d3');
176435
176788
  var tinycolor = _dereq_('tinycolor2');
176436
176789
 
176437
176790
  var Registry = _dereq_('../../registry');
176791
+ var Drawing = _dereq_('../../components/drawing');
176792
+ var Axes = _dereq_('../../plots/cartesian/axes');
176438
176793
  var Lib = _dereq_('../../lib');
176794
+ var svgTextUtils = _dereq_('../../lib/svg_text_utils');
176795
+ var formatLabels = _dereq_('../scatter/format_labels');
176796
+ var Color = _dereq_('../../components/color');
176797
+ var extractOpts = _dereq_('../../components/colorscale').extractOpts;
176439
176798
  var makeColorScaleFuncFromTrace = _dereq_('../../components/colorscale').makeColorScaleFuncFromTrace;
176440
176799
  var xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');
176800
+ var alignmentConstants = _dereq_('../../constants/alignment');
176801
+ var LINE_SPACING = alignmentConstants.LINE_SPACING;
176802
+
176803
+ var labelClass = 'heatmap-label';
176804
+
176805
+ function selectLabels(plotGroup) {
176806
+ return plotGroup.selectAll('g.' + labelClass);
176807
+ }
176808
+
176809
+ function removeLabels(plotGroup) {
176810
+ selectLabels(plotGroup).remove();
176811
+ }
176441
176812
 
176442
176813
  module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
176443
176814
  var xa = plotinfo.xaxis;
@@ -176447,6 +176818,8 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
176447
176818
  var plotGroup = d3.select(this);
176448
176819
  var cd0 = cd[0];
176449
176820
  var trace = cd0.trace;
176821
+ var xGap = trace.xgap || 0;
176822
+ var yGap = trace.ygap || 0;
176450
176823
 
176451
176824
  var z = cd0.z;
176452
176825
  var x = cd0.x;
@@ -176462,7 +176835,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
176462
176835
  var xrev = false;
176463
176836
  var yrev = false;
176464
176837
 
176465
- var left, right, temp, top, bottom, i;
176838
+ var left, right, temp, top, bottom, i, j, k;
176466
176839
 
176467
176840
  // TODO: if there are multiple overlapping categorical heatmaps,
176468
176841
  // or if we allow category sorting, then the categories may not be
@@ -176543,6 +176916,8 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
176543
176916
  if(isOffScreen) {
176544
176917
  var noImage = plotGroup.selectAll('image').data([]);
176545
176918
  noImage.exit().remove();
176919
+
176920
+ removeLabels(plotGroup);
176546
176921
  return;
176547
176922
  }
176548
176923
 
@@ -176598,7 +176973,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
176598
176973
  var gcount = 0;
176599
176974
  var bcount = 0;
176600
176975
 
176601
- var xb, j, xi, v, row, c;
176976
+ var xb, xi, v, row, c;
176602
176977
 
176603
176978
  function setColor(v, pixsize) {
176604
176979
  if(v !== undefined) {
@@ -176709,8 +177084,6 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
176709
177084
  } else { // zsmooth = false -> filling potentially large bricks works fastest with fillRect
176710
177085
  // gaps do not need to be exact integers, but if they *are* we will get
176711
177086
  // cleaner edges by rounding at least one edge
176712
- var xGap = trace.xgap;
176713
- var yGap = trace.ygap;
176714
177087
  var xGapLeft = Math.floor(xGap / 2);
176715
177088
  var yGapTop = Math.floor(yGap / 2);
176716
177089
 
@@ -176763,6 +177136,187 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
176763
177136
  y: top,
176764
177137
  'xlink:href': canvas.toDataURL('image/png')
176765
177138
  });
177139
+
177140
+ removeLabels(plotGroup);
177141
+
177142
+ var texttemplate = trace.texttemplate;
177143
+ if(texttemplate) {
177144
+ // dummy axis for formatting the z value
177145
+ var cOpts = extractOpts(trace);
177146
+ var dummyAx = {
177147
+ type: 'linear',
177148
+ range: [cOpts.min, cOpts.max],
177149
+ _separators: xa._separators,
177150
+ _numFormat: xa._numFormat
177151
+ };
177152
+
177153
+ var aHistogram2dContour = trace.type === 'histogram2dcontour';
177154
+ var aContour = trace.type === 'contour';
177155
+ var iStart = aContour ? 1 : 0;
177156
+ var iStop = aContour ? m - 1 : m;
177157
+ var jStart = aContour ? 1 : 0;
177158
+ var jStop = aContour ? n - 1 : n;
177159
+
177160
+ var textData = [];
177161
+ for(i = iStart; i < iStop; i++) {
177162
+ var yVal;
177163
+ if(aContour) {
177164
+ yVal = cd0.y[i];
177165
+ } else if(aHistogram2dContour) {
177166
+ if(i === 0 || i === m - 1) continue;
177167
+ yVal = cd0.y[i];
177168
+ } else if(cd0.yCenter) {
177169
+ yVal = cd0.yCenter[i];
177170
+ } else {
177171
+ if(i + 1 === m && cd0.y[i + 1] === undefined) continue;
177172
+ yVal = (cd0.y[i] + cd0.y[i + 1]) / 2;
177173
+ }
177174
+
177175
+ var _y = Math.round(ya.c2p(yVal));
177176
+ if(0 > _y || _y > ya._length) continue;
177177
+
177178
+ for(j = jStart; j < jStop; j++) {
177179
+ var xVal;
177180
+ if(aContour) {
177181
+ xVal = cd0.x[j];
177182
+ } else if(aHistogram2dContour) {
177183
+ if(j === 0 || j === n - 1) continue;
177184
+ xVal = cd0.x[j];
177185
+ } else if(cd0.xCenter) {
177186
+ xVal = cd0.xCenter[j];
177187
+ } else {
177188
+ if(j + 1 === n && cd0.x[j + 1] === undefined) continue;
177189
+ xVal = (cd0.x[j] + cd0.x[j + 1]) / 2;
177190
+ }
177191
+
177192
+ var _x = Math.round(xa.c2p(xVal));
177193
+ if(0 > _x || _x > xa._length) continue;
177194
+
177195
+ var obj = formatLabels({
177196
+ x: xVal,
177197
+ y: yVal
177198
+ }, trace, gd._fullLayout);
177199
+
177200
+ obj.x = xVal;
177201
+ obj.y = yVal;
177202
+
177203
+ var zVal = cd0.z[i][j];
177204
+ if(zVal === undefined) {
177205
+ obj.z = '';
177206
+ obj.zLabel = '';
177207
+ } else {
177208
+ obj.z = zVal;
177209
+ obj.zLabel = Axes.tickText(dummyAx, zVal, 'hover').text;
177210
+ }
177211
+
177212
+ var theText = cd0.text && cd0.text[i] && cd0.text[i][j];
177213
+ if(theText === undefined || theText === false) theText = '';
177214
+ obj.text = theText;
177215
+
177216
+ var _t = Lib.texttemplateString(texttemplate, obj, gd._fullLayout._d3locale, obj, trace._meta || {});
177217
+ if(!_t) continue;
177218
+
177219
+ var lines = _t.split('<br>');
177220
+ var nL = lines.length;
177221
+ var nC = 0;
177222
+ for(k = 0; k < nL; k++) {
177223
+ nC = Math.max(nC, lines[k].length);
177224
+ }
177225
+
177226
+ textData.push({
177227
+ l: nL, // number of lines
177228
+ c: nC, // maximum number of chars in a line
177229
+ t: _t, // text
177230
+ x: _x,
177231
+ y: _y,
177232
+ z: zVal
177233
+ });
177234
+ }
177235
+ }
177236
+
177237
+ var font = trace.textfont;
177238
+ var fontFamily = font.family;
177239
+ var fontSize = font.size;
177240
+ var globalFontSize = gd._fullLayout.font.size;
177241
+
177242
+ if(!fontSize || fontSize === 'auto') {
177243
+ var minW = Infinity;
177244
+ var minH = Infinity;
177245
+ var maxL = 0;
177246
+ var maxC = 0;
177247
+
177248
+ for(k = 0; k < textData.length; k++) {
177249
+ var d = textData[k];
177250
+ maxL = Math.max(maxL, d.l);
177251
+ maxC = Math.max(maxC, d.c);
177252
+
177253
+ if(k < textData.length - 1) {
177254
+ var nextD = textData[k + 1];
177255
+ var dx = Math.abs(nextD.x - d.x);
177256
+ var dy = Math.abs(nextD.y - d.y);
177257
+
177258
+ if(dx) minW = Math.min(minW, dx);
177259
+ if(dy) minH = Math.min(minH, dy);
177260
+ }
177261
+ }
177262
+
177263
+ if(
177264
+ !isFinite(minW) ||
177265
+ !isFinite(minH)
177266
+ ) {
177267
+ fontSize = globalFontSize;
177268
+ } else {
177269
+ minW -= xGap;
177270
+ minH -= yGap;
177271
+
177272
+ minW /= maxC;
177273
+ minH /= maxL;
177274
+
177275
+ minW /= LINE_SPACING / 2;
177276
+ minH /= LINE_SPACING;
177277
+
177278
+ fontSize = Math.min(
177279
+ Math.floor(minW),
177280
+ Math.floor(minH),
177281
+ globalFontSize
177282
+ );
177283
+ }
177284
+ }
177285
+ if(fontSize <= 0 || !isFinite(fontSize)) return;
177286
+
177287
+ var xFn = function(d) { return d.x; };
177288
+ var yFn = function(d) {
177289
+ return d.y - fontSize * ((d.l * LINE_SPACING) / 2 - 1);
177290
+ };
177291
+
177292
+ var labels = selectLabels(plotGroup).data(textData);
177293
+
177294
+ labels
177295
+ .enter()
177296
+ .append('g')
177297
+ .classed(labelClass, 1)
177298
+ .append('text')
177299
+ .attr('text-anchor', 'middle')
177300
+ .each(function(d) {
177301
+ var thisLabel = d3.select(this);
177302
+
177303
+ var fontColor = font.color;
177304
+ if(!fontColor || fontColor === 'auto') {
177305
+ fontColor = Color.contrast(
177306
+ 'rgba(' +
177307
+ sclFunc(d.z).join() +
177308
+ ')'
177309
+ );
177310
+ }
177311
+
177312
+ thisLabel
177313
+ .attr('data-notex', 1)
177314
+ .call(svgTextUtils.positionText, xFn(d), yFn(d))
177315
+ .call(Drawing.font, fontFamily, fontSize, fontColor)
177316
+ .text(d.t)
177317
+ .call(svgTextUtils.convertToTspans, gd);
177318
+ });
177319
+ }
176766
177320
  });
176767
177321
  };
176768
177322
 
@@ -176824,7 +177378,7 @@ function putColor(pixels, pxIndex, c) {
176824
177378
  pixels[pxIndex + 3] = Math.round(c[3] * 255);
176825
177379
  }
176826
177380
 
176827
- },{"../../components/colorscale":246,"../../constants/xmlns_namespaces":348,"../../lib":371,"../../registry":501,"@plotly/d3":53,"tinycolor2":195}],667:[function(_dereq_,module,exports){
177381
+ },{"../../components/color":234,"../../components/colorscale":246,"../../components/drawing":256,"../../constants/alignment":339,"../../constants/xmlns_namespaces":348,"../../lib":371,"../../lib/svg_text_utils":396,"../../plots/cartesian/axes":421,"../../registry":501,"../scatter/format_labels":787,"@plotly/d3":53,"tinycolor2":195}],668:[function(_dereq_,module,exports){
176828
177382
  'use strict';
176829
177383
 
176830
177384
  var d3 = _dereq_('@plotly/d3');
@@ -176836,7 +177390,7 @@ module.exports = function style(gd) {
176836
177390
  });
176837
177391
  };
176838
177392
 
176839
- },{"@plotly/d3":53}],668:[function(_dereq_,module,exports){
177393
+ },{"@plotly/d3":53}],669:[function(_dereq_,module,exports){
176840
177394
  'use strict';
176841
177395
 
176842
177396
  module.exports = function handleStyleDefaults(traceIn, traceOut, coerce) {
@@ -176850,7 +177404,7 @@ module.exports = function handleStyleDefaults(traceIn, traceOut, coerce) {
176850
177404
  coerce('zhoverformat');
176851
177405
  };
176852
177406
 
176853
- },{}],669:[function(_dereq_,module,exports){
177407
+ },{}],670:[function(_dereq_,module,exports){
176854
177408
  'use strict';
176855
177409
 
176856
177410
  var isNumeric = _dereq_('fast-isnumeric');
@@ -176941,7 +177495,7 @@ function isValidZ(z) {
176941
177495
  return (allRowsAreArrays && oneRowIsFilled && hasOneNumber);
176942
177496
  }
176943
177497
 
176944
- },{"../../lib":371,"../../registry":501,"fast-isnumeric":99}],670:[function(_dereq_,module,exports){
177498
+ },{"../../lib":371,"../../registry":501,"fast-isnumeric":99}],671:[function(_dereq_,module,exports){
176945
177499
  'use strict';
176946
177500
 
176947
177501
  var heatmapAttrs = _dereq_('../heatmap/attributes');
@@ -176979,7 +177533,7 @@ extendFlat(
176979
177533
 
176980
177534
  module.exports = overrideAll(attrs, 'calc', 'nested');
176981
177535
 
176982
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../heatmap/attributes":655}],671:[function(_dereq_,module,exports){
177536
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../heatmap/attributes":655}],672:[function(_dereq_,module,exports){
176983
177537
  'use strict';
176984
177538
 
176985
177539
  var createHeatmap2D = _dereq_('../../../stackgl_modules').gl_heatmap2d;
@@ -177122,7 +177676,7 @@ function createHeatmap(scene, fullTrace, calcTrace) {
177122
177676
 
177123
177677
  module.exports = createHeatmap;
177124
177678
 
177125
- },{"../../../stackgl_modules":933,"../../lib/str2rgbarray":395,"../../plots/cartesian/axes":421}],672:[function(_dereq_,module,exports){
177679
+ },{"../../../stackgl_modules":934,"../../lib/str2rgbarray":395,"../../plots/cartesian/axes":421}],673:[function(_dereq_,module,exports){
177126
177680
  'use strict';
177127
177681
 
177128
177682
  var Lib = _dereq_('../../lib');
@@ -177149,7 +177703,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
177149
177703
  colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});
177150
177704
  };
177151
177705
 
177152
- },{"../../components/colorscale/defaults":244,"../../lib":371,"../heatmap/xyz_defaults":669,"./attributes":670}],673:[function(_dereq_,module,exports){
177706
+ },{"../../components/colorscale/defaults":244,"../../lib":371,"../heatmap/xyz_defaults":670,"./attributes":671}],674:[function(_dereq_,module,exports){
177153
177707
  'use strict';
177154
177708
 
177155
177709
  var deprecationWarning = [
@@ -177175,7 +177729,7 @@ module.exports = {
177175
177729
  }
177176
177730
  };
177177
177731
 
177178
- },{"../../plots/gl2d":463,"../heatmap/calc":656,"../heatmap/colorbar":658,"./attributes":670,"./convert":671,"./defaults":672}],674:[function(_dereq_,module,exports){
177732
+ },{"../../plots/gl2d":463,"../heatmap/calc":656,"../heatmap/colorbar":658,"./attributes":671,"./convert":672,"./defaults":673}],675:[function(_dereq_,module,exports){
177179
177733
  'use strict';
177180
177734
 
177181
177735
  var barAttrs = _dereq_('../bar/attributes');
@@ -177325,7 +177879,7 @@ module.exports = {
177325
177879
  }
177326
177880
  };
177327
177881
 
177328
- },{"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../../plots/template_attributes":496,"../bar/attributes":511,"./bin_attributes":676,"./constants":680}],675:[function(_dereq_,module,exports){
177882
+ },{"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../../plots/template_attributes":496,"../bar/attributes":511,"./bin_attributes":677,"./constants":681}],676:[function(_dereq_,module,exports){
177329
177883
  'use strict';
177330
177884
 
177331
177885
 
@@ -177341,7 +177895,7 @@ module.exports = function doAvg(size, counts) {
177341
177895
  return total;
177342
177896
  };
177343
177897
 
177344
- },{}],676:[function(_dereq_,module,exports){
177898
+ },{}],677:[function(_dereq_,module,exports){
177345
177899
  'use strict';
177346
177900
 
177347
177901
  module.exports = function makeBinAttrs(axLetter, match) {
@@ -177362,7 +177916,7 @@ module.exports = function makeBinAttrs(axLetter, match) {
177362
177916
  };
177363
177917
  };
177364
177918
 
177365
- },{}],677:[function(_dereq_,module,exports){
177919
+ },{}],678:[function(_dereq_,module,exports){
177366
177920
  'use strict';
177367
177921
 
177368
177922
  var isNumeric = _dereq_('fast-isnumeric');
@@ -177427,7 +177981,7 @@ module.exports = {
177427
177981
  }
177428
177982
  };
177429
177983
 
177430
- },{"fast-isnumeric":99}],678:[function(_dereq_,module,exports){
177984
+ },{"fast-isnumeric":99}],679:[function(_dereq_,module,exports){
177431
177985
  'use strict';
177432
177986
 
177433
177987
  var numConstants = _dereq_('../../constants/numerical');
@@ -177594,7 +178148,7 @@ function dateParts(v, pa, calendar) {
177594
178148
  return parts;
177595
178149
  }
177596
178150
 
177597
- },{"../../constants/numerical":347,"../../plots/cartesian/axes":421}],679:[function(_dereq_,module,exports){
178151
+ },{"../../constants/numerical":347,"../../plots/cartesian/axes":421}],680:[function(_dereq_,module,exports){
177598
178152
  'use strict';
177599
178153
 
177600
178154
  var isNumeric = _dereq_('fast-isnumeric');
@@ -177612,8 +178166,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
177612
178166
  function calc(gd, trace) {
177613
178167
  var pos = [];
177614
178168
  var size = [];
177615
- var pa = Axes.getFromId(gd, trace.orientation === 'h' ? trace.yaxis : trace.xaxis);
177616
- var mainData = trace.orientation === 'h' ? 'y' : 'x';
178169
+ var isHorizontal = trace.orientation === 'h';
178170
+ var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
178171
+ var mainData = isHorizontal ? 'y' : 'x';
177617
178172
  var counterData = {x: 'y', y: 'x'}[mainData];
177618
178173
  var calendar = trace[mainData + 'calendar'];
177619
178174
  var cumulativeSpec = trace.cumulative;
@@ -178165,14 +178720,14 @@ module.exports = {
178165
178720
  calcAllAutoBins: calcAllAutoBins
178166
178721
  };
178167
178722
 
178168
- },{"../../lib":371,"../../plots/cartesian/axes":421,"../../registry":501,"../bar/arrays_to_calcdata":510,"./average":675,"./bin_functions":677,"./bin_label_vals":678,"./norm_functions":686,"fast-isnumeric":99}],680:[function(_dereq_,module,exports){
178723
+ },{"../../lib":371,"../../plots/cartesian/axes":421,"../../registry":501,"../bar/arrays_to_calcdata":510,"./average":676,"./bin_functions":678,"./bin_label_vals":679,"./norm_functions":687,"fast-isnumeric":99}],681:[function(_dereq_,module,exports){
178169
178724
  'use strict';
178170
178725
 
178171
178726
  module.exports = {
178172
178727
  eventDataKeys: ['binNumber']
178173
178728
  };
178174
178729
 
178175
- },{}],681:[function(_dereq_,module,exports){
178730
+ },{}],682:[function(_dereq_,module,exports){
178176
178731
  'use strict';
178177
178732
 
178178
178733
  var Lib = _dereq_('../../lib');
@@ -178441,7 +178996,7 @@ module.exports = function crossTraceDefaults(fullData, fullLayout) {
178441
178996
  }
178442
178997
  };
178443
178998
 
178444
- },{"../../lib":371,"../../plots/cartesian/axis_ids":425,"../../plots/cartesian/constraints":429,"../../registry":501,"../bar/defaults":515}],682:[function(_dereq_,module,exports){
178999
+ },{"../../lib":371,"../../plots/cartesian/axis_ids":425,"../../plots/cartesian/constraints":429,"../../registry":501,"../bar/defaults":515}],683:[function(_dereq_,module,exports){
178445
179000
  'use strict';
178446
179001
 
178447
179002
  var Registry = _dereq_('../../registry');
@@ -178520,7 +179075,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
178520
179075
  errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'x', inherit: 'y'});
178521
179076
  };
178522
179077
 
178523
- },{"../../components/color":234,"../../lib":371,"../../registry":501,"../bar/defaults":515,"../bar/style_defaults":526,"./attributes":674}],683:[function(_dereq_,module,exports){
179078
+ },{"../../components/color":234,"../../lib":371,"../../registry":501,"../bar/defaults":515,"../bar/style_defaults":526,"./attributes":675}],684:[function(_dereq_,module,exports){
178524
179079
  'use strict';
178525
179080
 
178526
179081
  module.exports = function eventData(out, pt, trace, cd, pointNumber) {
@@ -178561,7 +179116,7 @@ module.exports = function eventData(out, pt, trace, cd, pointNumber) {
178561
179116
  return out;
178562
179117
  };
178563
179118
 
178564
- },{}],684:[function(_dereq_,module,exports){
179119
+ },{}],685:[function(_dereq_,module,exports){
178565
179120
  'use strict';
178566
179121
 
178567
179122
  var barHover = _dereq_('../bar/hover').hoverPoints;
@@ -178585,7 +179140,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {
178585
179140
  return pts;
178586
179141
  };
178587
179142
 
178588
- },{"../../plots/cartesian/axes":421,"../bar/hover":518}],685:[function(_dereq_,module,exports){
179143
+ },{"../../plots/cartesian/axes":421,"../bar/hover":518}],686:[function(_dereq_,module,exports){
178589
179144
  'use strict';
178590
179145
 
178591
179146
  /**
@@ -178626,7 +179181,7 @@ module.exports = {
178626
179181
  }
178627
179182
  };
178628
179183
 
178629
- },{"../../plots/cartesian":435,"../bar/cross_trace_calc":514,"../bar/layout_attributes":520,"../bar/layout_defaults":521,"../bar/plot":522,"../bar/select":523,"../bar/style":525,"../scatter/marker_colorbar":795,"./attributes":674,"./calc":679,"./cross_trace_defaults":681,"./defaults":682,"./event_data":683,"./hover":684}],686:[function(_dereq_,module,exports){
179184
+ },{"../../plots/cartesian":435,"../bar/cross_trace_calc":514,"../bar/layout_attributes":520,"../bar/layout_defaults":521,"../bar/plot":522,"../bar/select":523,"../bar/style":525,"../scatter/marker_colorbar":796,"./attributes":675,"./calc":680,"./cross_trace_defaults":682,"./defaults":683,"./event_data":684,"./hover":685}],687:[function(_dereq_,module,exports){
178630
179185
  'use strict';
178631
179186
 
178632
179187
 
@@ -178652,7 +179207,7 @@ module.exports = {
178652
179207
  }
178653
179208
  };
178654
179209
 
178655
- },{}],687:[function(_dereq_,module,exports){
179210
+ },{}],688:[function(_dereq_,module,exports){
178656
179211
  'use strict';
178657
179212
 
178658
179213
  var histogramAttrs = _dereq_('../histogram/attributes');
@@ -178661,6 +179216,7 @@ var heatmapAttrs = _dereq_('../heatmap/attributes');
178661
179216
  var baseAttrs = _dereq_('../../plots/attributes');
178662
179217
  var axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
178663
179218
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
179219
+ var texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;
178664
179220
  var colorScaleAttrs = _dereq_('../../components/colorscale/attributes');
178665
179221
 
178666
179222
  var extendFlat = _dereq_('../../lib/extend').extendFlat;
@@ -178705,12 +179261,19 @@ module.exports = extendFlat(
178705
179261
  yhoverformat: axisHoverFormat('y'),
178706
179262
  zhoverformat: axisHoverFormat('z', 1),
178707
179263
  hovertemplate: hovertemplateAttrs({}, {keys: 'z'}),
179264
+ texttemplate: texttemplateAttrs({
179265
+ arrayOk: false,
179266
+ editType: 'plot'
179267
+ }, {
179268
+ keys: 'z'
179269
+ }),
179270
+ textfont: heatmapAttrs.textfont,
178708
179271
  showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})
178709
179272
  },
178710
179273
  colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})
178711
179274
  );
178712
179275
 
178713
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../heatmap/attributes":655,"../histogram/attributes":674,"../histogram/bin_attributes":676}],688:[function(_dereq_,module,exports){
179276
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../heatmap/attributes":655,"../histogram/attributes":675,"../histogram/bin_attributes":677}],689:[function(_dereq_,module,exports){
178714
179277
  'use strict';
178715
179278
 
178716
179279
  var Lib = _dereq_('../../lib');
@@ -178921,7 +179484,7 @@ function getRanges(edges, uniqueVals, gapLow, gapHigh, ax, calendar) {
178921
179484
  return out;
178922
179485
  }
178923
179486
 
178924
- },{"../../lib":371,"../../plots/cartesian/axes":421,"../histogram/average":675,"../histogram/bin_functions":677,"../histogram/bin_label_vals":678,"../histogram/calc":679,"../histogram/norm_functions":686}],689:[function(_dereq_,module,exports){
179487
+ },{"../../lib":371,"../../plots/cartesian/axes":421,"../histogram/average":676,"../histogram/bin_functions":678,"../histogram/bin_label_vals":679,"../histogram/calc":680,"../histogram/norm_functions":687}],690:[function(_dereq_,module,exports){
178925
179488
  'use strict';
178926
179489
 
178927
179490
  var Lib = _dereq_('../../lib');
@@ -178929,6 +179492,7 @@ var Lib = _dereq_('../../lib');
178929
179492
  var handleSampleDefaults = _dereq_('./sample_defaults');
178930
179493
  var handleStyleDefaults = _dereq_('../heatmap/style_defaults');
178931
179494
  var colorscaleDefaults = _dereq_('../../components/colorscale/defaults');
179495
+ var handleHeatmapLabelDefaults = _dereq_('../heatmap/label_defaults');
178932
179496
  var attributes = _dereq_('./attributes');
178933
179497
 
178934
179498
 
@@ -178943,11 +179507,14 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
178943
179507
  handleStyleDefaults(traceIn, traceOut, coerce, layout);
178944
179508
  colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});
178945
179509
  coerce('hovertemplate');
179510
+
179511
+ handleHeatmapLabelDefaults(coerce, layout);
179512
+
178946
179513
  coerce('xhoverformat');
178947
179514
  coerce('yhoverformat');
178948
179515
  };
178949
179516
 
178950
- },{"../../components/colorscale/defaults":244,"../../lib":371,"../heatmap/style_defaults":668,"./attributes":687,"./sample_defaults":692}],690:[function(_dereq_,module,exports){
179517
+ },{"../../components/colorscale/defaults":244,"../../lib":371,"../heatmap/label_defaults":665,"../heatmap/style_defaults":669,"./attributes":688,"./sample_defaults":693}],691:[function(_dereq_,module,exports){
178951
179518
  'use strict';
178952
179519
 
178953
179520
  var heatmapHover = _dereq_('../heatmap/hover');
@@ -178973,7 +179540,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {
178973
179540
  return pts;
178974
179541
  };
178975
179542
 
178976
- },{"../../plots/cartesian/axes":421,"../heatmap/hover":662}],691:[function(_dereq_,module,exports){
179543
+ },{"../../plots/cartesian/axes":421,"../heatmap/hover":662}],692:[function(_dereq_,module,exports){
178977
179544
  'use strict';
178978
179545
 
178979
179546
  module.exports = {
@@ -178996,7 +179563,7 @@ module.exports = {
178996
179563
  }
178997
179564
  };
178998
179565
 
178999
- },{"../../plots/cartesian":435,"../heatmap/calc":656,"../heatmap/colorbar":658,"../heatmap/plot":666,"../heatmap/style":667,"../histogram/cross_trace_defaults":681,"../histogram/event_data":683,"./attributes":687,"./defaults":689,"./hover":690}],692:[function(_dereq_,module,exports){
179566
+ },{"../../plots/cartesian":435,"../heatmap/calc":656,"../heatmap/colorbar":658,"../heatmap/plot":667,"../heatmap/style":668,"../histogram/cross_trace_defaults":682,"../histogram/event_data":684,"./attributes":688,"./defaults":690,"./hover":691}],693:[function(_dereq_,module,exports){
179000
179567
  'use strict';
179001
179568
 
179002
179569
  var Registry = _dereq_('../../registry');
@@ -179033,7 +179600,7 @@ module.exports = function handleSampleDefaults(traceIn, traceOut, coerce, layout
179033
179600
  coerce('autobiny');
179034
179601
  };
179035
179602
 
179036
- },{"../../lib":371,"../../registry":501}],693:[function(_dereq_,module,exports){
179603
+ },{"../../lib":371,"../../registry":501}],694:[function(_dereq_,module,exports){
179037
179604
  'use strict';
179038
179605
 
179039
179606
  var histogram2dAttrs = _dereq_('../histogram2d/attributes');
@@ -179077,7 +179644,9 @@ module.exports = extendFlat({
179077
179644
  xhoverformat: axisHoverFormat('x'),
179078
179645
  yhoverformat: axisHoverFormat('y'),
179079
179646
  zhoverformat: axisHoverFormat('z', 1),
179080
- hovertemplate: histogram2dAttrs.hovertemplate
179647
+ hovertemplate: histogram2dAttrs.hovertemplate,
179648
+ texttemplate: contourAttrs.texttemplate,
179649
+ textfont: contourAttrs.textfont
179081
179650
  },
179082
179651
  colorScaleAttrs('', {
179083
179652
  cLetter: 'z',
@@ -179085,7 +179654,7 @@ module.exports = extendFlat({
179085
179654
  })
179086
179655
  );
179087
179656
 
179088
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../contour/attributes":598,"../histogram2d/attributes":687}],694:[function(_dereq_,module,exports){
179657
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../contour/attributes":598,"../histogram2d/attributes":688}],695:[function(_dereq_,module,exports){
179089
179658
  'use strict';
179090
179659
 
179091
179660
  var Lib = _dereq_('../../lib');
@@ -179093,6 +179662,7 @@ var Lib = _dereq_('../../lib');
179093
179662
  var handleSampleDefaults = _dereq_('../histogram2d/sample_defaults');
179094
179663
  var handleContoursDefaults = _dereq_('../contour/contours_defaults');
179095
179664
  var handleStyleDefaults = _dereq_('../contour/style_defaults');
179665
+ var handleHeatmapLabelDefaults = _dereq_('../heatmap/label_defaults');
179096
179666
  var attributes = _dereq_('./attributes');
179097
179667
 
179098
179668
 
@@ -179110,12 +179680,18 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
179110
179680
 
179111
179681
  handleContoursDefaults(traceIn, traceOut, coerce, coerce2);
179112
179682
  handleStyleDefaults(traceIn, traceOut, coerce, layout);
179113
- coerce('hovertemplate');
179114
179683
  coerce('xhoverformat');
179115
179684
  coerce('yhoverformat');
179685
+ coerce('hovertemplate');
179686
+ if(
179687
+ traceOut.contours &&
179688
+ traceOut.contours.coloring === 'heatmap'
179689
+ ) {
179690
+ handleHeatmapLabelDefaults(coerce, layout);
179691
+ }
179116
179692
  };
179117
179693
 
179118
- },{"../../lib":371,"../contour/contours_defaults":605,"../contour/style_defaults":619,"../histogram2d/sample_defaults":692,"./attributes":693}],695:[function(_dereq_,module,exports){
179694
+ },{"../../lib":371,"../contour/contours_defaults":605,"../contour/style_defaults":619,"../heatmap/label_defaults":665,"../histogram2d/sample_defaults":693,"./attributes":694}],696:[function(_dereq_,module,exports){
179119
179695
  'use strict';
179120
179696
 
179121
179697
  module.exports = {
@@ -179137,7 +179713,7 @@ module.exports = {
179137
179713
  }
179138
179714
  };
179139
179715
 
179140
- },{"../../plots/cartesian":435,"../contour/calc":599,"../contour/colorbar":601,"../contour/hover":611,"../contour/plot":616,"../contour/style":618,"../histogram/cross_trace_defaults":681,"./attributes":693,"./defaults":694}],696:[function(_dereq_,module,exports){
179716
+ },{"../../plots/cartesian":435,"../contour/calc":599,"../contour/colorbar":601,"../contour/hover":611,"../contour/plot":616,"../contour/style":618,"../histogram/cross_trace_defaults":682,"./attributes":694,"./defaults":695}],697:[function(_dereq_,module,exports){
179141
179717
  'use strict';
179142
179718
 
179143
179719
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
@@ -179224,7 +179800,7 @@ module.exports = {
179224
179800
  domain: domainAttrs({name: 'icicle', trace: true, editType: 'calc'}),
179225
179801
  };
179226
179802
 
179227
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":751,"../sunburst/attributes":858,"../treemap/attributes":884,"../treemap/constants":887}],697:[function(_dereq_,module,exports){
179803
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":752,"../sunburst/attributes":859,"../treemap/attributes":885,"../treemap/constants":888}],698:[function(_dereq_,module,exports){
179228
179804
  'use strict';
179229
179805
 
179230
179806
  var plots = _dereq_('../../plots/plots');
@@ -179239,7 +179815,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
179239
179815
  plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);
179240
179816
  };
179241
179817
 
179242
- },{"../../plots/plots":486}],698:[function(_dereq_,module,exports){
179818
+ },{"../../plots/plots":486}],699:[function(_dereq_,module,exports){
179243
179819
  'use strict';
179244
179820
 
179245
179821
  var calc = _dereq_('../sunburst/calc');
@@ -179252,7 +179828,7 @@ exports.crossTraceCalc = function(gd) {
179252
179828
  return calc._runCrossTraceCalc('icicle', gd);
179253
179829
  };
179254
179830
 
179255
- },{"../sunburst/calc":860}],699:[function(_dereq_,module,exports){
179831
+ },{"../sunburst/calc":861}],700:[function(_dereq_,module,exports){
179256
179832
  'use strict';
179257
179833
 
179258
179834
  var Lib = _dereq_('../../lib');
@@ -179355,7 +179931,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
179355
179931
  traceOut._length = null;
179356
179932
  };
179357
179933
 
179358
- },{"../../components/color":234,"../../components/colorscale":246,"../../lib":371,"../../plots/domain":451,"../bar/constants":513,"../bar/defaults":515,"./attributes":696}],700:[function(_dereq_,module,exports){
179934
+ },{"../../components/color":234,"../../components/colorscale":246,"../../lib":371,"../../plots/domain":451,"../bar/constants":513,"../bar/defaults":515,"./attributes":697}],701:[function(_dereq_,module,exports){
179359
179935
  'use strict';
179360
179936
 
179361
179937
  var d3 = _dereq_('@plotly/d3');
@@ -179563,7 +180139,7 @@ module.exports = function drawDescendants(gd, cd, entry, slices, opts) {
179563
180139
  return nextOfPrevEntry;
179564
180140
  };
179565
180141
 
179566
- },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../sunburst/fx":863,"../sunburst/helpers":864,"../sunburst/plot":868,"../treemap/constants":887,"./partition":704,"./style":706,"@plotly/d3":53}],701:[function(_dereq_,module,exports){
180142
+ },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../sunburst/fx":864,"../sunburst/helpers":865,"../sunburst/plot":869,"../treemap/constants":888,"./partition":705,"./style":707,"@plotly/d3":53}],702:[function(_dereq_,module,exports){
179567
180143
  'use strict';
179568
180144
 
179569
180145
  module.exports = {
@@ -179590,7 +180166,7 @@ module.exports = {
179590
180166
  }
179591
180167
  };
179592
180168
 
179593
- },{"../scatter/marker_colorbar":795,"./attributes":696,"./base_plot":697,"./calc":698,"./defaults":699,"./layout_attributes":702,"./layout_defaults":703,"./plot":705,"./style":706}],702:[function(_dereq_,module,exports){
180169
+ },{"../scatter/marker_colorbar":796,"./attributes":697,"./base_plot":698,"./calc":699,"./defaults":700,"./layout_attributes":703,"./layout_defaults":704,"./plot":706,"./style":707}],703:[function(_dereq_,module,exports){
179594
180170
  'use strict';
179595
180171
 
179596
180172
  module.exports = {
@@ -179605,7 +180181,7 @@ module.exports = {
179605
180181
  }
179606
180182
  };
179607
180183
 
179608
- },{}],703:[function(_dereq_,module,exports){
180184
+ },{}],704:[function(_dereq_,module,exports){
179609
180185
  'use strict';
179610
180186
 
179611
180187
  var Lib = _dereq_('../../lib');
@@ -179619,7 +180195,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
179619
180195
  coerce('extendiciclecolors');
179620
180196
  };
179621
180197
 
179622
- },{"../../lib":371,"./layout_attributes":702}],704:[function(_dereq_,module,exports){
180198
+ },{"../../lib":371,"./layout_attributes":703}],705:[function(_dereq_,module,exports){
179623
180199
  'use strict';
179624
180200
 
179625
180201
  var d3Hierarchy = _dereq_('d3-hierarchy');
@@ -179655,7 +180231,7 @@ module.exports = function partition(entry, size, opts) {
179655
180231
  return result;
179656
180232
  };
179657
180233
 
179658
- },{"../treemap/flip_tree":892,"d3-hierarchy":87}],705:[function(_dereq_,module,exports){
180234
+ },{"../treemap/flip_tree":893,"d3-hierarchy":87}],706:[function(_dereq_,module,exports){
179659
180235
  'use strict';
179660
180236
 
179661
180237
  var draw = _dereq_('../treemap/draw');
@@ -179668,7 +180244,7 @@ module.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCall
179668
180244
  });
179669
180245
  };
179670
180246
 
179671
- },{"../treemap/draw":889,"./draw_descendants":700}],706:[function(_dereq_,module,exports){
180247
+ },{"../treemap/draw":890,"./draw_descendants":701}],707:[function(_dereq_,module,exports){
179672
180248
  'use strict';
179673
180249
 
179674
180250
  var d3 = _dereq_('@plotly/d3');
@@ -179711,7 +180287,7 @@ module.exports = {
179711
180287
  styleOne: styleOne
179712
180288
  };
179713
180289
 
179714
- },{"../../components/color":234,"../../lib":371,"../bar/uniform_text":527,"@plotly/d3":53}],707:[function(_dereq_,module,exports){
180290
+ },{"../../components/color":234,"../../lib":371,"../bar/uniform_text":527,"@plotly/d3":53}],708:[function(_dereq_,module,exports){
179715
180291
  'use strict';
179716
180292
 
179717
180293
  var baseAttrs = _dereq_('../../plots/attributes');
@@ -179807,7 +180383,7 @@ module.exports = extendFlat({
179807
180383
  transforms: undefined
179808
180384
  });
179809
180385
 
179810
- },{"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"./constants":709}],708:[function(_dereq_,module,exports){
180386
+ },{"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"./constants":710}],709:[function(_dereq_,module,exports){
179811
180387
  'use strict';
179812
180388
 
179813
180389
  var Lib = _dereq_('../../lib');
@@ -179897,7 +180473,7 @@ function makeScaler(trace) {
179897
180473
  };
179898
180474
  }
179899
180475
 
179900
- },{"../../lib":371,"../../plots/cartesian/axes":421,"./constants":709,"./helpers":712,"fast-isnumeric":99}],709:[function(_dereq_,module,exports){
180476
+ },{"../../lib":371,"../../plots/cartesian/axes":421,"./constants":710,"./helpers":713,"fast-isnumeric":99}],710:[function(_dereq_,module,exports){
179901
180477
  'use strict';
179902
180478
 
179903
180479
  module.exports = {
@@ -179963,7 +180539,7 @@ module.exports = {
179963
180539
  ].join('; ')
179964
180540
  };
179965
180541
 
179966
- },{}],710:[function(_dereq_,module,exports){
180542
+ },{}],711:[function(_dereq_,module,exports){
179967
180543
  'use strict';
179968
180544
 
179969
180545
  var Lib = _dereq_('../../lib');
@@ -180013,7 +180589,7 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
180013
180589
  traceOut._length = null;
180014
180590
  };
180015
180591
 
180016
- },{"../../lib":371,"../../snapshot/helpers":505,"./attributes":707,"./constants":709}],711:[function(_dereq_,module,exports){
180592
+ },{"../../lib":371,"../../snapshot/helpers":505,"./attributes":708,"./constants":710}],712:[function(_dereq_,module,exports){
180017
180593
  'use strict';
180018
180594
 
180019
180595
  module.exports = function eventData(out, pt) {
@@ -180027,7 +180603,7 @@ module.exports = function eventData(out, pt) {
180027
180603
  return out;
180028
180604
  };
180029
180605
 
180030
- },{}],712:[function(_dereq_,module,exports){
180606
+ },{}],713:[function(_dereq_,module,exports){
180031
180607
  'use strict';
180032
180608
 
180033
180609
  var probeSync = _dereq_('probe-image-size/sync');
@@ -180040,7 +180616,7 @@ exports.getImageSize = function(src) {
180040
180616
  return probeSync(buff);
180041
180617
  };
180042
180618
 
180043
- },{"../../snapshot/helpers":505,"buffer/":70,"probe-image-size/sync":170}],713:[function(_dereq_,module,exports){
180619
+ },{"../../snapshot/helpers":505,"buffer/":70,"probe-image-size/sync":170}],714:[function(_dereq_,module,exports){
180044
180620
  'use strict';
180045
180621
 
180046
180622
  var Fx = _dereq_('../../components/fx');
@@ -180132,7 +180708,7 @@ module.exports = function hoverPoints(pointData, xval, yval) {
180132
180708
  })];
180133
180709
  };
180134
180710
 
180135
- },{"../../components/fx":274,"../../lib":371,"./constants":709}],714:[function(_dereq_,module,exports){
180711
+ },{"../../components/fx":274,"../../lib":371,"./constants":710}],715:[function(_dereq_,module,exports){
180136
180712
  'use strict';
180137
180713
 
180138
180714
  module.exports = {
@@ -180153,7 +180729,7 @@ module.exports = {
180153
180729
  }
180154
180730
  };
180155
180731
 
180156
- },{"../../plots/cartesian":435,"./attributes":707,"./calc":708,"./defaults":710,"./event_data":711,"./hover":713,"./plot":715,"./style":716}],715:[function(_dereq_,module,exports){
180732
+ },{"../../plots/cartesian":435,"./attributes":708,"./calc":709,"./defaults":711,"./event_data":712,"./hover":714,"./plot":716,"./style":717}],716:[function(_dereq_,module,exports){
180157
180733
  'use strict';
180158
180734
 
180159
180735
  var d3 = _dereq_('@plotly/d3');
@@ -180376,7 +180952,7 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
180376
180952
  });
180377
180953
  };
180378
180954
 
180379
- },{"../../constants/xmlns_namespaces":348,"../../lib":371,"./constants":709,"@plotly/d3":53}],716:[function(_dereq_,module,exports){
180955
+ },{"../../constants/xmlns_namespaces":348,"../../lib":371,"./constants":710,"@plotly/d3":53}],717:[function(_dereq_,module,exports){
180380
180956
  'use strict';
180381
180957
 
180382
180958
  var d3 = _dereq_('@plotly/d3');
@@ -180388,7 +180964,7 @@ module.exports = function style(gd) {
180388
180964
  });
180389
180965
  };
180390
180966
 
180391
- },{"@plotly/d3":53}],717:[function(_dereq_,module,exports){
180967
+ },{"@plotly/d3":53}],718:[function(_dereq_,module,exports){
180392
180968
  'use strict';
180393
180969
 
180394
180970
  var extendFlat = _dereq_('../../lib/extend').extendFlat;
@@ -180641,7 +181217,7 @@ module.exports = {
180641
181217
  }
180642
181218
  };
180643
181219
 
180644
- },{"../../components/color/attributes":233,"../../constants/delta.js":341,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plot_api/plot_template":410,"../../plots/cartesian/axis_format_attributes":424,"../../plots/cartesian/layout_attributes":436,"../../plots/domain":451,"../../plots/font_attributes":452}],718:[function(_dereq_,module,exports){
181220
+ },{"../../components/color/attributes":233,"../../constants/delta.js":341,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plot_api/plot_template":410,"../../plots/cartesian/axis_format_attributes":424,"../../plots/cartesian/layout_attributes":436,"../../plots/domain":451,"../../plots/font_attributes":452}],719:[function(_dereq_,module,exports){
180645
181221
  'use strict';
180646
181222
 
180647
181223
  var plots = _dereq_('../../plots/plots');
@@ -180656,7 +181232,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
180656
181232
  plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);
180657
181233
  };
180658
181234
 
180659
- },{"../../plots/plots":486}],719:[function(_dereq_,module,exports){
181235
+ },{"../../plots/plots":486}],720:[function(_dereq_,module,exports){
180660
181236
  'use strict';
180661
181237
 
180662
181238
  // var Lib = require('../../lib');
@@ -180685,7 +181261,7 @@ module.exports = {
180685
181261
  calc: calc
180686
181262
  };
180687
181263
 
180688
- },{}],720:[function(_dereq_,module,exports){
181264
+ },{}],721:[function(_dereq_,module,exports){
180689
181265
  'use strict';
180690
181266
 
180691
181267
  module.exports = {
@@ -180699,7 +181275,7 @@ module.exports = {
180699
181275
  horizontalPadding: 10
180700
181276
  };
180701
181277
 
180702
- },{}],721:[function(_dereq_,module,exports){
181278
+ },{}],722:[function(_dereq_,module,exports){
180703
181279
  'use strict';
180704
181280
 
180705
181281
  var Lib = _dereq_('../../lib');
@@ -180860,7 +181436,7 @@ module.exports = {
180860
181436
  supplyDefaults: supplyDefaults
180861
181437
  };
180862
181438
 
180863
- },{"../../lib":371,"../../plot_api/plot_template":410,"../../plots/array_container_defaults":416,"../../plots/cartesian/prefix_suffix_defaults":440,"../../plots/cartesian/tick_label_defaults":445,"../../plots/cartesian/tick_mark_defaults":446,"../../plots/cartesian/tick_value_defaults":447,"../../plots/domain":451,"./attributes":717,"./constants.js":720}],722:[function(_dereq_,module,exports){
181439
+ },{"../../lib":371,"../../plot_api/plot_template":410,"../../plots/array_container_defaults":416,"../../plots/cartesian/prefix_suffix_defaults":440,"../../plots/cartesian/tick_label_defaults":445,"../../plots/cartesian/tick_mark_defaults":446,"../../plots/cartesian/tick_value_defaults":447,"../../plots/domain":451,"./attributes":718,"./constants.js":721}],723:[function(_dereq_,module,exports){
180864
181440
  'use strict';
180865
181441
 
180866
181442
  module.exports = {
@@ -180881,7 +181457,7 @@ module.exports = {
180881
181457
  }
180882
181458
  };
180883
181459
 
180884
- },{"./attributes":717,"./base_plot":718,"./calc":719,"./defaults":721,"./plot":723}],723:[function(_dereq_,module,exports){
181460
+ },{"./attributes":718,"./base_plot":719,"./calc":720,"./defaults":722,"./plot":724}],724:[function(_dereq_,module,exports){
180885
181461
  'use strict';
180886
181462
 
180887
181463
  var d3 = _dereq_('@plotly/d3');
@@ -181755,7 +182331,7 @@ function cache(trace, name, initialValue, value, key, fn) {
181755
182331
  return v;
181756
182332
  }
181757
182333
 
181758
- },{"../../components/color":234,"../../components/drawing":256,"../../constants/alignment":339,"../../lib":371,"../../lib/svg_text_utils":396,"../../plots/cartesian/axes":421,"../../plots/cartesian/axis_defaults":423,"../../plots/cartesian/layout_attributes":436,"../../plots/cartesian/position_defaults":439,"./constants":720,"@plotly/d3":53,"d3-interpolate":88}],724:[function(_dereq_,module,exports){
182334
+ },{"../../components/color":234,"../../components/drawing":256,"../../constants/alignment":339,"../../lib":371,"../../lib/svg_text_utils":396,"../../plots/cartesian/axes":421,"../../plots/cartesian/axis_defaults":423,"../../plots/cartesian/layout_attributes":436,"../../plots/cartesian/position_defaults":439,"./constants":721,"@plotly/d3":53,"d3-interpolate":88}],725:[function(_dereq_,module,exports){
181759
182335
  'use strict';
181760
182336
 
181761
182337
  var colorScaleAttrs = _dereq_('../../components/colorscale/attributes');
@@ -181909,7 +182485,7 @@ attrs.flatshading.dflt = true; attrs.lighting.facenormalsepsilon.dflt = 0;
181909
182485
  attrs.x.editType = attrs.y.editType = attrs.z.editType = attrs.value.editType = 'calc+clearAxisTypes';
181910
182486
  attrs.transforms = undefined;
181911
182487
 
181912
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../mesh3d/attributes":729}],725:[function(_dereq_,module,exports){
182488
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../mesh3d/attributes":730}],726:[function(_dereq_,module,exports){
181913
182489
  'use strict';
181914
182490
 
181915
182491
  var colorscaleCalc = _dereq_('../../components/colorscale/calc');
@@ -181956,7 +182532,7 @@ module.exports = function calc(gd, trace) {
181956
182532
  });
181957
182533
  };
181958
182534
 
181959
- },{"../../components/colorscale/calc":242,"../streamtube/calc":854}],726:[function(_dereq_,module,exports){
182535
+ },{"../../components/colorscale/calc":242,"../streamtube/calc":855}],727:[function(_dereq_,module,exports){
181960
182536
  'use strict';
181961
182537
 
181962
182538
  var createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;
@@ -183004,7 +183580,7 @@ module.exports = {
183004
183580
  createIsosurfaceTrace: createIsosurfaceTrace,
183005
183581
  };
183006
183582
 
183007
- },{"../../../stackgl_modules":933,"../../components/colorscale":246,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/gl3d/zip3":476}],727:[function(_dereq_,module,exports){
183583
+ },{"../../../stackgl_modules":934,"../../components/colorscale":246,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/gl3d/zip3":476}],728:[function(_dereq_,module,exports){
183008
183584
  'use strict';
183009
183585
 
183010
183586
  var Lib = _dereq_('../../lib');
@@ -183116,7 +183692,7 @@ module.exports = {
183116
183692
  supplyIsoDefaults: supplyIsoDefaults
183117
183693
  };
183118
183694
 
183119
- },{"../../components/colorscale/defaults":244,"../../lib":371,"../../registry":501,"./attributes":724}],728:[function(_dereq_,module,exports){
183695
+ },{"../../components/colorscale/defaults":244,"../../lib":371,"../../registry":501,"./attributes":725}],729:[function(_dereq_,module,exports){
183120
183696
  'use strict';
183121
183697
 
183122
183698
  module.exports = {
@@ -183137,7 +183713,7 @@ module.exports = {
183137
183713
  }
183138
183714
  };
183139
183715
 
183140
- },{"../../plots/gl3d":465,"./attributes":724,"./calc":725,"./convert":726,"./defaults":727}],729:[function(_dereq_,module,exports){
183716
+ },{"../../plots/gl3d":465,"./attributes":725,"./calc":726,"./convert":727,"./defaults":728}],730:[function(_dereq_,module,exports){
183141
183717
  'use strict';
183142
183718
 
183143
183719
  var colorScaleAttrs = _dereq_('../../components/colorscale/attributes');
@@ -183285,7 +183861,7 @@ colorScaleAttrs('', {
183285
183861
  showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})
183286
183862
  });
183287
183863
 
183288
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../surface/attributes":870}],730:[function(_dereq_,module,exports){
183864
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../surface/attributes":871}],731:[function(_dereq_,module,exports){
183289
183865
  'use strict';
183290
183866
 
183291
183867
  var colorscaleCalc = _dereq_('../../components/colorscale/calc');
@@ -183300,7 +183876,7 @@ module.exports = function calc(gd, trace) {
183300
183876
  }
183301
183877
  };
183302
183878
 
183303
- },{"../../components/colorscale/calc":242}],731:[function(_dereq_,module,exports){
183879
+ },{"../../components/colorscale/calc":242}],732:[function(_dereq_,module,exports){
183304
183880
  'use strict';
183305
183881
 
183306
183882
  var createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;
@@ -183495,7 +184071,7 @@ function createMesh3DTrace(scene, data) {
183495
184071
 
183496
184072
  module.exports = createMesh3DTrace;
183497
184073
 
183498
- },{"../../../stackgl_modules":933,"../../components/colorscale":246,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/gl3d/zip3":476}],732:[function(_dereq_,module,exports){
184074
+ },{"../../../stackgl_modules":934,"../../components/colorscale":246,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/gl3d/zip3":476}],733:[function(_dereq_,module,exports){
183499
184075
  'use strict';
183500
184076
 
183501
184077
  var Registry = _dereq_('../../registry');
@@ -183591,7 +184167,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
183591
184167
  traceOut._length = null;
183592
184168
  };
183593
184169
 
183594
- },{"../../components/colorscale/defaults":244,"../../lib":371,"../../registry":501,"./attributes":729}],733:[function(_dereq_,module,exports){
184170
+ },{"../../components/colorscale/defaults":244,"../../lib":371,"../../registry":501,"./attributes":730}],734:[function(_dereq_,module,exports){
183595
184171
  'use strict';
183596
184172
 
183597
184173
  module.exports = {
@@ -183612,7 +184188,7 @@ module.exports = {
183612
184188
  }
183613
184189
  };
183614
184190
 
183615
- },{"../../plots/gl3d":465,"./attributes":729,"./calc":730,"./convert":731,"./defaults":732}],734:[function(_dereq_,module,exports){
184191
+ },{"../../plots/gl3d":465,"./attributes":730,"./calc":731,"./convert":732,"./defaults":733}],735:[function(_dereq_,module,exports){
183616
184192
  'use strict';
183617
184193
 
183618
184194
  var extendFlat = _dereq_('../../lib').extendFlat;
@@ -183714,7 +184290,7 @@ module.exports = {
183714
184290
  }),
183715
184291
  };
183716
184292
 
183717
- },{"../../components/drawing/attributes":255,"../../components/fx/attributes":265,"../../constants/delta.js":341,"../../lib":371,"../../plots/cartesian/axis_format_attributes":424,"../scatter/attributes":777}],735:[function(_dereq_,module,exports){
184293
+ },{"../../components/drawing/attributes":255,"../../components/fx/attributes":265,"../../constants/delta.js":341,"../../lib":371,"../../plots/cartesian/axis_format_attributes":424,"../scatter/attributes":778}],736:[function(_dereq_,module,exports){
183718
184294
  'use strict';
183719
184295
 
183720
184296
  var Lib = _dereq_('../../lib');
@@ -183887,7 +184463,7 @@ module.exports = {
183887
184463
  calcCommon: calcCommon
183888
184464
  };
183889
184465
 
183890
- },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421}],736:[function(_dereq_,module,exports){
184466
+ },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421}],737:[function(_dereq_,module,exports){
183891
184467
  'use strict';
183892
184468
 
183893
184469
  var Lib = _dereq_('../../lib');
@@ -183929,7 +184505,7 @@ function handleDirection(traceIn, traceOut, coerce, direction) {
183929
184505
  coerce(direction + '.line.dash', traceOut.line.dash);
183930
184506
  }
183931
184507
 
183932
- },{"../../lib":371,"../scatter/period_defaults":797,"./attributes":734,"./ohlc_defaults":739}],737:[function(_dereq_,module,exports){
184508
+ },{"../../lib":371,"../scatter/period_defaults":798,"./attributes":735,"./ohlc_defaults":740}],738:[function(_dereq_,module,exports){
183933
184509
  'use strict';
183934
184510
 
183935
184511
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -184128,7 +184704,7 @@ module.exports = {
184128
184704
  hoverOnPoints: hoverOnPoints
184129
184705
  };
184130
184706
 
184131
- },{"../../components/color":234,"../../components/fx":274,"../../constants/delta.js":341,"../../lib":371,"../../plots/cartesian/axes":421}],738:[function(_dereq_,module,exports){
184707
+ },{"../../components/color":234,"../../components/fx":274,"../../constants/delta.js":341,"../../lib":371,"../../plots/cartesian/axes":421}],739:[function(_dereq_,module,exports){
184132
184708
  'use strict';
184133
184709
 
184134
184710
  module.exports = {
@@ -184148,7 +184724,7 @@ module.exports = {
184148
184724
  selectPoints: _dereq_('./select')
184149
184725
  };
184150
184726
 
184151
- },{"../../plots/cartesian":435,"./attributes":734,"./calc":735,"./defaults":736,"./hover":737,"./plot":740,"./select":741,"./style":742}],739:[function(_dereq_,module,exports){
184727
+ },{"../../plots/cartesian":435,"./attributes":735,"./calc":736,"./defaults":737,"./hover":738,"./plot":741,"./select":742,"./style":743}],740:[function(_dereq_,module,exports){
184152
184728
  'use strict';
184153
184729
 
184154
184730
  var Registry = _dereq_('../../registry');
@@ -184175,7 +184751,7 @@ module.exports = function handleOHLC(traceIn, traceOut, coerce, layout) {
184175
184751
  return len;
184176
184752
  };
184177
184753
 
184178
- },{"../../lib":371,"../../registry":501}],740:[function(_dereq_,module,exports){
184754
+ },{"../../lib":371,"../../registry":501}],741:[function(_dereq_,module,exports){
184179
184755
  'use strict';
184180
184756
 
184181
184757
  var d3 = _dereq_('@plotly/d3');
@@ -184225,7 +184801,7 @@ module.exports = function plot(gd, plotinfo, cdOHLC, ohlcLayer) {
184225
184801
  });
184226
184802
  };
184227
184803
 
184228
- },{"../../lib":371,"@plotly/d3":53}],741:[function(_dereq_,module,exports){
184804
+ },{"../../lib":371,"@plotly/d3":53}],742:[function(_dereq_,module,exports){
184229
184805
  'use strict';
184230
184806
 
184231
184807
  module.exports = function selectPoints(searchInfo, selectionTester) {
@@ -184262,7 +184838,7 @@ module.exports = function selectPoints(searchInfo, selectionTester) {
184262
184838
  return selection;
184263
184839
  };
184264
184840
 
184265
- },{}],742:[function(_dereq_,module,exports){
184841
+ },{}],743:[function(_dereq_,module,exports){
184266
184842
  'use strict';
184267
184843
 
184268
184844
  var d3 = _dereq_('@plotly/d3');
@@ -184293,7 +184869,7 @@ module.exports = function style(gd, cd, sel) {
184293
184869
  });
184294
184870
  };
184295
184871
 
184296
- },{"../../components/color":234,"../../components/drawing":256,"@plotly/d3":53}],743:[function(_dereq_,module,exports){
184872
+ },{"../../components/color":234,"../../components/drawing":256,"@plotly/d3":53}],744:[function(_dereq_,module,exports){
184297
184873
  'use strict';
184298
184874
 
184299
184875
  var extendFlat = _dereq_('../../lib/extend').extendFlat;
@@ -184431,7 +185007,7 @@ module.exports = {
184431
185007
  showlegend: undefined
184432
185008
  };
184433
185009
 
184434
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/font_attributes":452,"../../plots/template_attributes":496}],744:[function(_dereq_,module,exports){
185010
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/font_attributes":452,"../../plots/template_attributes":496}],745:[function(_dereq_,module,exports){
184435
185011
  'use strict';
184436
185012
 
184437
185013
  var getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;
@@ -184458,7 +185034,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
184458
185034
  }
184459
185035
  };
184460
185036
 
184461
- },{"../../plots/get_data":460,"./plot":749}],745:[function(_dereq_,module,exports){
185037
+ },{"../../plots/get_data":460,"./plot":750}],746:[function(_dereq_,module,exports){
184462
185038
  'use strict';
184463
185039
 
184464
185040
  // Requirements
@@ -184969,7 +185545,7 @@ function isRangePermutation(inds) {
184969
185545
  return true;
184970
185546
  }
184971
185547
 
184972
- },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"../../components/drawing":256,"../../lib":371,"../../lib/filter_unique.js":362,"../../lib/gup":368,"fast-isnumeric":99}],746:[function(_dereq_,module,exports){
185548
+ },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"../../components/drawing":256,"../../lib":371,"../../lib/filter_unique.js":362,"../../lib/gup":368,"fast-isnumeric":99}],747:[function(_dereq_,module,exports){
184973
185549
  'use strict';
184974
185550
 
184975
185551
  var Lib = _dereq_('../../lib');
@@ -185082,7 +185658,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
185082
185658
  Lib.coerceFont(coerce, 'tickfont', categoryfontDefault);
185083
185659
  };
185084
185660
 
185085
- },{"../../components/colorscale/defaults":244,"../../components/colorscale/helpers":245,"../../lib":371,"../../plots/array_container_defaults":416,"../../plots/domain":451,"../parcoords/merge_length":750,"./attributes":743}],747:[function(_dereq_,module,exports){
185661
+ },{"../../components/colorscale/defaults":244,"../../components/colorscale/helpers":245,"../../lib":371,"../../plots/array_container_defaults":416,"../../plots/domain":451,"../parcoords/merge_length":751,"./attributes":744}],748:[function(_dereq_,module,exports){
185086
185662
  'use strict';
185087
185663
 
185088
185664
  module.exports = {
@@ -185104,7 +185680,7 @@ module.exports = {
185104
185680
  }
185105
185681
  };
185106
185682
 
185107
- },{"./attributes":743,"./base_plot":744,"./calc":745,"./defaults":746,"./plot":749}],748:[function(_dereq_,module,exports){
185683
+ },{"./attributes":744,"./base_plot":745,"./calc":746,"./defaults":747,"./plot":750}],749:[function(_dereq_,module,exports){
185108
185684
  'use strict';
185109
185685
 
185110
185686
  var d3 = _dereq_('@plotly/d3');
@@ -187253,7 +187829,7 @@ function createDimensionViewModel(parcatsViewModel, dimensionModel) {
187253
187829
  * The parent trace's view model
187254
187830
  */
187255
187831
 
187256
- },{"../../components/drawing":256,"../../components/fx":274,"../../lib":371,"../../lib/svg_text_utils":396,"../../plot_api/plot_api":407,"@plotly/d3":53,"d3-interpolate":88,"tinycolor2":195}],749:[function(_dereq_,module,exports){
187832
+ },{"../../components/drawing":256,"../../components/fx":274,"../../lib":371,"../../lib/svg_text_utils":396,"../../plot_api/plot_api":407,"@plotly/d3":53,"d3-interpolate":88,"tinycolor2":195}],750:[function(_dereq_,module,exports){
187257
187833
  'use strict';
187258
187834
 
187259
187835
 
@@ -187289,7 +187865,7 @@ module.exports = function plot(graphDiv, parcatsModels, transitionOpts, makeOnCo
187289
187865
  );
187290
187866
  };
187291
187867
 
187292
- },{"./parcats":748}],750:[function(_dereq_,module,exports){
187868
+ },{"./parcats":749}],751:[function(_dereq_,module,exports){
187293
187869
  'use strict';
187294
187870
 
187295
187871
  /**
@@ -187319,7 +187895,7 @@ module.exports = function(traceOut, dimensions, dataAttr, len) {
187319
187895
  return len;
187320
187896
  };
187321
187897
 
187322
- },{}],751:[function(_dereq_,module,exports){
187898
+ },{}],752:[function(_dereq_,module,exports){
187323
187899
  'use strict';
187324
187900
 
187325
187901
  var baseAttrs = _dereq_('../../plots/attributes');
@@ -187534,7 +188110,7 @@ module.exports = {
187534
188110
  }
187535
188111
  };
187536
188112
 
187537
- },{"../../components/color/attributes":233,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/font_attributes":452,"../../plots/template_attributes":496}],752:[function(_dereq_,module,exports){
188113
+ },{"../../components/color/attributes":233,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/font_attributes":452,"../../plots/template_attributes":496}],753:[function(_dereq_,module,exports){
187538
188114
  'use strict';
187539
188115
 
187540
188116
  var plots = _dereq_('../../plots/plots');
@@ -187549,7 +188125,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
187549
188125
  plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);
187550
188126
  };
187551
188127
 
187552
- },{"../../plots/plots":486}],753:[function(_dereq_,module,exports){
188128
+ },{"../../plots/plots":486}],754:[function(_dereq_,module,exports){
187553
188129
  'use strict';
187554
188130
 
187555
188131
  var isNumeric = _dereq_('fast-isnumeric');
@@ -187591,7 +188167,6 @@ function calc(gd, trace) {
187591
188167
  v = vals[i];
187592
188168
  if(!isNumeric(v)) continue;
187593
188169
  v = +v;
187594
- if(v < 0) continue;
187595
188170
  } else v = 1;
187596
188171
 
187597
188172
  label = labels[i];
@@ -187628,6 +188203,9 @@ function calc(gd, trace) {
187628
188203
  }
187629
188204
  }
187630
188205
 
188206
+ // Drop aggregate sums of value 0 or less
188207
+ cd = cd.filter(function(elem) { return elem.v >= 0; });
188208
+
187631
188209
  var shouldSort = (trace.type === 'funnelarea') ? isAggregated : trace.sort;
187632
188210
  if(shouldSort) cd.sort(function(a, b) { return b.v - a.v; });
187633
188211
 
@@ -187724,7 +188302,7 @@ module.exports = {
187724
188302
  generateExtendedColors: generateExtendedColors
187725
188303
  };
187726
188304
 
187727
- },{"../../components/color":234,"fast-isnumeric":99,"tinycolor2":195}],754:[function(_dereq_,module,exports){
188305
+ },{"../../components/color":234,"fast-isnumeric":99,"tinycolor2":195}],755:[function(_dereq_,module,exports){
187728
188306
  'use strict';
187729
188307
 
187730
188308
  var isNumeric = _dereq_('fast-isnumeric');
@@ -187847,7 +188425,7 @@ module.exports = {
187847
188425
  supplyDefaults: supplyDefaults
187848
188426
  };
187849
188427
 
187850
- },{"../../lib":371,"../../plots/domain":451,"../bar/defaults":515,"./attributes":751,"fast-isnumeric":99}],755:[function(_dereq_,module,exports){
188428
+ },{"../../lib":371,"../../plots/domain":451,"../bar/defaults":515,"./attributes":752,"fast-isnumeric":99}],756:[function(_dereq_,module,exports){
187851
188429
  'use strict';
187852
188430
 
187853
188431
  var appendArrayMultiPointValues = _dereq_('../../components/fx/helpers').appendArrayMultiPointValues;
@@ -187889,7 +188467,7 @@ module.exports = function eventData(pt, trace) {
187889
188467
  return out;
187890
188468
  };
187891
188469
 
187892
- },{"../../components/fx/helpers":270}],756:[function(_dereq_,module,exports){
188470
+ },{"../../components/fx/helpers":270}],757:[function(_dereq_,module,exports){
187893
188471
  'use strict';
187894
188472
 
187895
188473
  var Lib = _dereq_('../../lib');
@@ -187929,7 +188507,7 @@ exports.getRotationAngle = function(rotation) {
187929
188507
  return (rotation === 'auto' ? 0 : rotation) * Math.PI / 180;
187930
188508
  };
187931
188509
 
187932
- },{"../../lib":371}],757:[function(_dereq_,module,exports){
188510
+ },{"../../lib":371}],758:[function(_dereq_,module,exports){
187933
188511
  'use strict';
187934
188512
 
187935
188513
  module.exports = {
@@ -187953,7 +188531,7 @@ module.exports = {
187953
188531
  }
187954
188532
  };
187955
188533
 
187956
- },{"./attributes":751,"./base_plot":752,"./calc":753,"./defaults":754,"./layout_attributes":758,"./layout_defaults":759,"./plot":760,"./style":761,"./style_one":762}],758:[function(_dereq_,module,exports){
188534
+ },{"./attributes":752,"./base_plot":753,"./calc":754,"./defaults":755,"./layout_attributes":759,"./layout_defaults":760,"./plot":761,"./style":762,"./style_one":763}],759:[function(_dereq_,module,exports){
187957
188535
  'use strict';
187958
188536
 
187959
188537
  module.exports = {
@@ -187972,7 +188550,7 @@ module.exports = {
187972
188550
  }
187973
188551
  };
187974
188552
 
187975
- },{}],759:[function(_dereq_,module,exports){
188553
+ },{}],760:[function(_dereq_,module,exports){
187976
188554
  'use strict';
187977
188555
 
187978
188556
  var Lib = _dereq_('../../lib');
@@ -187989,7 +188567,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
187989
188567
  coerce('extendpiecolors');
187990
188568
  };
187991
188569
 
187992
- },{"../../lib":371,"./layout_attributes":758}],760:[function(_dereq_,module,exports){
188570
+ },{"../../lib":371,"./layout_attributes":759}],761:[function(_dereq_,module,exports){
187993
188571
  'use strict';
187994
188572
 
187995
188573
  var d3 = _dereq_('@plotly/d3');
@@ -189169,7 +189747,7 @@ module.exports = {
189169
189747
  computeTransform: computeTransform
189170
189748
  };
189171
189749
 
189172
- },{"../../components/color":234,"../../components/drawing":256,"../../components/fx":274,"../../lib":371,"../../lib/svg_text_utils":396,"../../plots/plots":486,"../bar/constants":513,"../bar/uniform_text":527,"./event_data":755,"./helpers":756,"@plotly/d3":53}],761:[function(_dereq_,module,exports){
189750
+ },{"../../components/color":234,"../../components/drawing":256,"../../components/fx":274,"../../lib":371,"../../lib/svg_text_utils":396,"../../plots/plots":486,"../bar/constants":513,"../bar/uniform_text":527,"./event_data":756,"./helpers":757,"@plotly/d3":53}],762:[function(_dereq_,module,exports){
189173
189751
  'use strict';
189174
189752
 
189175
189753
  var d3 = _dereq_('@plotly/d3');
@@ -189194,7 +189772,7 @@ module.exports = function style(gd) {
189194
189772
  });
189195
189773
  };
189196
189774
 
189197
- },{"../bar/uniform_text":527,"./style_one":762,"@plotly/d3":53}],762:[function(_dereq_,module,exports){
189775
+ },{"../bar/uniform_text":527,"./style_one":763,"@plotly/d3":53}],763:[function(_dereq_,module,exports){
189198
189776
  'use strict';
189199
189777
 
189200
189778
  var Color = _dereq_('../../components/color');
@@ -189210,7 +189788,7 @@ module.exports = function styleOne(s, pt, trace) {
189210
189788
  .call(Color.stroke, lineColor);
189211
189789
  };
189212
189790
 
189213
- },{"../../components/color":234,"./helpers":756}],763:[function(_dereq_,module,exports){
189791
+ },{"../../components/color":234,"./helpers":757}],764:[function(_dereq_,module,exports){
189214
189792
  'use strict';
189215
189793
 
189216
189794
  var scatterglAttrs = _dereq_('../scatter/attributes');
@@ -189294,7 +189872,7 @@ module.exports = {
189294
189872
  transforms: undefined
189295
189873
  };
189296
189874
 
189297
- },{"../scatter/attributes":777}],764:[function(_dereq_,module,exports){
189875
+ },{"../scatter/attributes":778}],765:[function(_dereq_,module,exports){
189298
189876
  'use strict';
189299
189877
 
189300
189878
  var createPointCloudRenderer = _dereq_('../../../stackgl_modules').gl_pointcloud2d;
@@ -189488,7 +190066,7 @@ function createPointcloud(scene, data) {
189488
190066
 
189489
190067
  module.exports = createPointcloud;
189490
190068
 
189491
- },{"../../../stackgl_modules":933,"../../lib/str2rgbarray":395,"../../plots/cartesian/autorange":420,"../scatter/get_trace_color":787}],765:[function(_dereq_,module,exports){
190069
+ },{"../../../stackgl_modules":934,"../../lib/str2rgbarray":395,"../../plots/cartesian/autorange":420,"../scatter/get_trace_color":788}],766:[function(_dereq_,module,exports){
189492
190070
  'use strict';
189493
190071
 
189494
190072
  var Lib = _dereq_('../../lib');
@@ -189527,7 +190105,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor) {
189527
190105
  traceOut._length = null;
189528
190106
  };
189529
190107
 
189530
- },{"../../lib":371,"./attributes":763}],766:[function(_dereq_,module,exports){
190108
+ },{"../../lib":371,"./attributes":764}],767:[function(_dereq_,module,exports){
189531
190109
  'use strict';
189532
190110
 
189533
190111
  var deprecationWarning = [
@@ -189551,7 +190129,7 @@ module.exports = {
189551
190129
  }
189552
190130
  };
189553
190131
 
189554
- },{"../../plots/gl2d":463,"../scatter3d/calc":806,"./attributes":763,"./convert":764,"./defaults":765}],767:[function(_dereq_,module,exports){
190132
+ },{"../../plots/gl2d":463,"../scatter3d/calc":807,"./attributes":764,"./convert":765,"./defaults":766}],768:[function(_dereq_,module,exports){
189555
190133
  'use strict';
189556
190134
 
189557
190135
  var fontAttrs = _dereq_('../../plots/font_attributes');
@@ -189739,7 +190317,7 @@ var attrs = module.exports = overrideAll({
189739
190317
  }, 'calc', 'nested');
189740
190318
  attrs.transforms = undefined;
189741
190319
 
189742
- },{"../../components/color/attributes":233,"../../components/colorscale/attributes":241,"../../components/fx/attributes":265,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plot_api/plot_template":410,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/domain":451,"../../plots/font_attributes":452,"../../plots/template_attributes":496}],768:[function(_dereq_,module,exports){
190320
+ },{"../../components/color/attributes":233,"../../components/colorscale/attributes":241,"../../components/fx/attributes":265,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plot_api/plot_template":410,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/domain":451,"../../plots/font_attributes":452,"../../plots/template_attributes":496}],769:[function(_dereq_,module,exports){
189743
190321
  'use strict';
189744
190322
 
189745
190323
  var overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;
@@ -189870,7 +190448,7 @@ function subplotUpdateFx(gd, index) {
189870
190448
  dragElement.init(dragOptions);
189871
190449
  }
189872
190450
 
189873
- },{"../../components/dragelement":253,"../../components/fx/layout_attributes":275,"../../lib":371,"../../lib/setcursor":391,"../../plot_api/edit_types":403,"../../plots/cartesian/select":442,"../../plots/get_data":460,"../../registry":501,"./plot":773}],769:[function(_dereq_,module,exports){
190451
+ },{"../../components/dragelement":253,"../../components/fx/layout_attributes":275,"../../lib":371,"../../lib/setcursor":391,"../../plot_api/edit_types":403,"../../plots/cartesian/select":442,"../../plots/get_data":460,"../../registry":501,"./plot":774}],770:[function(_dereq_,module,exports){
189874
190452
  'use strict';
189875
190453
 
189876
190454
  var tarjan = _dereq_('strongly-connected-components');
@@ -190051,7 +190629,7 @@ module.exports = function calc(gd, trace) {
190051
190629
  });
190052
190630
  };
190053
190631
 
190054
- },{"../../components/colorscale":246,"../../lib":371,"../../lib/gup":368,"strongly-connected-components":193}],770:[function(_dereq_,module,exports){
190632
+ },{"../../components/colorscale":246,"../../lib":371,"../../lib/gup":368,"strongly-connected-components":193}],771:[function(_dereq_,module,exports){
190055
190633
  'use strict';
190056
190634
 
190057
190635
  module.exports = {
@@ -190074,7 +190652,7 @@ module.exports = {
190074
190652
  }
190075
190653
  };
190076
190654
 
190077
- },{}],771:[function(_dereq_,module,exports){
190655
+ },{}],772:[function(_dereq_,module,exports){
190078
190656
  'use strict';
190079
190657
 
190080
190658
  var Lib = _dereq_('../../lib');
@@ -190180,7 +190758,7 @@ function concentrationscalesDefaults(In, Out) {
190180
190758
  coerce('colorscale');
190181
190759
  }
190182
190760
 
190183
- },{"../../components/color":234,"../../components/fx/hoverlabel_defaults":272,"../../lib":371,"../../plot_api/plot_template":410,"../../plots/array_container_defaults":416,"../../plots/domain":451,"./attributes":767,"tinycolor2":195}],772:[function(_dereq_,module,exports){
190761
+ },{"../../components/color":234,"../../components/fx/hoverlabel_defaults":272,"../../lib":371,"../../plot_api/plot_template":410,"../../plots/array_container_defaults":416,"../../plots/domain":451,"./attributes":768,"tinycolor2":195}],773:[function(_dereq_,module,exports){
190184
190762
  'use strict';
190185
190763
 
190186
190764
  module.exports = {
@@ -190198,7 +190776,7 @@ module.exports = {
190198
190776
  }
190199
190777
  };
190200
190778
 
190201
- },{"./attributes":767,"./base_plot":768,"./calc":769,"./defaults":771,"./plot":773,"./select.js":775}],773:[function(_dereq_,module,exports){
190779
+ },{"./attributes":768,"./base_plot":769,"./calc":770,"./defaults":772,"./plot":774,"./select.js":776}],774:[function(_dereq_,module,exports){
190202
190780
  'use strict';
190203
190781
 
190204
190782
  var d3 = _dereq_('@plotly/d3');
@@ -190567,7 +191145,7 @@ module.exports = function plot(gd, calcData) {
190567
191145
  );
190568
191146
  };
190569
191147
 
190570
- },{"../../components/color":234,"../../components/fx":274,"../../lib":371,"./constants":770,"./render":774,"@plotly/d3":53}],774:[function(_dereq_,module,exports){
191148
+ },{"../../components/color":234,"../../components/fx":274,"../../lib":371,"./constants":771,"./render":775,"@plotly/d3":53}],775:[function(_dereq_,module,exports){
190571
191149
  'use strict';
190572
191150
 
190573
191151
  var d3Force = _dereq_('d3-force');
@@ -191584,7 +192162,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
191584
192162
  .ease(c.ease).duration(c.duration);
191585
192163
  };
191586
192164
 
191587
- },{"../../components/color":234,"../../components/drawing":256,"../../constants/alignment":339,"../../lib":371,"../../lib/gup":368,"../../lib/svg_text_utils":396,"../../registry":501,"./constants":770,"@plotly/d3":53,"@plotly/d3-sankey":52,"@plotly/d3-sankey-circular":51,"d3-force":83,"d3-interpolate":88,"tinycolor2":195}],775:[function(_dereq_,module,exports){
192165
+ },{"../../components/color":234,"../../components/drawing":256,"../../constants/alignment":339,"../../lib":371,"../../lib/gup":368,"../../lib/svg_text_utils":396,"../../registry":501,"./constants":771,"@plotly/d3":53,"@plotly/d3-sankey":52,"@plotly/d3-sankey-circular":51,"d3-force":83,"d3-interpolate":88,"tinycolor2":195}],776:[function(_dereq_,module,exports){
191588
192166
  'use strict';
191589
192167
 
191590
192168
  module.exports = function selectPoints(searchInfo, selectionTester) {
@@ -191614,7 +192192,7 @@ module.exports = function selectPoints(searchInfo, selectionTester) {
191614
192192
  return selection;
191615
192193
  };
191616
192194
 
191617
- },{}],776:[function(_dereq_,module,exports){
192195
+ },{}],777:[function(_dereq_,module,exports){
191618
192196
  'use strict';
191619
192197
 
191620
192198
  var Lib = _dereq_('../../lib');
@@ -191657,7 +192235,7 @@ module.exports = function arraysToCalcdata(cd, trace) {
191657
192235
  }
191658
192236
  };
191659
192237
 
191660
- },{"../../lib":371}],777:[function(_dereq_,module,exports){
192238
+ },{"../../lib":371}],778:[function(_dereq_,module,exports){
191661
192239
  'use strict';
191662
192240
 
191663
192241
  var axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
@@ -192007,7 +192585,7 @@ module.exports = {
192007
192585
  }),
192008
192586
  };
192009
192587
 
192010
- },{"../../components/colorscale/attributes":241,"../../components/drawing":256,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../../plots/template_attributes":496,"./constants":781}],778:[function(_dereq_,module,exports){
192588
+ },{"../../components/colorscale/attributes":241,"../../components/drawing":256,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../../plots/font_attributes":452,"../../plots/template_attributes":496,"./constants":782}],779:[function(_dereq_,module,exports){
192011
192589
  'use strict';
192012
192590
 
192013
192591
  var isNumeric = _dereq_('fast-isnumeric');
@@ -192304,7 +192882,7 @@ module.exports = {
192304
192882
  getStackOpts: getStackOpts
192305
192883
  };
192306
192884
 
192307
- },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"./arrays_to_calcdata":776,"./calc_selection":779,"./colorscale_calc":780,"./subtypes":802,"fast-isnumeric":99}],779:[function(_dereq_,module,exports){
192885
+ },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"./arrays_to_calcdata":777,"./calc_selection":780,"./colorscale_calc":781,"./subtypes":803,"fast-isnumeric":99}],780:[function(_dereq_,module,exports){
192308
192886
  'use strict';
192309
192887
 
192310
192888
  var Lib = _dereq_('../../lib');
@@ -192315,7 +192893,7 @@ module.exports = function calcSelection(cd, trace) {
192315
192893
  }
192316
192894
  };
192317
192895
 
192318
- },{"../../lib":371}],780:[function(_dereq_,module,exports){
192896
+ },{"../../lib":371}],781:[function(_dereq_,module,exports){
192319
192897
  'use strict';
192320
192898
 
192321
192899
  var hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;
@@ -192350,7 +192928,7 @@ module.exports = function calcMarkerColorscale(gd, trace) {
192350
192928
  }
192351
192929
  };
192352
192930
 
192353
- },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"./subtypes":802}],781:[function(_dereq_,module,exports){
192931
+ },{"../../components/colorscale/calc":242,"../../components/colorscale/helpers":245,"./subtypes":803}],782:[function(_dereq_,module,exports){
192354
192932
  'use strict';
192355
192933
 
192356
192934
  module.exports = {
@@ -192370,7 +192948,7 @@ module.exports = {
192370
192948
  eventDataKeys: []
192371
192949
  };
192372
192950
 
192373
- },{}],782:[function(_dereq_,module,exports){
192951
+ },{}],783:[function(_dereq_,module,exports){
192374
192952
  'use strict';
192375
192953
 
192376
192954
  var calc = _dereq_('./calc');
@@ -192542,7 +193120,7 @@ function getInterp(calcTrace, index, position, posAttr) {
192542
193120
  return pt0.s + (pt1.s - pt0.s) * (position - pt0[posAttr]) / (pt1[posAttr] - pt0[posAttr]);
192543
193121
  }
192544
193122
 
192545
- },{"./calc":778}],783:[function(_dereq_,module,exports){
193123
+ },{"./calc":779}],784:[function(_dereq_,module,exports){
192546
193124
  'use strict';
192547
193125
 
192548
193126
 
@@ -192572,7 +193150,7 @@ module.exports = function crossTraceDefaults(fullData) {
192572
193150
  }
192573
193151
  };
192574
193152
 
192575
- },{}],784:[function(_dereq_,module,exports){
193153
+ },{}],785:[function(_dereq_,module,exports){
192576
193154
  'use strict';
192577
193155
 
192578
193156
  var Lib = _dereq_('../../lib');
@@ -192659,7 +193237,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
192659
193237
  Lib.coerceSelectionMarkerOpacity(traceOut, coerce);
192660
193238
  };
192661
193239
 
192662
- },{"../../lib":371,"../../registry":501,"./attributes":777,"./constants":781,"./fillcolor_defaults":785,"./line_defaults":790,"./line_shape_defaults":792,"./marker_defaults":796,"./period_defaults":797,"./stack_defaults":800,"./subtypes":802,"./text_defaults":803,"./xy_defaults":804}],785:[function(_dereq_,module,exports){
193240
+ },{"../../lib":371,"../../registry":501,"./attributes":778,"./constants":782,"./fillcolor_defaults":786,"./line_defaults":791,"./line_shape_defaults":793,"./marker_defaults":797,"./period_defaults":798,"./stack_defaults":801,"./subtypes":803,"./text_defaults":804,"./xy_defaults":805}],786:[function(_dereq_,module,exports){
192663
193241
  'use strict';
192664
193242
 
192665
193243
  var Color = _dereq_('../../components/color');
@@ -192687,7 +193265,7 @@ module.exports = function fillColorDefaults(traceIn, traceOut, defaultColor, coe
192687
193265
  ));
192688
193266
  };
192689
193267
 
192690
- },{"../../components/color":234,"../../lib":371}],786:[function(_dereq_,module,exports){
193268
+ },{"../../components/color":234,"../../lib":371}],787:[function(_dereq_,module,exports){
192691
193269
  'use strict';
192692
193270
 
192693
193271
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -192705,7 +193283,7 @@ module.exports = function formatLabels(cdi, trace, fullLayout) {
192705
193283
  return labels;
192706
193284
  };
192707
193285
 
192708
- },{"../../plots/cartesian/axes":421}],787:[function(_dereq_,module,exports){
193286
+ },{"../../plots/cartesian/axes":421}],788:[function(_dereq_,module,exports){
192709
193287
  'use strict';
192710
193288
 
192711
193289
  var Color = _dereq_('../../components/color');
@@ -192745,7 +193323,7 @@ module.exports = function getTraceColor(trace, di) {
192745
193323
  }
192746
193324
  };
192747
193325
 
192748
- },{"../../components/color":234,"./subtypes":802}],788:[function(_dereq_,module,exports){
193326
+ },{"../../components/color":234,"./subtypes":803}],789:[function(_dereq_,module,exports){
192749
193327
  'use strict';
192750
193328
 
192751
193329
  var Lib = _dereq_('../../lib');
@@ -192956,7 +193534,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) {
192956
193534
  }
192957
193535
  };
192958
193536
 
192959
- },{"../../components/color":234,"../../components/fx":274,"../../lib":371,"../../registry":501,"./get_trace_color":787}],789:[function(_dereq_,module,exports){
193537
+ },{"../../components/color":234,"../../components/fx":274,"../../lib":371,"../../registry":501,"./get_trace_color":788}],790:[function(_dereq_,module,exports){
192960
193538
  'use strict';
192961
193539
 
192962
193540
  var subtypes = _dereq_('./subtypes');
@@ -192993,7 +193571,7 @@ module.exports = {
192993
193571
  }
192994
193572
  };
192995
193573
 
192996
- },{"../../plots/cartesian":435,"./arrays_to_calcdata":776,"./attributes":777,"./calc":778,"./cross_trace_calc":782,"./cross_trace_defaults":783,"./defaults":784,"./format_labels":786,"./hover":788,"./marker_colorbar":795,"./plot":798,"./select":799,"./style":801,"./subtypes":802}],790:[function(_dereq_,module,exports){
193574
+ },{"../../plots/cartesian":435,"./arrays_to_calcdata":777,"./attributes":778,"./calc":779,"./cross_trace_calc":783,"./cross_trace_defaults":784,"./defaults":785,"./format_labels":787,"./hover":789,"./marker_colorbar":796,"./plot":799,"./select":800,"./style":802,"./subtypes":803}],791:[function(_dereq_,module,exports){
192997
193575
  'use strict';
192998
193576
 
192999
193577
  var isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;
@@ -193016,7 +193594,7 @@ module.exports = function lineDefaults(traceIn, traceOut, defaultColor, layout,
193016
193594
  if(!(opts || {}).noDash) coerce('line.dash');
193017
193595
  };
193018
193596
 
193019
- },{"../../components/colorscale/defaults":244,"../../components/colorscale/helpers":245,"../../lib":371}],791:[function(_dereq_,module,exports){
193597
+ },{"../../components/colorscale/defaults":244,"../../components/colorscale/helpers":245,"../../lib":371}],792:[function(_dereq_,module,exports){
193020
193598
  'use strict';
193021
193599
 
193022
193600
  var numConstants = _dereq_('../../constants/numerical');
@@ -193468,7 +194046,7 @@ module.exports = function linePoints(d, opts) {
193468
194046
  return segments;
193469
194047
  };
193470
194048
 
193471
- },{"../../constants/numerical":347,"../../lib":371,"./constants":781}],792:[function(_dereq_,module,exports){
194049
+ },{"../../constants/numerical":347,"../../lib":371,"./constants":782}],793:[function(_dereq_,module,exports){
193472
194050
  'use strict';
193473
194051
 
193474
194052
 
@@ -193478,7 +194056,7 @@ module.exports = function handleLineShapeDefaults(traceIn, traceOut, coerce) {
193478
194056
  if(shape === 'spline') coerce('line.smoothing');
193479
194057
  };
193480
194058
 
193481
- },{}],793:[function(_dereq_,module,exports){
194059
+ },{}],794:[function(_dereq_,module,exports){
193482
194060
  'use strict';
193483
194061
 
193484
194062
  var LINKEDFILLS = {tonextx: 1, tonexty: 1, tonext: 1};
@@ -193560,7 +194138,7 @@ module.exports = function linkTraces(gd, plotinfo, cdscatter) {
193560
194138
  return cdscatterSorted;
193561
194139
  };
193562
194140
 
193563
- },{}],794:[function(_dereq_,module,exports){
194141
+ },{}],795:[function(_dereq_,module,exports){
193564
194142
  'use strict';
193565
194143
 
193566
194144
  var isNumeric = _dereq_('fast-isnumeric');
@@ -193596,7 +194174,7 @@ module.exports = function makeBubbleSizeFn(trace, factor) {
193596
194174
  };
193597
194175
  };
193598
194176
 
193599
- },{"fast-isnumeric":99}],795:[function(_dereq_,module,exports){
194177
+ },{"fast-isnumeric":99}],796:[function(_dereq_,module,exports){
193600
194178
  'use strict';
193601
194179
 
193602
194180
  module.exports = {
@@ -193605,7 +194183,7 @@ module.exports = {
193605
194183
  max: 'cmax'
193606
194184
  };
193607
194185
 
193608
- },{}],796:[function(_dereq_,module,exports){
194186
+ },{}],797:[function(_dereq_,module,exports){
193609
194187
  'use strict';
193610
194188
 
193611
194189
  var Color = _dereq_('../../components/color');
@@ -193678,7 +194256,7 @@ module.exports = function markerDefaults(traceIn, traceOut, defaultColor, layout
193678
194256
  }
193679
194257
  };
193680
194258
 
193681
- },{"../../components/color":234,"../../components/colorscale/defaults":244,"../../components/colorscale/helpers":245,"./subtypes":802}],797:[function(_dereq_,module,exports){
194259
+ },{"../../components/color":234,"../../components/colorscale/defaults":244,"../../components/colorscale/helpers":245,"./subtypes":803}],798:[function(_dereq_,module,exports){
193682
194260
  'use strict';
193683
194261
 
193684
194262
  var dateTick0 = _dereq_('../../lib').dateTick0;
@@ -193717,7 +194295,7 @@ module.exports = function handlePeriodDefaults(traceIn, traceOut, layout, coerce
193717
194295
  }
193718
194296
  };
193719
194297
 
193720
- },{"../../constants/numerical":347,"../../lib":371}],798:[function(_dereq_,module,exports){
194298
+ },{"../../constants/numerical":347,"../../lib":371}],799:[function(_dereq_,module,exports){
193721
194299
  'use strict';
193722
194300
 
193723
194301
  var d3 = _dereq_('@plotly/d3');
@@ -194269,7 +194847,7 @@ function selectMarkers(gd, idx, plotinfo, cdscatter, cdscatterAll) {
194269
194847
  });
194270
194848
  }
194271
194849
 
194272
- },{"../../components/drawing":256,"../../lib":371,"../../lib/polygon":383,"../../registry":501,"./line_points":791,"./link_traces":793,"./subtypes":802,"@plotly/d3":53}],799:[function(_dereq_,module,exports){
194850
+ },{"../../components/drawing":256,"../../lib":371,"../../lib/polygon":383,"../../registry":501,"./line_points":792,"./link_traces":794,"./subtypes":803,"@plotly/d3":53}],800:[function(_dereq_,module,exports){
194273
194851
  'use strict';
194274
194852
 
194275
194853
  var subtypes = _dereq_('./subtypes');
@@ -194314,7 +194892,7 @@ module.exports = function selectPoints(searchInfo, selectionTester) {
194314
194892
  return selection;
194315
194893
  };
194316
194894
 
194317
- },{"./subtypes":802}],800:[function(_dereq_,module,exports){
194895
+ },{"./subtypes":803}],801:[function(_dereq_,module,exports){
194318
194896
  'use strict';
194319
194897
 
194320
194898
  var perStackAttrs = ['orientation', 'groupnorm', 'stackgaps'];
@@ -194411,7 +194989,7 @@ module.exports = function handleStackDefaults(traceIn, traceOut, layout, coerce)
194411
194989
  }
194412
194990
  };
194413
194991
 
194414
- },{}],801:[function(_dereq_,module,exports){
194992
+ },{}],802:[function(_dereq_,module,exports){
194415
194993
  'use strict';
194416
194994
 
194417
194995
  var d3 = _dereq_('@plotly/d3');
@@ -194473,7 +195051,7 @@ module.exports = {
194473
195051
  styleOnSelect: styleOnSelect
194474
195052
  };
194475
195053
 
194476
- },{"../../components/drawing":256,"../../registry":501,"@plotly/d3":53}],802:[function(_dereq_,module,exports){
195054
+ },{"../../components/drawing":256,"../../registry":501,"@plotly/d3":53}],803:[function(_dereq_,module,exports){
194477
195055
  'use strict';
194478
195056
 
194479
195057
  var Lib = _dereq_('../../lib');
@@ -194503,7 +195081,7 @@ module.exports = {
194503
195081
  }
194504
195082
  };
194505
195083
 
194506
- },{"../../lib":371}],803:[function(_dereq_,module,exports){
195084
+ },{"../../lib":371}],804:[function(_dereq_,module,exports){
194507
195085
  'use strict';
194508
195086
 
194509
195087
  var Lib = _dereq_('../../lib');
@@ -194524,7 +195102,7 @@ module.exports = function(traceIn, traceOut, layout, coerce, opts) {
194524
195102
  }
194525
195103
  };
194526
195104
 
194527
- },{"../../lib":371}],804:[function(_dereq_,module,exports){
195105
+ },{"../../lib":371}],805:[function(_dereq_,module,exports){
194528
195106
  'use strict';
194529
195107
 
194530
195108
  var Lib = _dereq_('../../lib');
@@ -194560,7 +195138,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
194560
195138
  return len;
194561
195139
  };
194562
195140
 
194563
- },{"../../lib":371,"../../registry":501}],805:[function(_dereq_,module,exports){
195141
+ },{"../../lib":371,"../../registry":501}],806:[function(_dereq_,module,exports){
194564
195142
  'use strict';
194565
195143
 
194566
195144
  var scatterAttrs = _dereq_('../scatter/attributes');
@@ -194688,7 +195266,7 @@ var attrs = module.exports = overrideAll({
194688
195266
 
194689
195267
  attrs.x.editType = attrs.y.editType = attrs.z.editType = 'calc+clearAxisTypes';
194690
195268
 
194691
- },{"../../components/colorscale/attributes":241,"../../constants/gl3d_dashes":344,"../../constants/gl3d_markers":345,"../../lib/extend":361,"../../lib/sort_object_keys":393,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../scatter/attributes":777}],806:[function(_dereq_,module,exports){
195269
+ },{"../../components/colorscale/attributes":241,"../../constants/gl3d_dashes":344,"../../constants/gl3d_markers":345,"../../lib/extend":361,"../../lib/sort_object_keys":393,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../scatter/attributes":778}],807:[function(_dereq_,module,exports){
194692
195270
  'use strict';
194693
195271
 
194694
195272
  var arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');
@@ -194708,7 +195286,7 @@ module.exports = function calc(gd, trace) {
194708
195286
  return cd;
194709
195287
  };
194710
195288
 
194711
- },{"../scatter/arrays_to_calcdata":776,"../scatter/colorscale_calc":780}],807:[function(_dereq_,module,exports){
195289
+ },{"../scatter/arrays_to_calcdata":777,"../scatter/colorscale_calc":781}],808:[function(_dereq_,module,exports){
194712
195290
  'use strict';
194713
195291
 
194714
195292
  var Registry = _dereq_('../../registry');
@@ -194787,7 +195365,7 @@ function calculateErrors(data, scaleFactor, sceneLayout) {
194787
195365
 
194788
195366
  module.exports = calculateErrors;
194789
195367
 
194790
- },{"../../registry":501}],808:[function(_dereq_,module,exports){
195368
+ },{"../../registry":501}],809:[function(_dereq_,module,exports){
194791
195369
  'use strict';
194792
195370
 
194793
195371
  var createLinePlot = _dereq_('../../../stackgl_modules').gl_line3d;
@@ -195332,7 +195910,7 @@ function createLineWithMarkers(scene, data) {
195332
195910
 
195333
195911
  module.exports = createLineWithMarkers;
195334
195912
 
195335
- },{"../../../stackgl_modules":933,"../../components/fx/helpers":270,"../../constants/gl3d_dashes":344,"../../constants/gl3d_markers":345,"../../lib":371,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/cartesian/axes":421,"../scatter/make_bubble_size_func":794,"./calc_errors":807}],809:[function(_dereq_,module,exports){
195913
+ },{"../../../stackgl_modules":934,"../../components/fx/helpers":270,"../../constants/gl3d_dashes":344,"../../constants/gl3d_markers":345,"../../lib":371,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/cartesian/axes":421,"../scatter/make_bubble_size_func":795,"./calc_errors":808}],810:[function(_dereq_,module,exports){
195336
195914
  'use strict';
195337
195915
 
195338
195916
  var Registry = _dereq_('../../registry');
@@ -195416,7 +195994,7 @@ function handleXYZDefaults(traceIn, traceOut, coerce, layout) {
195416
195994
  return len;
195417
195995
  }
195418
195996
 
195419
- },{"../../lib":371,"../../registry":501,"../scatter/line_defaults":790,"../scatter/marker_defaults":796,"../scatter/subtypes":802,"../scatter/text_defaults":803,"./attributes":805}],810:[function(_dereq_,module,exports){
195997
+ },{"../../lib":371,"../../registry":501,"../scatter/line_defaults":791,"../scatter/marker_defaults":797,"../scatter/subtypes":803,"../scatter/text_defaults":804,"./attributes":806}],811:[function(_dereq_,module,exports){
195420
195998
  'use strict';
195421
195999
 
195422
196000
  module.exports = {
@@ -195445,7 +196023,7 @@ module.exports = {
195445
196023
  }
195446
196024
  };
195447
196025
 
195448
- },{"../../constants/gl3d_markers":345,"../../plots/gl3d":465,"./attributes":805,"./calc":806,"./convert":808,"./defaults":809}],811:[function(_dereq_,module,exports){
196026
+ },{"../../constants/gl3d_markers":345,"../../plots/gl3d":465,"./attributes":806,"./calc":807,"./convert":809,"./defaults":810}],812:[function(_dereq_,module,exports){
195449
196027
  'use strict';
195450
196028
 
195451
196029
  var scatterAttrs = _dereq_('../scatter/attributes');
@@ -195529,7 +196107,7 @@ module.exports = {
195529
196107
  hovertemplate: hovertemplateAttrs()
195530
196108
  };
195531
196109
 
195532
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":777}],812:[function(_dereq_,module,exports){
196110
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":778}],813:[function(_dereq_,module,exports){
195533
196111
  'use strict';
195534
196112
 
195535
196113
  var isNumeric = _dereq_('fast-isnumeric');
@@ -195579,7 +196157,7 @@ module.exports = function calc(gd, trace) {
195579
196157
  return cd;
195580
196158
  };
195581
196159
 
195582
- },{"../carpet/lookup_carpetid":571,"../scatter/arrays_to_calcdata":776,"../scatter/calc":778,"../scatter/calc_selection":779,"../scatter/colorscale_calc":780,"fast-isnumeric":99}],813:[function(_dereq_,module,exports){
196160
+ },{"../carpet/lookup_carpetid":571,"../scatter/arrays_to_calcdata":777,"../scatter/calc":779,"../scatter/calc_selection":780,"../scatter/colorscale_calc":781,"fast-isnumeric":99}],814:[function(_dereq_,module,exports){
195583
196161
  'use strict';
195584
196162
 
195585
196163
  var Lib = _dereq_('../../lib');
@@ -195660,7 +196238,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
195660
196238
  Lib.coerceSelectionMarkerOpacity(traceOut, coerce);
195661
196239
  };
195662
196240
 
195663
- },{"../../lib":371,"../scatter/constants":781,"../scatter/fillcolor_defaults":785,"../scatter/line_defaults":790,"../scatter/line_shape_defaults":792,"../scatter/marker_defaults":796,"../scatter/subtypes":802,"../scatter/text_defaults":803,"./attributes":811}],814:[function(_dereq_,module,exports){
196241
+ },{"../../lib":371,"../scatter/constants":782,"../scatter/fillcolor_defaults":786,"../scatter/line_defaults":791,"../scatter/line_shape_defaults":793,"../scatter/marker_defaults":797,"../scatter/subtypes":803,"../scatter/text_defaults":804,"./attributes":812}],815:[function(_dereq_,module,exports){
195664
196242
  'use strict';
195665
196243
 
195666
196244
  module.exports = function eventData(out, pt, trace, cd, pointNumber) {
@@ -195673,7 +196251,7 @@ module.exports = function eventData(out, pt, trace, cd, pointNumber) {
195673
196251
  return out;
195674
196252
  };
195675
196253
 
195676
- },{}],815:[function(_dereq_,module,exports){
196254
+ },{}],816:[function(_dereq_,module,exports){
195677
196255
  'use strict';
195678
196256
 
195679
196257
  module.exports = function formatLabels(cdi, trace) {
@@ -195692,7 +196270,7 @@ module.exports = function formatLabels(cdi, trace) {
195692
196270
  return labels;
195693
196271
  };
195694
196272
 
195695
- },{}],816:[function(_dereq_,module,exports){
196273
+ },{}],817:[function(_dereq_,module,exports){
195696
196274
  'use strict';
195697
196275
 
195698
196276
  var scatterHover = _dereq_('../scatter/hover');
@@ -195775,7 +196353,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) {
195775
196353
  return scatterPointData;
195776
196354
  };
195777
196355
 
195778
- },{"../../lib":371,"../scatter/hover":788}],817:[function(_dereq_,module,exports){
196356
+ },{"../../lib":371,"../scatter/hover":789}],818:[function(_dereq_,module,exports){
195779
196357
  'use strict';
195780
196358
 
195781
196359
  module.exports = {
@@ -195799,7 +196377,7 @@ module.exports = {
195799
196377
  }
195800
196378
  };
195801
196379
 
195802
- },{"../../plots/cartesian":435,"../scatter/marker_colorbar":795,"../scatter/select":799,"../scatter/style":801,"./attributes":811,"./calc":812,"./defaults":813,"./event_data":814,"./format_labels":815,"./hover":816,"./plot":818}],818:[function(_dereq_,module,exports){
196380
+ },{"../../plots/cartesian":435,"../scatter/marker_colorbar":796,"../scatter/select":800,"../scatter/style":802,"./attributes":812,"./calc":813,"./defaults":814,"./event_data":815,"./format_labels":816,"./hover":817,"./plot":819}],819:[function(_dereq_,module,exports){
195803
196381
  'use strict';
195804
196382
 
195805
196383
  var scatterPlot = _dereq_('../scatter/plot');
@@ -195834,7 +196412,7 @@ module.exports = function plot(gd, plotinfoproxy, data, layer) {
195834
196412
  }
195835
196413
  };
195836
196414
 
195837
- },{"../../components/drawing":256,"../../plots/cartesian/axes":421,"../scatter/plot":798}],819:[function(_dereq_,module,exports){
196415
+ },{"../../components/drawing":256,"../../plots/cartesian/axes":421,"../scatter/plot":799}],820:[function(_dereq_,module,exports){
195838
196416
  'use strict';
195839
196417
 
195840
196418
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
@@ -195932,7 +196510,7 @@ module.exports = overrideAll({
195932
196510
  hovertemplate: hovertemplateAttrs(),
195933
196511
  }, 'calc', 'nested');
195934
196512
 
195935
- },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":777}],820:[function(_dereq_,module,exports){
196513
+ },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":778}],821:[function(_dereq_,module,exports){
195936
196514
  'use strict';
195937
196515
 
195938
196516
  var isNumeric = _dereq_('fast-isnumeric');
@@ -195991,7 +196569,7 @@ module.exports = function calc(gd, trace) {
195991
196569
  return calcTrace;
195992
196570
  };
195993
196571
 
195994
- },{"../../constants/numerical":347,"../../lib":371,"../scatter/arrays_to_calcdata":776,"../scatter/calc_selection":779,"../scatter/colorscale_calc":780,"fast-isnumeric":99}],821:[function(_dereq_,module,exports){
196572
+ },{"../../constants/numerical":347,"../../lib":371,"../scatter/arrays_to_calcdata":777,"../scatter/calc_selection":780,"../scatter/colorscale_calc":781,"fast-isnumeric":99}],822:[function(_dereq_,module,exports){
195995
196573
  'use strict';
195996
196574
 
195997
196575
  var Lib = _dereq_('../../lib');
@@ -196066,7 +196644,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
196066
196644
  Lib.coerceSelectionMarkerOpacity(traceOut, coerce);
196067
196645
  };
196068
196646
 
196069
- },{"../../lib":371,"../scatter/fillcolor_defaults":785,"../scatter/line_defaults":790,"../scatter/marker_defaults":796,"../scatter/subtypes":802,"../scatter/text_defaults":803,"./attributes":819}],822:[function(_dereq_,module,exports){
196647
+ },{"../../lib":371,"../scatter/fillcolor_defaults":786,"../scatter/line_defaults":791,"../scatter/marker_defaults":797,"../scatter/subtypes":803,"../scatter/text_defaults":804,"./attributes":820}],823:[function(_dereq_,module,exports){
196070
196648
  'use strict';
196071
196649
 
196072
196650
 
@@ -196084,7 +196662,7 @@ module.exports = function eventData(out, pt, trace, cd, pointNumber) {
196084
196662
  return out;
196085
196663
  };
196086
196664
 
196087
- },{}],823:[function(_dereq_,module,exports){
196665
+ },{}],824:[function(_dereq_,module,exports){
196088
196666
  'use strict';
196089
196667
 
196090
196668
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -196101,7 +196679,7 @@ module.exports = function formatLabels(cdi, trace, fullLayout) {
196101
196679
  return labels;
196102
196680
  };
196103
196681
 
196104
- },{"../../plots/cartesian/axes":421}],824:[function(_dereq_,module,exports){
196682
+ },{"../../plots/cartesian/axes":421}],825:[function(_dereq_,module,exports){
196105
196683
  'use strict';
196106
196684
 
196107
196685
  var Fx = _dereq_('../../components/fx');
@@ -196205,7 +196783,7 @@ function getExtraText(trace, pt, pointData, labels) {
196205
196783
  return text.join('<br>');
196206
196784
  }
196207
196785
 
196208
- },{"../../components/fx":274,"../../constants/numerical":347,"../../lib":371,"../scatter/get_trace_color":787,"./attributes":819}],825:[function(_dereq_,module,exports){
196786
+ },{"../../components/fx":274,"../../constants/numerical":347,"../../lib":371,"../scatter/get_trace_color":788,"./attributes":820}],826:[function(_dereq_,module,exports){
196209
196787
  'use strict';
196210
196788
 
196211
196789
  module.exports = {
@@ -196230,7 +196808,7 @@ module.exports = {
196230
196808
  }
196231
196809
  };
196232
196810
 
196233
- },{"../../plots/geo":456,"../scatter/marker_colorbar":795,"../scatter/style":801,"./attributes":819,"./calc":820,"./defaults":821,"./event_data":822,"./format_labels":823,"./hover":824,"./plot":826,"./select":827,"./style":828}],826:[function(_dereq_,module,exports){
196811
+ },{"../../plots/geo":456,"../scatter/marker_colorbar":796,"../scatter/style":802,"./attributes":820,"./calc":821,"./defaults":822,"./event_data":823,"./format_labels":824,"./hover":825,"./plot":827,"./select":828,"./style":829}],827:[function(_dereq_,module,exports){
196234
196812
  'use strict';
196235
196813
 
196236
196814
  var d3 = _dereq_('@plotly/d3');
@@ -196351,7 +196929,7 @@ module.exports = {
196351
196929
  plot: plot
196352
196930
  };
196353
196931
 
196354
- },{"../../constants/numerical":347,"../../lib":371,"../../lib/geo_location_utils":364,"../../lib/geojson_utils":365,"../../lib/topojson_utils":399,"../../plots/cartesian/autorange":420,"../scatter/calc":778,"../scatter/subtypes":802,"./style":828,"@plotly/d3":53}],827:[function(_dereq_,module,exports){
196932
+ },{"../../constants/numerical":347,"../../lib":371,"../../lib/geo_location_utils":364,"../../lib/geojson_utils":365,"../../lib/topojson_utils":399,"../../plots/cartesian/autorange":420,"../scatter/calc":779,"../scatter/subtypes":803,"./style":829,"@plotly/d3":53}],828:[function(_dereq_,module,exports){
196355
196933
  'use strict';
196356
196934
 
196357
196935
  var subtypes = _dereq_('../scatter/subtypes');
@@ -196400,7 +196978,7 @@ module.exports = function selectPoints(searchInfo, selectionTester) {
196400
196978
  return selection;
196401
196979
  };
196402
196980
 
196403
- },{"../../constants/numerical":347,"../scatter/subtypes":802}],828:[function(_dereq_,module,exports){
196981
+ },{"../../constants/numerical":347,"../scatter/subtypes":803}],829:[function(_dereq_,module,exports){
196404
196982
  'use strict';
196405
196983
 
196406
196984
  var d3 = _dereq_('@plotly/d3');
@@ -196441,7 +197019,7 @@ function styleTrace(gd, calcTrace) {
196441
197019
  });
196442
197020
  }
196443
197021
 
196444
- },{"../../components/color":234,"../../components/drawing":256,"../scatter/style":801,"@plotly/d3":53}],829:[function(_dereq_,module,exports){
197022
+ },{"../../components/color":234,"../../components/drawing":256,"../scatter/style":802,"@plotly/d3":53}],830:[function(_dereq_,module,exports){
196445
197023
  'use strict';
196446
197024
 
196447
197025
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
@@ -196535,7 +197113,7 @@ module.exports = overrideAll({
196535
197113
  hovertemplate: hovertemplateAttrs(),
196536
197114
  }, 'calc', 'nested');
196537
197115
 
196538
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/mapbox/layout_attributes":482,"../../plots/template_attributes":496,"../scatter/attributes":777,"../scattergeo/attributes":819}],830:[function(_dereq_,module,exports){
197116
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/mapbox/layout_attributes":482,"../../plots/template_attributes":496,"../scatter/attributes":778,"../scattergeo/attributes":820}],831:[function(_dereq_,module,exports){
196539
197117
  'use strict';
196540
197118
 
196541
197119
  var isNumeric = _dereq_('fast-isnumeric');
@@ -196862,7 +197440,7 @@ function isBADNUM(lonlat) {
196862
197440
  return lonlat[0] === BADNUM;
196863
197441
  }
196864
197442
 
196865
- },{"../../components/colorscale":246,"../../components/drawing":256,"../../components/fx/helpers":270,"../../constants/numerical":347,"../../lib":371,"../../lib/geojson_utils":365,"../../lib/svg_text_utils":396,"../../plots/mapbox/convert_text_opts":479,"../scatter/make_bubble_size_func":794,"../scatter/subtypes":802,"fast-isnumeric":99}],831:[function(_dereq_,module,exports){
197443
+ },{"../../components/colorscale":246,"../../components/drawing":256,"../../components/fx/helpers":270,"../../constants/numerical":347,"../../lib":371,"../../lib/geojson_utils":365,"../../lib/svg_text_utils":396,"../../plots/mapbox/convert_text_opts":479,"../scatter/make_bubble_size_func":795,"../scatter/subtypes":803,"fast-isnumeric":99}],832:[function(_dereq_,module,exports){
196866
197444
  'use strict';
196867
197445
 
196868
197446
  var Lib = _dereq_('../../lib');
@@ -196932,7 +197510,7 @@ function handleLonLatDefaults(traceIn, traceOut, coerce) {
196932
197510
  return len;
196933
197511
  }
196934
197512
 
196935
- },{"../../lib":371,"../scatter/fillcolor_defaults":785,"../scatter/line_defaults":790,"../scatter/marker_defaults":796,"../scatter/subtypes":802,"../scatter/text_defaults":803,"./attributes":829}],832:[function(_dereq_,module,exports){
197513
+ },{"../../lib":371,"../scatter/fillcolor_defaults":786,"../scatter/line_defaults":791,"../scatter/marker_defaults":797,"../scatter/subtypes":803,"../scatter/text_defaults":804,"./attributes":830}],833:[function(_dereq_,module,exports){
196936
197514
  'use strict';
196937
197515
 
196938
197516
 
@@ -196943,7 +197521,7 @@ module.exports = function eventData(out, pt) {
196943
197521
  return out;
196944
197522
  };
196945
197523
 
196946
- },{}],833:[function(_dereq_,module,exports){
197524
+ },{}],834:[function(_dereq_,module,exports){
196947
197525
  'use strict';
196948
197526
 
196949
197527
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -196961,7 +197539,7 @@ module.exports = function formatLabels(cdi, trace, fullLayout) {
196961
197539
  return labels;
196962
197540
  };
196963
197541
 
196964
- },{"../../plots/cartesian/axes":421}],834:[function(_dereq_,module,exports){
197542
+ },{"../../plots/cartesian/axes":421}],835:[function(_dereq_,module,exports){
196965
197543
  'use strict';
196966
197544
 
196967
197545
  var Fx = _dereq_('../../components/fx');
@@ -197069,7 +197647,7 @@ module.exports = {
197069
197647
  getExtraText: getExtraText
197070
197648
  };
197071
197649
 
197072
- },{"../../components/fx":274,"../../constants/numerical":347,"../../lib":371,"../scatter/get_trace_color":787}],835:[function(_dereq_,module,exports){
197650
+ },{"../../components/fx":274,"../../constants/numerical":347,"../../lib":371,"../scatter/get_trace_color":788}],836:[function(_dereq_,module,exports){
197073
197651
  'use strict';
197074
197652
 
197075
197653
  module.exports = {
@@ -197098,7 +197676,7 @@ module.exports = {
197098
197676
  }
197099
197677
  };
197100
197678
 
197101
- },{"../../plots/mapbox":480,"../scatter/marker_colorbar":795,"../scattergeo/calc":820,"./attributes":829,"./defaults":831,"./event_data":832,"./format_labels":833,"./hover":834,"./plot":836,"./select":837}],836:[function(_dereq_,module,exports){
197679
+ },{"../../plots/mapbox":480,"../scatter/marker_colorbar":796,"../scattergeo/calc":821,"./attributes":830,"./defaults":832,"./event_data":833,"./format_labels":834,"./hover":835,"./plot":837,"./select":838}],837:[function(_dereq_,module,exports){
197102
197680
  'use strict';
197103
197681
 
197104
197682
  var convert = _dereq_('./convert');
@@ -197223,7 +197801,7 @@ module.exports = function createScatterMapbox(subplot, calcTrace) {
197223
197801
  return scatterMapbox;
197224
197802
  };
197225
197803
 
197226
- },{"../../plots/mapbox/constants":478,"./convert":830}],837:[function(_dereq_,module,exports){
197804
+ },{"../../plots/mapbox/constants":478,"./convert":831}],838:[function(_dereq_,module,exports){
197227
197805
  'use strict';
197228
197806
 
197229
197807
  var Lib = _dereq_('../../lib');
@@ -197270,7 +197848,7 @@ module.exports = function selectPoints(searchInfo, selectionTester) {
197270
197848
  return selection;
197271
197849
  };
197272
197850
 
197273
- },{"../../constants/numerical":347,"../../lib":371,"../scatter/subtypes":802}],838:[function(_dereq_,module,exports){
197851
+ },{"../../constants/numerical":347,"../../lib":371,"../scatter/subtypes":803}],839:[function(_dereq_,module,exports){
197274
197852
  'use strict';
197275
197853
 
197276
197854
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
@@ -197366,7 +197944,7 @@ module.exports = {
197366
197944
  unselected: scatterAttrs.unselected
197367
197945
  };
197368
197946
 
197369
- },{"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":777}],839:[function(_dereq_,module,exports){
197947
+ },{"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":778}],840:[function(_dereq_,module,exports){
197370
197948
  'use strict';
197371
197949
 
197372
197950
  var isNumeric = _dereq_('fast-isnumeric');
@@ -197412,7 +197990,7 @@ module.exports = function calc(gd, trace) {
197412
197990
  return cd;
197413
197991
  };
197414
197992
 
197415
- },{"../../constants/numerical":347,"../../plots/cartesian/axes":421,"../scatter/arrays_to_calcdata":776,"../scatter/calc":778,"../scatter/calc_selection":779,"../scatter/colorscale_calc":780,"fast-isnumeric":99}],840:[function(_dereq_,module,exports){
197993
+ },{"../../constants/numerical":347,"../../plots/cartesian/axes":421,"../scatter/arrays_to_calcdata":777,"../scatter/calc":779,"../scatter/calc_selection":780,"../scatter/colorscale_calc":781,"fast-isnumeric":99}],841:[function(_dereq_,module,exports){
197416
197994
  'use strict';
197417
197995
 
197418
197996
  var Lib = _dereq_('../../lib');
@@ -197511,7 +198089,7 @@ module.exports = {
197511
198089
  supplyDefaults: supplyDefaults
197512
198090
  };
197513
198091
 
197514
- },{"../../lib":371,"../scatter/constants":781,"../scatter/fillcolor_defaults":785,"../scatter/line_defaults":790,"../scatter/line_shape_defaults":792,"../scatter/marker_defaults":796,"../scatter/subtypes":802,"../scatter/text_defaults":803,"./attributes":838}],841:[function(_dereq_,module,exports){
198092
+ },{"../../lib":371,"../scatter/constants":782,"../scatter/fillcolor_defaults":786,"../scatter/line_defaults":791,"../scatter/line_shape_defaults":793,"../scatter/marker_defaults":797,"../scatter/subtypes":803,"../scatter/text_defaults":804,"./attributes":839}],842:[function(_dereq_,module,exports){
197515
198093
  'use strict';
197516
198094
 
197517
198095
  var Lib = _dereq_('../../lib');
@@ -197545,7 +198123,7 @@ module.exports = function formatLabels(cdi, trace, fullLayout) {
197545
198123
  return labels;
197546
198124
  };
197547
198125
 
197548
- },{"../../lib":371,"../../plots/cartesian/axes":421}],842:[function(_dereq_,module,exports){
198126
+ },{"../../lib":371,"../../plots/cartesian/axes":421}],843:[function(_dereq_,module,exports){
197549
198127
  'use strict';
197550
198128
 
197551
198129
  var scatterHover = _dereq_('../scatter/hover');
@@ -197613,7 +198191,7 @@ module.exports = {
197613
198191
  makeHoverPointText: makeHoverPointText
197614
198192
  };
197615
198193
 
197616
- },{"../scatter/hover":788}],843:[function(_dereq_,module,exports){
198194
+ },{"../scatter/hover":789}],844:[function(_dereq_,module,exports){
197617
198195
  'use strict';
197618
198196
 
197619
198197
  module.exports = {
@@ -197637,7 +198215,7 @@ module.exports = {
197637
198215
  }
197638
198216
  };
197639
198217
 
197640
- },{"../../plots/polar":489,"../scatter/marker_colorbar":795,"../scatter/select":799,"../scatter/style":801,"./attributes":838,"./calc":839,"./defaults":840,"./format_labels":841,"./hover":842,"./plot":844}],844:[function(_dereq_,module,exports){
198218
+ },{"../../plots/polar":489,"../scatter/marker_colorbar":796,"../scatter/select":800,"../scatter/style":802,"./attributes":839,"./calc":840,"./defaults":841,"./format_labels":842,"./hover":843,"./plot":845}],845:[function(_dereq_,module,exports){
197641
198219
  'use strict';
197642
198220
 
197643
198221
  var scatterPlot = _dereq_('../scatter/plot');
@@ -197679,7 +198257,7 @@ module.exports = function plot(gd, subplot, moduleCalcData) {
197679
198257
  scatterPlot(gd, plotinfo, moduleCalcData, mlayer);
197680
198258
  };
197681
198259
 
197682
- },{"../../constants/numerical":347,"../scatter/plot":798}],845:[function(_dereq_,module,exports){
198260
+ },{"../../constants/numerical":347,"../scatter/plot":799}],846:[function(_dereq_,module,exports){
197683
198261
  'use strict';
197684
198262
 
197685
198263
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
@@ -197771,7 +198349,7 @@ module.exports = {
197771
198349
  hovertemplate: hovertemplateAttrs(),
197772
198350
  };
197773
198351
 
197774
- },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":777}],846:[function(_dereq_,module,exports){
198352
+ },{"../../components/colorscale/attributes":241,"../../components/drawing/attributes":255,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/template_attributes":496,"../scatter/attributes":778}],847:[function(_dereq_,module,exports){
197775
198353
  'use strict';
197776
198354
 
197777
198355
  var isNumeric = _dereq_('fast-isnumeric');
@@ -197843,7 +198421,7 @@ module.exports = function calc(gd, trace) {
197843
198421
  return cd;
197844
198422
  };
197845
198423
 
197846
- },{"../scatter/arrays_to_calcdata":776,"../scatter/calc":778,"../scatter/calc_selection":779,"../scatter/colorscale_calc":780,"fast-isnumeric":99}],847:[function(_dereq_,module,exports){
198424
+ },{"../scatter/arrays_to_calcdata":777,"../scatter/calc":779,"../scatter/calc_selection":780,"../scatter/colorscale_calc":781,"fast-isnumeric":99}],848:[function(_dereq_,module,exports){
197847
198425
  'use strict';
197848
198426
 
197849
198427
  var Lib = _dereq_('../../lib');
@@ -197938,7 +198516,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
197938
198516
  Lib.coerceSelectionMarkerOpacity(traceOut, coerce);
197939
198517
  };
197940
198518
 
197941
- },{"../../lib":371,"../scatter/constants":781,"../scatter/fillcolor_defaults":785,"../scatter/line_defaults":790,"../scatter/line_shape_defaults":792,"../scatter/marker_defaults":796,"../scatter/subtypes":802,"../scatter/text_defaults":803,"./attributes":845}],848:[function(_dereq_,module,exports){
198519
+ },{"../../lib":371,"../scatter/constants":782,"../scatter/fillcolor_defaults":786,"../scatter/line_defaults":791,"../scatter/line_shape_defaults":793,"../scatter/marker_defaults":797,"../scatter/subtypes":803,"../scatter/text_defaults":804,"./attributes":846}],849:[function(_dereq_,module,exports){
197942
198520
  'use strict';
197943
198521
 
197944
198522
  module.exports = function eventData(out, pt, trace, cd, pointNumber) {
@@ -197962,7 +198540,7 @@ module.exports = function eventData(out, pt, trace, cd, pointNumber) {
197962
198540
  return out;
197963
198541
  };
197964
198542
 
197965
- },{}],849:[function(_dereq_,module,exports){
198543
+ },{}],850:[function(_dereq_,module,exports){
197966
198544
  'use strict';
197967
198545
 
197968
198546
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -197978,7 +198556,7 @@ module.exports = function formatLabels(cdi, trace, fullLayout) {
197978
198556
  return labels;
197979
198557
  };
197980
198558
 
197981
- },{"../../plots/cartesian/axes":421}],850:[function(_dereq_,module,exports){
198559
+ },{"../../plots/cartesian/axes":421}],851:[function(_dereq_,module,exports){
197982
198560
  'use strict';
197983
198561
 
197984
198562
  var scatterHover = _dereq_('../scatter/hover');
@@ -198044,7 +198622,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) {
198044
198622
  return scatterPointData;
198045
198623
  };
198046
198624
 
198047
- },{"../scatter/hover":788}],851:[function(_dereq_,module,exports){
198625
+ },{"../scatter/hover":789}],852:[function(_dereq_,module,exports){
198048
198626
  'use strict';
198049
198627
 
198050
198628
  module.exports = {
@@ -198068,7 +198646,7 @@ module.exports = {
198068
198646
  }
198069
198647
  };
198070
198648
 
198071
- },{"../../plots/ternary":497,"../scatter/marker_colorbar":795,"../scatter/select":799,"../scatter/style":801,"./attributes":845,"./calc":846,"./defaults":847,"./event_data":848,"./format_labels":849,"./hover":850,"./plot":852}],852:[function(_dereq_,module,exports){
198649
+ },{"../../plots/ternary":497,"../scatter/marker_colorbar":796,"../scatter/select":800,"../scatter/style":802,"./attributes":846,"./calc":847,"./defaults":848,"./event_data":849,"./format_labels":850,"./hover":851,"./plot":853}],853:[function(_dereq_,module,exports){
198072
198650
  'use strict';
198073
198651
 
198074
198652
  var scatterPlot = _dereq_('../scatter/plot');
@@ -198092,7 +198670,7 @@ module.exports = function plot(gd, ternary, moduleCalcData) {
198092
198670
  scatterPlot(gd, plotinfo, moduleCalcData, scatterLayer);
198093
198671
  };
198094
198672
 
198095
- },{"../scatter/plot":798}],853:[function(_dereq_,module,exports){
198673
+ },{"../scatter/plot":799}],854:[function(_dereq_,module,exports){
198096
198674
  'use strict';
198097
198675
 
198098
198676
  var colorScaleAttrs = _dereq_('../../components/colorscale/attributes');
@@ -198224,7 +198802,7 @@ attrs.transforms = undefined;
198224
198802
 
198225
198803
  module.exports = attrs;
198226
198804
 
198227
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../mesh3d/attributes":729}],854:[function(_dereq_,module,exports){
198805
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../mesh3d/attributes":730}],855:[function(_dereq_,module,exports){
198228
198806
  'use strict';
198229
198807
 
198230
198808
  var Lib = _dereq_('../../lib');
@@ -198472,7 +199050,7 @@ module.exports = {
198472
199050
  processGrid: processGrid
198473
199051
  };
198474
199052
 
198475
- },{"../../components/colorscale/calc":242,"../../lib":371}],855:[function(_dereq_,module,exports){
199053
+ },{"../../components/colorscale/calc":242,"../../lib":371}],856:[function(_dereq_,module,exports){
198476
199054
  'use strict';
198477
199055
 
198478
199056
  var tube2mesh = _dereq_('../../../stackgl_modules').gl_streamtube3d;
@@ -198690,7 +199268,7 @@ function createStreamtubeTrace(scene, data) {
198690
199268
 
198691
199269
  module.exports = createStreamtubeTrace;
198692
199270
 
198693
- },{"../../../stackgl_modules":933,"../../components/colorscale":246,"../../lib":371,"../../lib/gl_format_color":367,"../../plots/gl3d/zip3":476}],856:[function(_dereq_,module,exports){
199271
+ },{"../../../stackgl_modules":934,"../../components/colorscale":246,"../../lib":371,"../../lib/gl_format_color":367,"../../plots/gl3d/zip3":476}],857:[function(_dereq_,module,exports){
198694
199272
  'use strict';
198695
199273
 
198696
199274
  var Lib = _dereq_('../../lib');
@@ -198753,7 +199331,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
198753
199331
  traceOut._length = null;
198754
199332
  };
198755
199333
 
198756
- },{"../../components/colorscale/defaults":244,"../../lib":371,"./attributes":853}],857:[function(_dereq_,module,exports){
199334
+ },{"../../components/colorscale/defaults":244,"../../lib":371,"./attributes":854}],858:[function(_dereq_,module,exports){
198757
199335
  'use strict';
198758
199336
 
198759
199337
  module.exports = {
@@ -198794,7 +199372,7 @@ module.exports = {
198794
199372
  }
198795
199373
  };
198796
199374
 
198797
- },{"../../plots/gl3d":465,"./attributes":853,"./calc":854,"./convert":855,"./defaults":856}],858:[function(_dereq_,module,exports){
199375
+ },{"../../plots/gl3d":465,"./attributes":854,"./calc":855,"./convert":856,"./defaults":857}],859:[function(_dereq_,module,exports){
198798
199376
  'use strict';
198799
199377
 
198800
199378
  var baseAttrs = _dereq_('../../plots/attributes');
@@ -198947,7 +199525,7 @@ module.exports = {
198947
199525
  domain: domainAttrs({name: 'sunburst', trace: true, editType: 'calc'})
198948
199526
  };
198949
199527
 
198950
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":751,"./constants":861}],859:[function(_dereq_,module,exports){
199528
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":752,"./constants":862}],860:[function(_dereq_,module,exports){
198951
199529
  'use strict';
198952
199530
 
198953
199531
  var plots = _dereq_('../../plots/plots');
@@ -198962,7 +199540,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
198962
199540
  plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);
198963
199541
  };
198964
199542
 
198965
- },{"../../plots/plots":486}],860:[function(_dereq_,module,exports){
199543
+ },{"../../plots/plots":486}],861:[function(_dereq_,module,exports){
198966
199544
  'use strict';
198967
199545
 
198968
199546
  var d3Hierarchy = _dereq_('d3-hierarchy');
@@ -199283,7 +199861,7 @@ function countDescendants(node, trace, opts) {
199283
199861
  return nChild;
199284
199862
  }
199285
199863
 
199286
- },{"../../components/colorscale":246,"../../constants/numerical":347,"../../lib":371,"../pie/calc":753,"d3-hierarchy":87,"fast-isnumeric":99}],861:[function(_dereq_,module,exports){
199864
+ },{"../../components/colorscale":246,"../../constants/numerical":347,"../../lib":371,"../pie/calc":754,"d3-hierarchy":87,"fast-isnumeric":99}],862:[function(_dereq_,module,exports){
199287
199865
  'use strict';
199288
199866
 
199289
199867
  module.exports = {
@@ -199303,7 +199881,7 @@ module.exports = {
199303
199881
  ]
199304
199882
  };
199305
199883
 
199306
- },{}],862:[function(_dereq_,module,exports){
199884
+ },{}],863:[function(_dereq_,module,exports){
199307
199885
  'use strict';
199308
199886
 
199309
199887
  var Lib = _dereq_('../../lib');
@@ -199383,7 +199961,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
199383
199961
  traceOut._length = null;
199384
199962
  };
199385
199963
 
199386
- },{"../../components/colorscale":246,"../../lib":371,"../../plots/domain":451,"../bar/defaults":515,"./attributes":858}],863:[function(_dereq_,module,exports){
199964
+ },{"../../components/colorscale":246,"../../lib":371,"../../plots/domain":451,"../bar/defaults":515,"./attributes":859}],864:[function(_dereq_,module,exports){
199387
199965
  'use strict';
199388
199966
 
199389
199967
  var d3 = _dereq_('@plotly/d3');
@@ -199699,7 +200277,7 @@ function makeEventData(pt, trace, keys) {
199699
200277
  return out;
199700
200278
  }
199701
200279
 
199702
- },{"../../components/fx":274,"../../components/fx/helpers":270,"../../lib":371,"../../lib/events":360,"../../registry":501,"../pie/helpers":756,"./helpers":864,"@plotly/d3":53}],864:[function(_dereq_,module,exports){
200280
+ },{"../../components/fx":274,"../../components/fx/helpers":270,"../../lib":371,"../../lib/events":360,"../../registry":501,"../pie/helpers":757,"./helpers":865,"@plotly/d3":53}],865:[function(_dereq_,module,exports){
199703
200281
  'use strict';
199704
200282
 
199705
200283
  var Lib = _dereq_('../../lib');
@@ -199876,7 +200454,7 @@ exports.formatPercent = function(v, separators) {
199876
200454
  return tx;
199877
200455
  };
199878
200456
 
199879
- },{"../../components/color":234,"../../lib":371,"../../lib/setcursor":391,"../pie/helpers":756}],865:[function(_dereq_,module,exports){
200457
+ },{"../../components/color":234,"../../lib":371,"../../lib/setcursor":391,"../pie/helpers":757}],866:[function(_dereq_,module,exports){
199880
200458
  'use strict';
199881
200459
 
199882
200460
  module.exports = {
@@ -199903,7 +200481,7 @@ module.exports = {
199903
200481
  }
199904
200482
  };
199905
200483
 
199906
- },{"../scatter/marker_colorbar":795,"./attributes":858,"./base_plot":859,"./calc":860,"./defaults":862,"./layout_attributes":866,"./layout_defaults":867,"./plot":868,"./style":869}],866:[function(_dereq_,module,exports){
200484
+ },{"../scatter/marker_colorbar":796,"./attributes":859,"./base_plot":860,"./calc":861,"./defaults":863,"./layout_attributes":867,"./layout_defaults":868,"./plot":869,"./style":870}],867:[function(_dereq_,module,exports){
199907
200485
  'use strict';
199908
200486
 
199909
200487
  module.exports = {
@@ -199918,7 +200496,7 @@ module.exports = {
199918
200496
  }
199919
200497
  };
199920
200498
 
199921
- },{}],867:[function(_dereq_,module,exports){
200499
+ },{}],868:[function(_dereq_,module,exports){
199922
200500
  'use strict';
199923
200501
 
199924
200502
  var Lib = _dereq_('../../lib');
@@ -199932,7 +200510,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
199932
200510
  coerce('extendsunburstcolors');
199933
200511
  };
199934
200512
 
199935
- },{"../../lib":371,"./layout_attributes":866}],868:[function(_dereq_,module,exports){
200513
+ },{"../../lib":371,"./layout_attributes":867}],869:[function(_dereq_,module,exports){
199936
200514
  'use strict';
199937
200515
 
199938
200516
  var d3 = _dereq_('@plotly/d3');
@@ -200567,7 +201145,7 @@ function getCoords(r, angle) {
200567
201145
  return [r * Math.sin(angle), -r * Math.cos(angle)];
200568
201146
  }
200569
201147
 
200570
- },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../bar/style":525,"../bar/uniform_text":527,"../pie/helpers":756,"../pie/plot":760,"./constants":861,"./fx":863,"./helpers":864,"./style":869,"@plotly/d3":53,"d3-hierarchy":87,"d3-interpolate":88}],869:[function(_dereq_,module,exports){
201148
+ },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../bar/style":525,"../bar/uniform_text":527,"../pie/helpers":757,"../pie/plot":761,"./constants":862,"./fx":864,"./helpers":865,"./style":870,"@plotly/d3":53,"d3-hierarchy":87,"d3-interpolate":88}],870:[function(_dereq_,module,exports){
200571
201149
  'use strict';
200572
201150
 
200573
201151
  var d3 = _dereq_('@plotly/d3');
@@ -200610,7 +201188,7 @@ module.exports = {
200610
201188
  styleOne: styleOne
200611
201189
  };
200612
201190
 
200613
- },{"../../components/color":234,"../../lib":371,"../bar/uniform_text":527,"@plotly/d3":53}],870:[function(_dereq_,module,exports){
201191
+ },{"../../components/color":234,"../../lib":371,"../bar/uniform_text":527,"@plotly/d3":53}],871:[function(_dereq_,module,exports){
200614
201192
  'use strict';
200615
201193
 
200616
201194
  var Color = _dereq_('../../components/color');
@@ -200826,7 +201404,7 @@ colorScaleAttrs('', {
200826
201404
  attrs.x.editType = attrs.y.editType = attrs.z.editType = 'calc+clearAxisTypes';
200827
201405
  attrs.transforms = undefined;
200828
201406
 
200829
- },{"../../components/color":234,"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496}],871:[function(_dereq_,module,exports){
201407
+ },{"../../components/color":234,"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496}],872:[function(_dereq_,module,exports){
200830
201408
  'use strict';
200831
201409
 
200832
201410
  var colorscaleCalc = _dereq_('../../components/colorscale/calc');
@@ -200849,7 +201427,7 @@ module.exports = function calc(gd, trace) {
200849
201427
  }
200850
201428
  };
200851
201429
 
200852
- },{"../../components/colorscale/calc":242}],872:[function(_dereq_,module,exports){
201430
+ },{"../../components/colorscale/calc":242}],873:[function(_dereq_,module,exports){
200853
201431
  'use strict';
200854
201432
 
200855
201433
  var createSurface = _dereq_('../../../stackgl_modules').gl_surface3d;
@@ -201540,7 +202118,7 @@ function createSurfaceTrace(scene, data) {
201540
202118
 
201541
202119
  module.exports = createSurfaceTrace;
201542
202120
 
201543
- },{"../../../stackgl_modules":933,"../../components/colorscale":246,"../../lib":371,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../heatmap/find_empties":661,"../heatmap/interp2d":664}],873:[function(_dereq_,module,exports){
202121
+ },{"../../../stackgl_modules":934,"../../components/colorscale":246,"../../lib":371,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../heatmap/find_empties":661,"../heatmap/interp2d":664}],874:[function(_dereq_,module,exports){
201544
202122
  'use strict';
201545
202123
 
201546
202124
  var Registry = _dereq_('../../registry');
@@ -201709,7 +202287,7 @@ module.exports = {
201709
202287
  opacityscaleDefaults: opacityscaleDefaults
201710
202288
  };
201711
202289
 
201712
- },{"../../components/colorscale/defaults":244,"../../lib":371,"../../registry":501,"./attributes":870}],874:[function(_dereq_,module,exports){
202290
+ },{"../../components/colorscale/defaults":244,"../../lib":371,"../../registry":501,"./attributes":871}],875:[function(_dereq_,module,exports){
201713
202291
  'use strict';
201714
202292
 
201715
202293
  module.exports = {
@@ -201730,7 +202308,7 @@ module.exports = {
201730
202308
  }
201731
202309
  };
201732
202310
 
201733
- },{"../../plots/gl3d":465,"./attributes":870,"./calc":871,"./convert":872,"./defaults":873}],875:[function(_dereq_,module,exports){
202311
+ },{"../../plots/gl3d":465,"./attributes":871,"./calc":872,"./convert":873,"./defaults":874}],876:[function(_dereq_,module,exports){
201734
202312
  'use strict';
201735
202313
 
201736
202314
  var annAttrs = _dereq_('../../components/annotations/attributes');
@@ -201867,7 +202445,7 @@ var attrs = module.exports = overrideAll({
201867
202445
  }, 'calc', 'from-root');
201868
202446
  attrs.transforms = undefined;
201869
202447
 
201870
- },{"../../components/annotations/attributes":217,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/cartesian/axis_format_attributes":424,"../../plots/domain":451,"../../plots/font_attributes":452}],876:[function(_dereq_,module,exports){
202448
+ },{"../../components/annotations/attributes":217,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/cartesian/axis_format_attributes":424,"../../plots/domain":451,"../../plots/font_attributes":452}],877:[function(_dereq_,module,exports){
201871
202449
  'use strict';
201872
202450
 
201873
202451
  var getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;
@@ -201891,7 +202469,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
201891
202469
  }
201892
202470
  };
201893
202471
 
201894
- },{"../../plots/get_data":460,"./plot":883}],877:[function(_dereq_,module,exports){
202472
+ },{"../../plots/get_data":460,"./plot":884}],878:[function(_dereq_,module,exports){
201895
202473
  'use strict';
201896
202474
 
201897
202475
  var wrap = _dereq_('../../lib/gup').wrap;
@@ -201902,7 +202480,7 @@ module.exports = function calc() {
201902
202480
  return wrap({});
201903
202481
  };
201904
202482
 
201905
- },{"../../lib/gup":368}],878:[function(_dereq_,module,exports){
202483
+ },{"../../lib/gup":368}],879:[function(_dereq_,module,exports){
201906
202484
  'use strict';
201907
202485
 
201908
202486
  module.exports = {
@@ -201954,7 +202532,7 @@ module.exports = {
201954
202532
  }
201955
202533
  };
201956
202534
 
201957
- },{}],879:[function(_dereq_,module,exports){
202535
+ },{}],880:[function(_dereq_,module,exports){
201958
202536
  'use strict';
201959
202537
 
201960
202538
  var c = _dereq_('./constants');
@@ -202141,7 +202719,7 @@ function makeIdentity() {
202141
202719
  };
202142
202720
  }
202143
202721
 
202144
- },{"../../lib/extend":361,"./constants":878,"fast-isnumeric":99}],880:[function(_dereq_,module,exports){
202722
+ },{"../../lib/extend":361,"./constants":879,"fast-isnumeric":99}],881:[function(_dereq_,module,exports){
202145
202723
  'use strict';
202146
202724
 
202147
202725
  var extendFlat = _dereq_('../../lib/extend').extendFlat;
@@ -202216,7 +202794,7 @@ function rowFromTo(d) {
202216
202794
  return [rowFrom, rowTo];
202217
202795
  }
202218
202796
 
202219
- },{"../../lib/extend":361}],881:[function(_dereq_,module,exports){
202797
+ },{"../../lib/extend":361}],882:[function(_dereq_,module,exports){
202220
202798
  'use strict';
202221
202799
 
202222
202800
  var Lib = _dereq_('../../lib');
@@ -202273,7 +202851,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
202273
202851
  traceOut._length = null;
202274
202852
  };
202275
202853
 
202276
- },{"../../lib":371,"../../plots/domain":451,"./attributes":875}],882:[function(_dereq_,module,exports){
202854
+ },{"../../lib":371,"../../plots/domain":451,"./attributes":876}],883:[function(_dereq_,module,exports){
202277
202855
  'use strict';
202278
202856
 
202279
202857
  module.exports = {
@@ -202290,7 +202868,7 @@ module.exports = {
202290
202868
  }
202291
202869
  };
202292
202870
 
202293
- },{"./attributes":875,"./base_plot":876,"./calc":877,"./defaults":881,"./plot":883}],883:[function(_dereq_,module,exports){
202871
+ },{"./attributes":876,"./base_plot":877,"./calc":878,"./defaults":882,"./plot":884}],884:[function(_dereq_,module,exports){
202294
202872
  'use strict';
202295
202873
 
202296
202874
  var c = _dereq_('./constants');
@@ -203181,7 +203759,7 @@ function allRowsHeight(rowBlock) {
203181
203759
  function getBlock(d) {return d.rowBlocks[d.page];}
203182
203760
  function getRow(l, i) {return l.rows[i - l.firstRowIndex];}
203183
203761
 
203184
- },{"../../components/color":234,"../../components/drawing":256,"../../lib":371,"../../lib/gup":368,"../../lib/svg_text_utils":396,"./constants":878,"./data_preparation_helper":879,"./data_split_helpers":880,"@plotly/d3":53}],884:[function(_dereq_,module,exports){
203762
+ },{"../../components/color":234,"../../components/drawing":256,"../../lib":371,"../../lib/gup":368,"../../lib/svg_text_utils":396,"./constants":879,"./data_preparation_helper":880,"./data_split_helpers":881,"@plotly/d3":53}],885:[function(_dereq_,module,exports){
203185
203763
  'use strict';
203186
203764
 
203187
203765
  var hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;
@@ -203367,7 +203945,7 @@ module.exports = {
203367
203945
  domain: domainAttrs({name: 'treemap', trace: true, editType: 'calc'}),
203368
203946
  };
203369
203947
 
203370
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":751,"../sunburst/attributes":858,"./constants":887}],885:[function(_dereq_,module,exports){
203948
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plots/domain":451,"../../plots/template_attributes":496,"../pie/attributes":752,"../sunburst/attributes":859,"./constants":888}],886:[function(_dereq_,module,exports){
203371
203949
  'use strict';
203372
203950
 
203373
203951
  var plots = _dereq_('../../plots/plots');
@@ -203382,7 +203960,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
203382
203960
  plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);
203383
203961
  };
203384
203962
 
203385
- },{"../../plots/plots":486}],886:[function(_dereq_,module,exports){
203963
+ },{"../../plots/plots":486}],887:[function(_dereq_,module,exports){
203386
203964
  'use strict';
203387
203965
 
203388
203966
  var calc = _dereq_('../sunburst/calc');
@@ -203395,7 +203973,7 @@ exports.crossTraceCalc = function(gd) {
203395
203973
  return calc._runCrossTraceCalc('treemap', gd);
203396
203974
  };
203397
203975
 
203398
- },{"../sunburst/calc":860}],887:[function(_dereq_,module,exports){
203976
+ },{"../sunburst/calc":861}],888:[function(_dereq_,module,exports){
203399
203977
  'use strict';
203400
203978
 
203401
203979
  module.exports = {
@@ -203416,7 +203994,7 @@ module.exports = {
203416
203994
  gapWithPathbar: 1 // i.e. one pixel
203417
203995
  };
203418
203996
 
203419
- },{}],888:[function(_dereq_,module,exports){
203997
+ },{}],889:[function(_dereq_,module,exports){
203420
203998
  'use strict';
203421
203999
 
203422
204000
  var Lib = _dereq_('../../lib');
@@ -203531,7 +204109,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
203531
204109
  traceOut._length = null;
203532
204110
  };
203533
204111
 
203534
- },{"../../components/color":234,"../../components/colorscale":246,"../../lib":371,"../../plots/domain":451,"../bar/constants":513,"../bar/defaults":515,"./attributes":884}],889:[function(_dereq_,module,exports){
204112
+ },{"../../components/color":234,"../../components/colorscale":246,"../../lib":371,"../../plots/domain":451,"../bar/constants":513,"../bar/defaults":515,"./attributes":885}],890:[function(_dereq_,module,exports){
203535
204113
  'use strict';
203536
204114
 
203537
204115
  var d3 = _dereq_('@plotly/d3');
@@ -203602,7 +204180,7 @@ module.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCall
203602
204180
  }
203603
204181
  };
203604
204182
 
203605
- },{"../bar/style":525,"../bar/uniform_text":527,"../sunburst/helpers":864,"./plot_one":898,"@plotly/d3":53}],890:[function(_dereq_,module,exports){
204183
+ },{"../bar/style":525,"../bar/uniform_text":527,"../sunburst/helpers":865,"./plot_one":899,"@plotly/d3":53}],891:[function(_dereq_,module,exports){
203606
204184
  'use strict';
203607
204185
 
203608
204186
  var d3 = _dereq_('@plotly/d3');
@@ -203772,7 +204350,7 @@ module.exports = function drawAncestors(gd, cd, entry, slices, opts) {
203772
204350
  });
203773
204351
  };
203774
204352
 
203775
- },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../sunburst/fx":863,"../sunburst/helpers":864,"./constants":887,"./partition":896,"./style":899,"@plotly/d3":53}],891:[function(_dereq_,module,exports){
204353
+ },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../sunburst/fx":864,"../sunburst/helpers":865,"./constants":888,"./partition":897,"./style":900,"@plotly/d3":53}],892:[function(_dereq_,module,exports){
203776
204354
  'use strict';
203777
204355
 
203778
204356
  var d3 = _dereq_('@plotly/d3');
@@ -203983,7 +204561,7 @@ module.exports = function drawDescendants(gd, cd, entry, slices, opts) {
203983
204561
  return nextOfPrevEntry;
203984
204562
  };
203985
204563
 
203986
- },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../sunburst/fx":863,"../sunburst/helpers":864,"../sunburst/plot":868,"./constants":887,"./partition":896,"./style":899,"@plotly/d3":53}],892:[function(_dereq_,module,exports){
204564
+ },{"../../components/drawing":256,"../../lib":371,"../../lib/svg_text_utils":396,"../sunburst/fx":864,"../sunburst/helpers":865,"../sunburst/plot":869,"./constants":888,"./partition":897,"./style":900,"@plotly/d3":53}],893:[function(_dereq_,module,exports){
203987
204565
  'use strict';
203988
204566
 
203989
204567
  module.exports = function flipTree(node, size, opts) {
@@ -204021,7 +204599,7 @@ module.exports = function flipTree(node, size, opts) {
204021
204599
  }
204022
204600
  };
204023
204601
 
204024
- },{}],893:[function(_dereq_,module,exports){
204602
+ },{}],894:[function(_dereq_,module,exports){
204025
204603
  'use strict';
204026
204604
 
204027
204605
  module.exports = {
@@ -204048,7 +204626,7 @@ module.exports = {
204048
204626
  }
204049
204627
  };
204050
204628
 
204051
- },{"../scatter/marker_colorbar":795,"./attributes":884,"./base_plot":885,"./calc":886,"./defaults":888,"./layout_attributes":894,"./layout_defaults":895,"./plot":897,"./style":899}],894:[function(_dereq_,module,exports){
204629
+ },{"../scatter/marker_colorbar":796,"./attributes":885,"./base_plot":886,"./calc":887,"./defaults":889,"./layout_attributes":895,"./layout_defaults":896,"./plot":898,"./style":900}],895:[function(_dereq_,module,exports){
204052
204630
  'use strict';
204053
204631
 
204054
204632
  module.exports = {
@@ -204063,7 +204641,7 @@ module.exports = {
204063
204641
  }
204064
204642
  };
204065
204643
 
204066
- },{}],895:[function(_dereq_,module,exports){
204644
+ },{}],896:[function(_dereq_,module,exports){
204067
204645
  'use strict';
204068
204646
 
204069
204647
  var Lib = _dereq_('../../lib');
@@ -204077,7 +204655,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
204077
204655
  coerce('extendtreemapcolors');
204078
204656
  };
204079
204657
 
204080
- },{"../../lib":371,"./layout_attributes":894}],896:[function(_dereq_,module,exports){
204658
+ },{"../../lib":371,"./layout_attributes":895}],897:[function(_dereq_,module,exports){
204081
204659
  'use strict';
204082
204660
 
204083
204661
  var d3Hierarchy = _dereq_('d3-hierarchy');
@@ -204141,7 +204719,7 @@ function getTilingMethod(key, squarifyratio) {
204141
204719
  }
204142
204720
  }
204143
204721
 
204144
- },{"./flip_tree":892,"d3-hierarchy":87}],897:[function(_dereq_,module,exports){
204722
+ },{"./flip_tree":893,"d3-hierarchy":87}],898:[function(_dereq_,module,exports){
204145
204723
  'use strict';
204146
204724
 
204147
204725
  var draw = _dereq_('./draw');
@@ -204154,7 +204732,7 @@ module.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCall
204154
204732
  });
204155
204733
  };
204156
204734
 
204157
- },{"./draw":889,"./draw_descendants":891}],898:[function(_dereq_,module,exports){
204735
+ },{"./draw":890,"./draw_descendants":892}],899:[function(_dereq_,module,exports){
204158
204736
  'use strict';
204159
204737
 
204160
204738
  var d3 = _dereq_('@plotly/d3');
@@ -204746,7 +205324,7 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
204746
205324
  }
204747
205325
  };
204748
205326
 
204749
- },{"../../lib":371,"../bar/constants":513,"../bar/plot":522,"../bar/uniform_text":527,"../sunburst/helpers":864,"./constants":887,"./draw_ancestors":890,"@plotly/d3":53,"d3-interpolate":88}],899:[function(_dereq_,module,exports){
205327
+ },{"../../lib":371,"../bar/constants":513,"../bar/plot":522,"../bar/uniform_text":527,"../sunburst/helpers":865,"./constants":888,"./draw_ancestors":891,"@plotly/d3":53,"d3-interpolate":88}],900:[function(_dereq_,module,exports){
204750
205328
  'use strict';
204751
205329
 
204752
205330
  var d3 = _dereq_('@plotly/d3');
@@ -204840,7 +205418,7 @@ module.exports = {
204840
205418
  styleOne: styleOne
204841
205419
  };
204842
205420
 
204843
- },{"../../components/color":234,"../../lib":371,"../bar/uniform_text":527,"../sunburst/helpers":864,"@plotly/d3":53}],900:[function(_dereq_,module,exports){
205421
+ },{"../../components/color":234,"../../lib":371,"../bar/uniform_text":527,"../sunburst/helpers":865,"@plotly/d3":53}],901:[function(_dereq_,module,exports){
204844
205422
  'use strict';
204845
205423
 
204846
205424
  var boxAttrs = _dereq_('../box/attributes');
@@ -204996,7 +205574,7 @@ module.exports = {
204996
205574
  }
204997
205575
  };
204998
205576
 
204999
- },{"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../box/attributes":536}],901:[function(_dereq_,module,exports){
205577
+ },{"../../lib/extend":361,"../../plots/cartesian/axis_format_attributes":424,"../box/attributes":536}],902:[function(_dereq_,module,exports){
205000
205578
  'use strict';
205001
205579
 
205002
205580
  var Lib = _dereq_('../../lib');
@@ -205164,7 +205742,7 @@ function calcSpan(trace, cdi, valAxis, bandwidth) {
205164
205742
  return spanOut;
205165
205743
  }
205166
205744
 
205167
- },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/axes":421,"../box/calc":537,"./helpers":904}],902:[function(_dereq_,module,exports){
205745
+ },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/axes":421,"../box/calc":537,"./helpers":905}],903:[function(_dereq_,module,exports){
205168
205746
  'use strict';
205169
205747
 
205170
205748
  var setPositionOffset = _dereq_('../box/cross_trace_calc').setPositionOffset;
@@ -205199,7 +205777,7 @@ module.exports = function crossTraceCalc(gd, plotinfo) {
205199
205777
  }
205200
205778
  };
205201
205779
 
205202
- },{"../box/cross_trace_calc":538}],903:[function(_dereq_,module,exports){
205780
+ },{"../box/cross_trace_calc":538}],904:[function(_dereq_,module,exports){
205203
205781
  'use strict';
205204
205782
 
205205
205783
  var Lib = _dereq_('../../lib');
@@ -205252,7 +205830,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
205252
205830
  if(!meanLineVisible) traceOut.meanline = {visible: false};
205253
205831
  };
205254
205832
 
205255
- },{"../../components/color":234,"../../lib":371,"../box/defaults":539,"./attributes":900}],904:[function(_dereq_,module,exports){
205833
+ },{"../../components/color":234,"../../lib":371,"../box/defaults":539,"./attributes":901}],905:[function(_dereq_,module,exports){
205256
205834
  'use strict';
205257
205835
 
205258
205836
  var Lib = _dereq_('../../lib');
@@ -205317,7 +205895,7 @@ exports.getKdeValue = function(calcItem, trace, valueDist) {
205317
205895
 
205318
205896
  exports.extractVal = function(o) { return o.v; };
205319
205897
 
205320
- },{"../../lib":371}],905:[function(_dereq_,module,exports){
205898
+ },{"../../lib":371}],906:[function(_dereq_,module,exports){
205321
205899
  'use strict';
205322
205900
 
205323
205901
  var Lib = _dereq_('../../lib');
@@ -205424,7 +206002,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {
205424
206002
  return closeData;
205425
206003
  };
205426
206004
 
205427
- },{"../../lib":371,"../../plots/cartesian/axes":421,"../box/hover":541,"./helpers":904}],906:[function(_dereq_,module,exports){
206005
+ },{"../../lib":371,"../../plots/cartesian/axes":421,"../box/hover":541,"./helpers":905}],907:[function(_dereq_,module,exports){
205428
206006
  'use strict';
205429
206007
 
205430
206008
  module.exports = {
@@ -205449,7 +206027,7 @@ module.exports = {
205449
206027
  }
205450
206028
  };
205451
206029
 
205452
- },{"../../plots/cartesian":435,"../box/defaults":539,"../box/select":546,"../scatter/style":801,"./attributes":900,"./calc":901,"./cross_trace_calc":902,"./defaults":903,"./hover":905,"./layout_attributes":907,"./layout_defaults":908,"./plot":909,"./style":910}],907:[function(_dereq_,module,exports){
206030
+ },{"../../plots/cartesian":435,"../box/defaults":539,"../box/select":546,"../scatter/style":802,"./attributes":901,"./calc":902,"./cross_trace_calc":903,"./defaults":904,"./hover":906,"./layout_attributes":908,"./layout_defaults":909,"./plot":910,"./style":911}],908:[function(_dereq_,module,exports){
205453
206031
  'use strict';
205454
206032
 
205455
206033
  var boxLayoutAttrs = _dereq_('../box/layout_attributes');
@@ -205464,7 +206042,7 @@ module.exports = {
205464
206042
  })
205465
206043
  };
205466
206044
 
205467
- },{"../../lib":371,"../box/layout_attributes":543}],908:[function(_dereq_,module,exports){
206045
+ },{"../../lib":371,"../box/layout_attributes":543}],909:[function(_dereq_,module,exports){
205468
206046
  'use strict';
205469
206047
 
205470
206048
  var Lib = _dereq_('../../lib');
@@ -205478,7 +206056,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {
205478
206056
  boxLayoutDefaults._supply(layoutIn, layoutOut, fullData, coerce, 'violin');
205479
206057
  };
205480
206058
 
205481
- },{"../../lib":371,"../box/layout_defaults":544,"./layout_attributes":907}],909:[function(_dereq_,module,exports){
206059
+ },{"../../lib":371,"../box/layout_defaults":544,"./layout_attributes":908}],910:[function(_dereq_,module,exports){
205482
206060
  'use strict';
205483
206061
 
205484
206062
  var d3 = _dereq_('@plotly/d3');
@@ -205660,7 +206238,7 @@ module.exports = function plot(gd, plotinfo, cdViolins, violinLayer) {
205660
206238
  });
205661
206239
  };
205662
206240
 
205663
- },{"../../components/drawing":256,"../../lib":371,"../box/plot":545,"../scatter/line_points":791,"./helpers":904,"@plotly/d3":53}],910:[function(_dereq_,module,exports){
206241
+ },{"../../components/drawing":256,"../../lib":371,"../box/plot":545,"../scatter/line_points":792,"./helpers":905,"@plotly/d3":53}],911:[function(_dereq_,module,exports){
205664
206242
  'use strict';
205665
206243
 
205666
206244
  var d3 = _dereq_('@plotly/d3');
@@ -205707,7 +206285,7 @@ module.exports = function style(gd) {
205707
206285
  });
205708
206286
  };
205709
206287
 
205710
- },{"../../components/color":234,"../scatter/style":801,"@plotly/d3":53}],911:[function(_dereq_,module,exports){
206288
+ },{"../../components/color":234,"../scatter/style":802,"@plotly/d3":53}],912:[function(_dereq_,module,exports){
205711
206289
  'use strict';
205712
206290
 
205713
206291
  var colorScaleAttrs = _dereq_('../../components/colorscale/attributes');
@@ -205772,7 +206350,7 @@ colorScaleAttrs('', {
205772
206350
  attrs.x.editType = attrs.y.editType = attrs.z.editType = attrs.value.editType = 'calc+clearAxisTypes';
205773
206351
  attrs.transforms = undefined;
205774
206352
 
205775
- },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../isosurface/attributes":724,"../surface/attributes":870}],912:[function(_dereq_,module,exports){
206353
+ },{"../../components/colorscale/attributes":241,"../../lib/extend":361,"../../plot_api/edit_types":403,"../../plots/attributes":417,"../isosurface/attributes":725,"../surface/attributes":871}],913:[function(_dereq_,module,exports){
205776
206354
  'use strict';
205777
206355
 
205778
206356
  var createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;
@@ -205897,7 +206475,7 @@ function createVolumeTrace(scene, data) {
205897
206475
 
205898
206476
  module.exports = createVolumeTrace;
205899
206477
 
205900
- },{"../../../stackgl_modules":933,"../../components/colorscale":246,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/gl3d/zip3":476,"../isosurface/convert":726}],913:[function(_dereq_,module,exports){
206478
+ },{"../../../stackgl_modules":934,"../../components/colorscale":246,"../../lib/gl_format_color":367,"../../lib/str2rgbarray":395,"../../plots/gl3d/zip3":476,"../isosurface/convert":727}],914:[function(_dereq_,module,exports){
205901
206479
  'use strict';
205902
206480
 
205903
206481
  var Lib = _dereq_('../../lib');
@@ -205915,7 +206493,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
205915
206493
  opacityscaleDefaults(traceIn, traceOut, layout, coerce);
205916
206494
  };
205917
206495
 
205918
- },{"../../lib":371,"../isosurface/defaults":727,"../surface/defaults":873,"./attributes":911}],914:[function(_dereq_,module,exports){
206496
+ },{"../../lib":371,"../isosurface/defaults":728,"../surface/defaults":874,"./attributes":912}],915:[function(_dereq_,module,exports){
205919
206497
  'use strict';
205920
206498
 
205921
206499
  module.exports = {
@@ -205936,7 +206514,7 @@ module.exports = {
205936
206514
  }
205937
206515
  };
205938
206516
 
205939
- },{"../../plots/gl3d":465,"../isosurface/calc":725,"./attributes":911,"./convert":912,"./defaults":913}],915:[function(_dereq_,module,exports){
206517
+ },{"../../plots/gl3d":465,"../isosurface/calc":726,"./attributes":912,"./convert":913,"./defaults":914}],916:[function(_dereq_,module,exports){
205940
206518
  'use strict';
205941
206519
 
205942
206520
  var barAttrs = _dereq_('../bar/attributes');
@@ -206069,7 +206647,7 @@ module.exports = {
206069
206647
  alignmentgroup: barAttrs.alignmentgroup
206070
206648
  };
206071
206649
 
206072
- },{"../../components/color":234,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatter/attributes":777,"./constants":917}],916:[function(_dereq_,module,exports){
206650
+ },{"../../components/color":234,"../../lib/extend":361,"../../plots/attributes":417,"../../plots/cartesian/axis_format_attributes":424,"../../plots/template_attributes":496,"../bar/attributes":511,"../scatter/attributes":778,"./constants":918}],917:[function(_dereq_,module,exports){
206073
206651
  'use strict';
206074
206652
 
206075
206653
  var Axes = _dereq_('../../plots/cartesian/axes');
@@ -206179,7 +206757,7 @@ module.exports = function calc(gd, trace) {
206179
206757
  return cd;
206180
206758
  };
206181
206759
 
206182
- },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../scatter/calc_selection":779}],917:[function(_dereq_,module,exports){
206760
+ },{"../../constants/numerical":347,"../../lib":371,"../../plots/cartesian/align_period":418,"../../plots/cartesian/axes":421,"../scatter/calc_selection":780}],918:[function(_dereq_,module,exports){
206183
206761
  'use strict';
206184
206762
 
206185
206763
  module.exports = {
@@ -206190,7 +206768,7 @@ module.exports = {
206190
206768
  ]
206191
206769
  };
206192
206770
 
206193
- },{}],918:[function(_dereq_,module,exports){
206771
+ },{}],919:[function(_dereq_,module,exports){
206194
206772
  'use strict';
206195
206773
 
206196
206774
  var setGroupPositions = _dereq_('../bar/cross_trace_calc').setGroupPositions;
@@ -206255,7 +206833,7 @@ module.exports = function crossTraceCalc(gd, plotinfo) {
206255
206833
  }
206256
206834
  };
206257
206835
 
206258
- },{"../bar/cross_trace_calc":514}],919:[function(_dereq_,module,exports){
206836
+ },{"../bar/cross_trace_calc":514}],920:[function(_dereq_,module,exports){
206259
206837
  'use strict';
206260
206838
 
206261
206839
  var Lib = _dereq_('../../lib');
@@ -206358,7 +206936,7 @@ module.exports = {
206358
206936
  crossTraceDefaults: crossTraceDefaults
206359
206937
  };
206360
206938
 
206361
- },{"../../components/color":234,"../../constants/delta.js":341,"../../lib":371,"../bar/defaults":515,"../scatter/period_defaults":797,"../scatter/xy_defaults":804,"./attributes":915}],920:[function(_dereq_,module,exports){
206939
+ },{"../../components/color":234,"../../constants/delta.js":341,"../../lib":371,"../bar/defaults":515,"../scatter/period_defaults":798,"../scatter/xy_defaults":805,"./attributes":916}],921:[function(_dereq_,module,exports){
206362
206940
  'use strict';
206363
206941
 
206364
206942
  module.exports = function eventData(out, pt /* , trace, cd, pointNumber */) {
@@ -206377,7 +206955,7 @@ module.exports = function eventData(out, pt /* , trace, cd, pointNumber */) {
206377
206955
  return out;
206378
206956
  };
206379
206957
 
206380
- },{}],921:[function(_dereq_,module,exports){
206958
+ },{}],922:[function(_dereq_,module,exports){
206381
206959
  'use strict';
206382
206960
 
206383
206961
  var hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;
@@ -206465,7 +207043,7 @@ function getTraceColor(trace, di) {
206465
207043
  else if(opacity(mlc) && mlw) return mlc;
206466
207044
  }
206467
207045
 
206468
- },{"../../components/color":234,"../../constants/delta.js":341,"../../plots/cartesian/axes":421,"../bar/hover":518}],922:[function(_dereq_,module,exports){
207046
+ },{"../../components/color":234,"../../constants/delta.js":341,"../../plots/cartesian/axes":421,"../bar/hover":518}],923:[function(_dereq_,module,exports){
206469
207047
  'use strict';
206470
207048
 
206471
207049
  module.exports = {
@@ -206491,7 +207069,7 @@ module.exports = {
206491
207069
  }
206492
207070
  };
206493
207071
 
206494
- },{"../../plots/cartesian":435,"../bar/select":523,"./attributes":915,"./calc":916,"./cross_trace_calc":918,"./defaults":919,"./event_data":920,"./hover":921,"./layout_attributes":923,"./layout_defaults":924,"./plot":925,"./style":926}],923:[function(_dereq_,module,exports){
207072
+ },{"../../plots/cartesian":435,"../bar/select":523,"./attributes":916,"./calc":917,"./cross_trace_calc":919,"./defaults":920,"./event_data":921,"./hover":922,"./layout_attributes":924,"./layout_defaults":925,"./plot":926,"./style":927}],924:[function(_dereq_,module,exports){
206495
207073
  'use strict';
206496
207074
 
206497
207075
  module.exports = {
@@ -206516,7 +207094,7 @@ module.exports = {
206516
207094
  }
206517
207095
  };
206518
207096
 
206519
- },{}],924:[function(_dereq_,module,exports){
207097
+ },{}],925:[function(_dereq_,module,exports){
206520
207098
  'use strict';
206521
207099
 
206522
207100
  var Lib = _dereq_('../../lib');
@@ -206545,7 +207123,7 @@ module.exports = function(layoutIn, layoutOut, fullData) {
206545
207123
  }
206546
207124
  };
206547
207125
 
206548
- },{"../../lib":371,"./layout_attributes":923}],925:[function(_dereq_,module,exports){
207126
+ },{"../../lib":371,"./layout_attributes":924}],926:[function(_dereq_,module,exports){
206549
207127
  'use strict';
206550
207128
 
206551
207129
  var d3 = _dereq_('@plotly/d3');
@@ -206668,7 +207246,7 @@ function getXY(di, xa, ya, isHorizontal) {
206668
207246
  return isHorizontal ? [s, p] : [p, s];
206669
207247
  }
206670
207248
 
206671
- },{"../../components/drawing":256,"../../constants/numerical":347,"../../lib":371,"../bar/plot":522,"../bar/uniform_text":527,"@plotly/d3":53}],926:[function(_dereq_,module,exports){
207249
+ },{"../../components/drawing":256,"../../constants/numerical":347,"../../lib":371,"../bar/plot":522,"../bar/uniform_text":527,"@plotly/d3":53}],927:[function(_dereq_,module,exports){
206672
207250
  'use strict';
206673
207251
 
206674
207252
  var d3 = _dereq_('@plotly/d3');
@@ -206721,7 +207299,7 @@ module.exports = {
206721
207299
  style: style
206722
207300
  };
206723
207301
 
206724
- },{"../../components/color":234,"../../components/drawing":256,"../../constants/interactions":346,"../bar/style":525,"../bar/uniform_text":527,"@plotly/d3":53}],927:[function(_dereq_,module,exports){
207302
+ },{"../../components/color":234,"../../components/drawing":256,"../../constants/interactions":346,"../bar/style":525,"../bar/uniform_text":527,"@plotly/d3":53}],928:[function(_dereq_,module,exports){
206725
207303
  'use strict';
206726
207304
 
206727
207305
  var Axes = _dereq_('../plots/cartesian/axes');
@@ -207125,7 +207703,7 @@ function last(array, indices) {
207125
207703
  return array[indices[indices.length - 1]];
207126
207704
  }
207127
207705
 
207128
- },{"../constants/numerical":347,"../lib":371,"../plot_api/plot_schema":409,"../plots/cartesian/axes":421,"./helpers":930}],928:[function(_dereq_,module,exports){
207706
+ },{"../constants/numerical":347,"../lib":371,"../plot_api/plot_schema":409,"../plots/cartesian/axes":421,"./helpers":931}],929:[function(_dereq_,module,exports){
207129
207707
  'use strict';
207130
207708
 
207131
207709
  var Lib = _dereq_('../lib');
@@ -207385,7 +207963,7 @@ function getFilterFunc(opts, d2c, targetCalendar) {
207385
207963
  }
207386
207964
  }
207387
207965
 
207388
- },{"../constants/filter_ops":343,"../lib":371,"../plots/cartesian/axes":421,"../registry":501,"./helpers":930}],929:[function(_dereq_,module,exports){
207966
+ },{"../constants/filter_ops":343,"../lib":371,"../plots/cartesian/axes":421,"../registry":501,"./helpers":931}],930:[function(_dereq_,module,exports){
207389
207967
  'use strict';
207390
207968
 
207391
207969
  var Lib = _dereq_('../lib');
@@ -207629,7 +208207,7 @@ function transformOne(trace, state) {
207629
208207
  return newData;
207630
208208
  }
207631
208209
 
207632
- },{"../lib":371,"../plot_api/plot_schema":409,"../plots/plots":486,"./helpers":930}],930:[function(_dereq_,module,exports){
208210
+ },{"../lib":371,"../plot_api/plot_schema":409,"../plots/plots":486,"./helpers":931}],931:[function(_dereq_,module,exports){
207633
208211
  'use strict';
207634
208212
 
207635
208213
  exports.pointsAccessorFunction = function(transforms, opts) {
@@ -207647,7 +208225,7 @@ exports.pointsAccessorFunction = function(transforms, opts) {
207647
208225
  return originalPointsAccessor;
207648
208226
  };
207649
208227
 
207650
- },{}],931:[function(_dereq_,module,exports){
208228
+ },{}],932:[function(_dereq_,module,exports){
207651
208229
  'use strict';
207652
208230
 
207653
208231
  var Lib = _dereq_('../lib');
@@ -207785,13 +208363,13 @@ function getSortFunc(opts, d2c) {
207785
208363
  }
207786
208364
  }
207787
208365
 
207788
- },{"../constants/numerical":347,"../lib":371,"../plots/cartesian/axes":421,"./helpers":930}],932:[function(_dereq_,module,exports){
208366
+ },{"../constants/numerical":347,"../lib":371,"../plots/cartesian/axes":421,"./helpers":931}],933:[function(_dereq_,module,exports){
207789
208367
  'use strict';
207790
208368
 
207791
208369
  // package version injected by `npm run preprocess`
207792
- exports.version = '2.7.0';
208370
+ exports.version = '2.8.3';
207793
208371
 
207794
- },{}],933:[function(_dereq_,module,exports){
208372
+ },{}],934:[function(_dereq_,module,exports){
207795
208373
  (function (global){(function (){
207796
208374
  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.stackgl = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof _dereq_&&_dereq_;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof _dereq_&&_dereq_,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_glvis_,module,exports){
207797
208375
  'use strict'