Skip to content

Commit ec82c09

Browse files
committed
start with base_index without plot to add strict plot fns
1 parent 374b086 commit ec82c09

File tree

14 files changed

+139
-115
lines changed

14 files changed

+139
-115
lines changed

src/traces/parcoords/base_index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use strict';
2+
3+
module.exports = {
4+
attributes: require('./attributes'),
5+
supplyDefaults: require('./defaults'),
6+
calc: require('./calc'),
7+
colorbar: {
8+
container: 'line',
9+
min: 'cmin',
10+
max: 'cmax'
11+
},
12+
13+
moduleType: 'trace',
14+
name: 'parcoords',
15+
basePlotModule: require('./base_plot'),
16+
categories: ['gl', 'regl', 'noOpacity', 'noHover'],
17+
meta: {
18+
description: [
19+
'Parallel coordinates for multidimensional exploratory data analysis.',
20+
'The samples are specified in `dimensions`.',
21+
'The colors are set in `line.color`.'
22+
].join(' ')
23+
}
24+
};

src/traces/parcoords/index.js

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
11
'use strict';
22

3-
module.exports = {
4-
attributes: require('./attributes'),
5-
supplyDefaults: require('./defaults'),
6-
calc: require('./calc'),
7-
plot: require('./plot'),
8-
colorbar: {
9-
container: 'line',
10-
min: 'cmin',
11-
max: 'cmax'
12-
},
3+
var index = require('./base_index');
134

14-
moduleType: 'trace',
15-
name: 'parcoords',
16-
basePlotModule: require('./base_plot'),
17-
categories: ['gl', 'regl', 'noOpacity', 'noHover'],
18-
meta: {
19-
description: [
20-
'Parallel coordinates for multidimensional exploratory data analysis.',
21-
'The samples are specified in `dimensions`.',
22-
'The colors are set in `line.color`.'
23-
].join(' ')
24-
}
25-
};
5+
index.plot = require('./plot');
6+
7+
module.exports = index;

src/traces/parcoords/strict.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
var index = require('../parcoords/index');
3+
var index = require('./base_index');
44

5-
index.plot = require('../parcoords/plot-strict');
5+
index.plot = require('./plot-strict');
66

77
module.exports = index;

src/traces/scattergl/base_index.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
'use strict';
2+
3+
var hover = require('./hover');
4+
5+
module.exports = {
6+
moduleType: 'trace',
7+
name: 'scattergl',
8+
basePlotModule: require('../../plots/cartesian'),
9+
categories: ['gl', 'regl', 'cartesian', 'symbols', 'errorBarsOK', 'showLegend', 'scatter-like'],
10+
11+
attributes: require('./attributes'),
12+
supplyDefaults: require('./defaults'),
13+
crossTraceDefaults: require('../scatter/cross_trace_defaults'),
14+
colorbar: require('../scatter/marker_colorbar'),
15+
formatLabels: require('./format_labels'),
16+
calc: require('./calc'),
17+
hoverPoints: hover.hoverPoints,
18+
selectPoints: require('./select'),
19+
20+
meta: {
21+
hrName: 'scatter_gl',
22+
description: [
23+
'The data visualized as scatter point or lines is set in `x` and `y`',
24+
'using the WebGL plotting engine.',
25+
'Bubble charts are achieved by setting `marker.size` and/or `marker.color`',
26+
'to a numerical arrays.'
27+
].join(' ')
28+
}
29+
};

src/traces/scattergl/index.js

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,7 @@
11
'use strict';
22

3-
var hover = require('./hover');
3+
var index = require('./base_index');
44

5-
module.exports = {
6-
moduleType: 'trace',
7-
name: 'scattergl',
8-
basePlotModule: require('../../plots/cartesian'),
9-
categories: ['gl', 'regl', 'cartesian', 'symbols', 'errorBarsOK', 'showLegend', 'scatter-like'],
5+
index.plot = require('./plot');
106

11-
attributes: require('./attributes'),
12-
supplyDefaults: require('./defaults'),
13-
crossTraceDefaults: require('../scatter/cross_trace_defaults'),
14-
colorbar: require('../scatter/marker_colorbar'),
15-
formatLabels: require('./format_labels'),
16-
calc: require('./calc'),
17-
plot: require('./plot'),
18-
hoverPoints: hover.hoverPoints,
19-
selectPoints: require('./select'),
20-
21-
meta: {
22-
hrName: 'scatter_gl',
23-
description: [
24-
'The data visualized as scatter point or lines is set in `x` and `y`',
25-
'using the WebGL plotting engine.',
26-
'Bubble charts are achieved by setting `marker.size` and/or `marker.color`',
27-
'to a numerical arrays.'
28-
].join(' ')
29-
}
30-
};
7+
module.exports = index;
File renamed without changes.

src/traces/scattergl/strict.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
var index = require('../scattergl/index');
3+
var index = require('./base_index');
44

5-
index.plot = require('../scattergl/plot-strict');
5+
index.plot = require('./plot_strict');
66

77
module.exports = index;
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
'use strict';
2+
3+
module.exports = {
4+
moduleType: 'trace',
5+
name: 'scatterpolargl',
6+
basePlotModule: require('../../plots/polar'),
7+
categories: ['gl', 'regl', 'polar', 'symbols', 'showLegend', 'scatter-like'],
8+
9+
attributes: require('./attributes'),
10+
supplyDefaults: require('./defaults'),
11+
colorbar: require('../scatter/marker_colorbar'),
12+
formatLabels: require('./format_labels'),
13+
14+
calc: require('./calc'),
15+
hoverPoints: require('./hover').hoverPoints,
16+
selectPoints: require('../scattergl/select'),
17+
18+
meta: {
19+
hrName: 'scatter_polar_gl',
20+
description: [
21+
'The scatterpolargl trace type encompasses line charts, scatter charts, and bubble charts',
22+
'in polar coordinates using the WebGL plotting engine.',
23+
'The data visualized as scatter point or lines is set in',
24+
'`r` (radial) and `theta` (angular) coordinates',
25+
'Bubble charts are achieved by setting `marker.size` and/or `marker.color`',
26+
'to numerical arrays.'
27+
].join(' ')
28+
}
29+
};

src/traces/scatterpolargl/index.js

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,7 @@
11
'use strict';
22

3-
module.exports = {
4-
moduleType: 'trace',
5-
name: 'scatterpolargl',
6-
basePlotModule: require('../../plots/polar'),
7-
categories: ['gl', 'regl', 'polar', 'symbols', 'showLegend', 'scatter-like'],
3+
var index = require('./base_index');
84

9-
attributes: require('./attributes'),
10-
supplyDefaults: require('./defaults'),
11-
colorbar: require('../scatter/marker_colorbar'),
12-
formatLabels: require('./format_labels'),
5+
index.plot = require('./plot');
136

14-
calc: require('./calc'),
15-
plot: require('./plot'),
16-
hoverPoints: require('./hover').hoverPoints,
17-
selectPoints: require('../scattergl/select'),
18-
19-
meta: {
20-
hrName: 'scatter_polar_gl',
21-
description: [
22-
'The scatterpolargl trace type encompasses line charts, scatter charts, and bubble charts',
23-
'in polar coordinates using the WebGL plotting engine.',
24-
'The data visualized as scatter point or lines is set in',
25-
'`r` (radial) and `theta` (angular) coordinates',
26-
'Bubble charts are achieved by setting `marker.size` and/or `marker.color`',
27-
'to numerical arrays.'
28-
].join(' ')
29-
}
30-
};
7+
module.exports = index;

0 commit comments

Comments
 (0)