Skip to content

Commit 75dc282

Browse files
committed
Change fields used by module registry
1 parent 823ae72 commit 75dc282

File tree

15 files changed

+60
-45
lines changed

15 files changed

+60
-45
lines changed

src/traces/bar/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ Bar.plot = require('./plot');
2323
Bar.style = require('./style');
2424
Bar.hoverPoints = require('./hover');
2525

26-
Bar._categories = ['cartesian', 'bar', 'oriented', 'markerColorscale', 'errorBarsOK', 'showLegend'];
27-
Bar._type = 'bar';
28-
Bar._meta = {
26+
Bar.moduleType = 'trace';
27+
Bar.name = 'bar';
28+
Bar.categories = ['cartesian', 'bar', 'oriented', 'markerColorscale', 'errorBarsOK', 'showLegend'];
29+
Bar.meta = {
2930
description: [
3031
'The data visualized by the span of the bars is set in `y`',
3132
'if `orientation` is set th *v* (the default)',

src/traces/box/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ Box.plot = require('./plot');
2020
Box.style = require('./style');
2121
Box.hoverPoints = require('./hover');
2222

23-
Box._type = 'box';
24-
Box._categories = ['cartesian', 'symbols', 'oriented', 'box', 'showLegend'];
25-
Box._meta = {
23+
Box.moduleType = 'trace';
24+
Box.name = 'box';
25+
Box.categories = ['cartesian', 'symbols', 'oriented', 'box', 'showLegend'];
26+
Box.meta = {
2627
description: [
2728
'In vertical (horizontal) box plots,',
2829
'statistics are computed using `y` (`x`) values.',

src/traces/choropleth/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ Choropleth.colorbar = require('../heatmap/colorbar');
1717
Choropleth.calc = require('../surface/calc');
1818
Choropleth.plot = require('./plot').plot;
1919

20-
Choropleth._type = 'choropleth';
21-
Choropleth._categories = ['geo', 'noOpacity'];
22-
Choropleth._meta = {
20+
Choropleth.moduleType = 'trace';
21+
Choropleth.name = 'choropleth';
22+
Choropleth.categories = ['geo', 'noOpacity'];
23+
Choropleth.meta = {
2324
description: [
2425
'The data that describes the choropleth value-to-color mapping',
2526
'is set in `z`.',

src/traces/contour/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Contour.style = require('./style');
1919
Contour.colorbar = require('./colorbar');
2020
Contour.hoverPoints = require('./hover');
2121

22-
Contour._type = 'contour';
23-
Contour._categories = ['cartesian', '2dMap', 'contour'];
24-
Contour._meta = {
22+
Contour.moduleType = 'trace';
23+
Contour.name = 'contour';
24+
Contour.categories = ['cartesian', '2dMap', 'contour'];
25+
Contour.meta = {
2526
description: [
2627
'The data from which contour lines are computed is set in `z`.',
2728
'Data in `z` must be a {2D array} of numbers.',

src/traces/heatmap/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Heatmap.colorbar = require('./colorbar');
1919
Heatmap.style = require('./style');
2020
Heatmap.hoverPoints = require('./hover');
2121

22-
Heatmap._type = 'heatmap';
23-
Heatmap._categories = ['cartesian', '2dMap'];
24-
Heatmap._meta = {
22+
Heatmap.moduleType = 'trace';
23+
Heatmap.name = 'heatmap';
24+
Heatmap.categories = ['cartesian', '2dMap'];
25+
Heatmap.meta = {
2526
description: [
2627
'The data that describes the heatmap value-to-color mapping',
2728
'is set in `z`.',

src/traces/histogram/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ Histogram.style = require('../bar/style');
3636
Histogram.colorbar = require('../scatter/colorbar');
3737
Histogram.hoverPoints = require('../bar/hover');
3838

39-
Histogram._type = 'histogram';
40-
Histogram._categories = ['cartesian', 'bar', 'histogram', 'oriented', 'errorBarsOK', 'showLegend'];
41-
Histogram._meta = {
39+
Histogram.moduleType = 'trace';
40+
Histogram.name = 'histogram';
41+
Histogram.categories = ['cartesian', 'bar', 'histogram', 'oriented', 'errorBarsOK', 'showLegend'];
42+
Histogram.meta = {
4243
description: [
4344
'The sample data from which statistics are computed is set in `x`',
4445
'for vertically spanning histograms and',

src/traces/histogram2d/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Histogram2D.colorbar = require('../heatmap/colorbar');
1919
Histogram2D.style = require('../heatmap/style');
2020
Histogram2D.hoverPoints = require('../heatmap/hover');
2121

22-
Histogram2D._type = 'histogram2d';
23-
Histogram2D._categories = ['cartesian', '2dMap', 'histogram'];
24-
Histogram2D._meta = {
22+
Histogram2D.moduleType = 'trace';
23+
Histogram2D.name = 'histogram2d';
24+
Histogram2D.categories = ['cartesian', '2dMap', 'histogram'];
25+
Histogram2D.meta = {
2526
hrName: 'histogram_2d',
2627
description: [
2728
'The sample data from which statistics are computed is set in `x`',

src/traces/histogram2dcontour/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Histogram2dContour.style = require('../contour/style');
1919
Histogram2dContour.colorbar = require('../contour/colorbar');
2020
Histogram2dContour.hoverPoints = require('../contour/hover');
2121

22-
Histogram2dContour._type = 'histogram2dcontour';
23-
Histogram2dContour._categories = ['cartesian', '2dMap', 'contour', 'histogram'];
24-
Histogram2dContour._meta = {
22+
Histogram2dContour.moduleType = 'trace';
23+
Histogram2dContour.name = 'histogram2dcontour';
24+
Histogram2dContour.categories = ['cartesian', '2dMap', 'contour', 'histogram'];
25+
Histogram2dContour.meta = {
2526
hrName: 'histogram_2d_contour',
2627
description: [
2728
'The sample data from which statistics are computed is set in `x`',

src/traces/mesh3d/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ Mesh3D.supplyDefaults = require('./defaults');
1616
Mesh3D.colorbar = require('../heatmap/colorbar');
1717
Mesh3D.plot = require('./convert');
1818

19-
Mesh3D._type = 'mesh3d',
20-
Mesh3D._categories = ['gl3d'];
21-
Mesh3D._meta = {
19+
Mesh3D.moduleType = 'trace';
20+
Mesh3D.name = 'mesh3d',
21+
Mesh3D.categories = ['gl3d'];
22+
Mesh3D.meta = {
2223
description: [
2324
'Draws sets of triangles with coordinates given by',
2425
'three 1-dimensional arrays in `x`, `y`, `z` and',

src/traces/pie/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Pie.plot = require('./plot');
1919
Pie.style = require('./style');
2020
Pie.styleOne = require('./style_one');
2121

22-
Pie._type = 'pie';
23-
Pie._categories = ['pie', 'showLegend'];
24-
Pie._meta = {
22+
Pie.moduleType = 'trace';
23+
Pie.name = 'pie';
24+
Pie.categories = ['pie', 'showLegend'];
25+
Pie.meta = {
2526
description: [
2627
'A data visualized by the sectors of the pie is set in `values`.',
2728
'The sector labels are set in `labels`.',

0 commit comments

Comments
 (0)