|
11 | 11 | var createMatrix = require('regl-scattermatrix');
|
12 | 12 | var arrayRange = require('array-range');
|
13 | 13 |
|
| 14 | +var Registry = require('../../registry'); |
| 15 | +var Grid = require('../../components/grid'); |
14 | 16 | var Lib = require('../../lib');
|
15 | 17 | var AxisIDs = require('../../plots/cartesian/axis_ids');
|
16 | 18 |
|
@@ -179,7 +181,7 @@ function plotOne(gd, cd0) {
|
179 | 181 | if(cdata.length === 0) return;
|
180 | 182 |
|
181 | 183 | // augment options with proper upper/lower halves
|
182 |
| - // regl-scattermatrix's default grid start from bottom-left |
| 184 | + // regl-scattermatrix's default grid starts from bottom-left |
183 | 185 | matrixOpts.lower = trace.showupperhalf;
|
184 | 186 | matrixOpts.upper = trace.showlowerhalf;
|
185 | 187 | matrixOpts.diagonal = trace.diagonal.visible;
|
@@ -294,8 +296,6 @@ function plotOne(gd, cd0) {
|
294 | 296 | scene.draw();
|
295 | 297 | }
|
296 | 298 |
|
297 |
| -// TODO splom 'needs' the grid component, register it here? |
298 |
| - |
299 | 299 | function hoverPoints(pointData, xval, yval) {
|
300 | 300 | var cd = pointData.cd;
|
301 | 301 | var trace = cd[0].trace;
|
@@ -473,7 +473,16 @@ module.exports = {
|
473 | 473 |
|
474 | 474 | meta: {
|
475 | 475 | description: [
|
476 |
| - 'SPLOM !!!' |
| 476 | + 'Splom traces generate scatter plot matrix visualizations.', |
| 477 | + 'Each splom `dimensions` items correspond to an generated axes.', |
| 478 | + 'Values for each of those dimensions are set in `dimensions[i].values`.', |
| 479 | + 'Splom traces support all `scattergl` marker style attributes.', |
| 480 | + 'Specify `layout.grid` attributes and/or layout x-axis and y-axis attributes', |
| 481 | + 'for control ' |
477 | 482 | ].join(' ')
|
478 | 483 | }
|
479 | 484 | };
|
| 485 | + |
| 486 | +// splom traces use the 'grid' component to generate their axes, |
| 487 | +// register it here |
| 488 | +Registry.register(Grid); |
0 commit comments