plotly.js
Version:
The open source javascript graphing library that powers plotly
34 lines (30 loc) • 1.27 kB
JavaScript
module.exports = {
moduleType: 'trace',
name: 'scattersmith',
basePlotModule: require('../../plots/smith'),
categories: ['smith', 'symbols', 'showLegend', 'scatter-like'],
attributes: require('./attributes'),
supplyDefaults: require('./defaults'),
colorbar: require('../scatter/marker_colorbar'),
formatLabels: require('./format_labels'),
calc: require('./calc'),
plot: require('./plot'),
style: require('../scatter/style').style,
styleOnSelect: require('../scatter/style').styleOnSelect,
hoverPoints: require('./hover').hoverPoints,
selectPoints: require('../scatter/select'),
meta: {
hrName: 'scatter_smith',
description: [
// TODO: improve me!
'The scattersmith trace type encompasses line charts, scatter charts, text charts, and bubble charts',
'in smith coordinates.',
'The data visualized as scatter point or lines is set in',
'`real` and `imag` (imaginary) coordinates',
'Text (appearing either on the chart or on hover only) is via `text`.',
'Bubble charts are achieved by setting `marker.size` and/or `marker.color`',
'to numerical arrays.'
].join(' ')
}
};
;