plotly.js
Version:
The open source javascript graphing library that powers plotly
46 lines (37 loc) • 1.46 kB
JavaScript
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
;
var Registry = require('../../registry');
var Grid = require('../../components/grid');
module.exports = {
moduleType: 'trace',
name: 'splom',
basePlotModule: require('./base_plot'),
categories: ['gl', 'regl', 'cartesian', 'symbols', 'showLegend', 'scatter-like'],
attributes: require('./attributes'),
supplyDefaults: require('./defaults'),
colorbar: require('../scatter/marker_colorbar'),
calc: require('./calc'),
plot: require('./plot'),
hoverPoints: require('./hover').hoverPoints,
selectPoints: require('./select'),
editStyle: require('./edit_style'),
meta: {
description: [
'Splom traces generate scatter plot matrix visualizations.',
'Each splom `dimensions` items correspond to a generated axis.',
'Values for each of those dimensions are set in `dimensions[i].values`.',
'Splom traces support all `scattergl` marker style attributes.',
'Specify `layout.grid` attributes and/or layout x-axis and y-axis attributes',
'for more control over the axis positioning and style. '
].join(' ')
}
};
// splom traces use the 'grid' component to generate their axes,
// register it here
Registry.register(Grid);