plotly.js
Version:
The open source javascript graphing library that powers plotly
32 lines (26 loc) • 1.11 kB
JavaScript
module.exports = {
moduleType: 'trace',
name: 'ohlc',
basePlotModule: require('../../plots/cartesian'),
categories: ['cartesian', 'svg', 'showLegend'],
meta: {
description: [
'The ohlc (short for Open-High-Low-Close) is a style of financial chart describing',
'open, high, low and close for a given `x` coordinate (most likely time).',
'The tip of the lines represent the `low` and `high` values and',
'the horizontal segments represent the `open` and `close` values.',
'Sample points where the close value is higher (lower) then the open',
'value are called increasing (decreasing).',
'By default, increasing items are drawn in green whereas',
'decreasing are drawn in red.'
].join(' ')
},
attributes: require('./attributes'),
supplyDefaults: require('./defaults'),
calc: require('./calc').calc,
plot: require('./plot'),
style: require('./style'),
hoverPoints: require('./hover').hoverPoints,
selectPoints: require('./select')
};
;