-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathindex.js
43 lines (37 loc) · 1.54 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Copyright 2012-2018, 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,
setPositions: require('../box/set_positions').setPositions,
supplyDefaults: require('./defaults'),
calc: require('./calc'),
plot: require('../box/plot').plot,
layerName: 'boxlayer',
style: require('../box/style'),
hoverPoints: require('../ohlc/hover'),
selectPoints: require('../ohlc/select')
};