-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathindex.js
39 lines (31 loc) · 1.23 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
/**
* 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';
var Registry = require('../../registry');
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 candles are drawn in green whereas',
'decreasing are drawn in red.'
].join(' ')
},
attributes: require('./attributes'),
supplyDefaults: require('./defaults'),
};
Registry.register(require('../scatter'));
Registry.register(require('./transform'));