UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

44 lines (37 loc) 1.6 kB
/** * 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. */ 'use strict'; module.exports = { moduleType: 'trace', name: 'candlestick', basePlotModule: require('../../plots/cartesian'), categories: ['cartesian', 'svg', 'showLegend', 'candlestick', 'boxLayout'], meta: { description: [ 'The candlestick is a style of financial chart describing', 'open, high, low and close for a given `x` coordinate (most likely time).', 'The boxes represent the spread between the `open` and `close` values and', 'the lines represent the spread between the `low` and `high` values', 'Sample points where the close value is higher (lower) then the open', 'value are called increasing (decreasing).', 'By default, increasing candles are drawn in green whereas', 'decreasing are drawn in red.' ].join(' ') }, attributes: require('./attributes'), layoutAttributes: require('../box/layout_attributes'), supplyLayoutDefaults: require('../box/layout_defaults').supplyLayoutDefaults, crossTraceCalc: require('../box/cross_trace_calc').crossTraceCalc, supplyDefaults: require('./defaults'), calc: require('./calc'), plot: require('../box/plot').plot, layerName: 'boxlayer', style: require('../box/style').style, hoverPoints: require('../ohlc/hover').hoverPoints, selectPoints: require('../ohlc/select') };