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

Skip to content

Commit 02bfded

Browse files
committed
add 'layers' field to all cartesian trace modules
1 parent 8a10963 commit 02bfded

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

src/traces/bar/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Bar.moduleType = 'trace';
2727
Bar.name = 'bar';
2828
Bar.basePlotModule = require('../../plots/cartesian');
2929
Bar.categories = ['cartesian', 'bar', 'oriented', 'markerColorscale', 'errorBarsOK', 'showLegend'];
30+
Bar.layers = ['barlayer'];
3031
Bar.meta = {
3132
description: [
3233
'The data visualized by the span of the bars is set in `y`',

src/traces/box/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Box.moduleType = 'trace';
2424
Box.name = 'box';
2525
Box.basePlotModule = require('../../plots/cartesian');
2626
Box.categories = ['cartesian', 'symbols', 'oriented', 'box', 'showLegend'];
27+
Box.layers = ['boxlayer'];
2728
Box.meta = {
2829
description: [
2930
'In vertical (horizontal) box plots,',

src/traces/contour/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Contour.moduleType = 'trace';
2323
Contour.name = 'contour';
2424
Contour.basePlotModule = require('../../plots/cartesian');
2525
Contour.categories = ['cartesian', '2dMap', 'contour'];
26+
Contour.layers = ['maplayer', 'imagelayer'];
2627
Contour.meta = {
2728
description: [
2829
'The data from which contour lines are computed is set in `z`.',

src/traces/heatmap/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Heatmap.moduleType = 'trace';
2323
Heatmap.name = 'heatmap';
2424
Heatmap.basePlotModule = require('../../plots/cartesian');
2525
Heatmap.categories = ['cartesian', '2dMap'];
26+
Heatmap.layers = ['imagelayer'];
2627
Heatmap.meta = {
2728
description: [
2829
'The data that describes the heatmap value-to-color mapping',

src/traces/histogram/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Histogram.moduleType = 'trace';
4040
Histogram.name = 'histogram';
4141
Histogram.basePlotModule = require('../../plots/cartesian');
4242
Histogram.categories = ['cartesian', 'bar', 'histogram', 'oriented', 'errorBarsOK', 'showLegend'];
43+
Histogram.layers = ['barlayer'];
4344
Histogram.meta = {
4445
description: [
4546
'The sample data from which statistics are computed is set in `x`',

src/traces/histogram2d/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Histogram2D.moduleType = 'trace';
2323
Histogram2D.name = 'histogram2d';
2424
Histogram2D.basePlotModule = require('../../plots/cartesian');
2525
Histogram2D.categories = ['cartesian', '2dMap', 'histogram'];
26+
Histogram2D.layers = ['imagelayer'];
2627
Histogram2D.meta = {
2728
hrName: 'histogram_2d',
2829
description: [

src/traces/histogram2dcontour/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Histogram2dContour.moduleType = 'trace';
2323
Histogram2dContour.name = 'histogram2dcontour';
2424
Histogram2dContour.basePlotModule = require('../../plots/cartesian');
2525
Histogram2dContour.categories = ['cartesian', '2dMap', 'contour', 'histogram'];
26+
Histogram2dContour.layers = ['maplayer', 'imagelayer'];
2627
Histogram2dContour.meta = {
2728
hrName: 'histogram_2d_contour',
2829
description: [

src/traces/scatter/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Scatter.moduleType = 'trace';
3535
Scatter.name = 'scatter';
3636
Scatter.basePlotModule = require('../../plots/cartesian');
3737
Scatter.categories = ['cartesian', 'symbols', 'markerColorscale', 'errorBarsOK', 'showLegend'];
38+
Scatter.layers = ['scatterlayer'];
3839
Scatter.meta = {
3940
description: [
4041
'The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.',

0 commit comments

Comments
 (0)