|
| 1 | +{ |
| 2 | + "data": [{ |
| 3 | + "type": "ohlc", |
| 4 | + "x": [ |
| 5 | + "2018-04-17", "2018-04-18", "2018-04-19", "2018-04-20", |
| 6 | + "2018-04-23", "2018-04-24", "2018-04-25", "2018-04-26", "2018-04-27" |
| 7 | + ], |
| 8 | + "open": [10, 11, 12, 13, 12, 13, 14, 15, 16], |
| 9 | + "high": [15, 16, 17, 18, 17, 18, 19, 20, 21], |
| 10 | + "low": [7, 8, 9, 10, 9, 10, 11, 12, 13], |
| 11 | + "close": [9, 10, 12, 13, 13, 12, 14, 14, 17], |
| 12 | + "name": "Date OHLC" |
| 13 | + }, { |
| 14 | + "type": "candlestick", |
| 15 | + "x": [ |
| 16 | + "2018-04-17", "2018-04-18", "2018-04-19", "2018-04-20", |
| 17 | + "2018-04-23", "2018-04-24", "2018-04-25", "2018-04-26", "2018-04-27" |
| 18 | + ], |
| 19 | + "open": [20, 21, 22, 23, 22, 23, 24, 25, 26], |
| 20 | + "high": [25, 26, 27, 28, 27, 28, 29, 30, 31], |
| 21 | + "low": [17, 18, 19, 20, 19, 20, 21, 22, 23], |
| 22 | + "close": [19, 20, 22, 23, 23, 22, 24, 24, 27], |
| 23 | + "name": "Date Candlestick" |
| 24 | + }, { |
| 25 | + "type": "ohlc", |
| 26 | + "xaxis": "x2", |
| 27 | + "x": [ |
| 28 | + "2018-04-17", "2018-04-18", "2018-04-19", "2018-04-20", |
| 29 | + "2018-04-23", "2018-04-24", "2018-04-25", "2018-04-26", "2018-04-27" |
| 30 | + ], |
| 31 | + "open": [10, 11, 12, 13, 12, 13, 14, 15, 16], |
| 32 | + "high": [15, 16, 17, 18, 17, 18, 19, 20, 21], |
| 33 | + "low": [7, 8, 9, 10, 9, 10, 11, 12, 13], |
| 34 | + "close": [9, 10, 12, 13, 13, 12, 14, 14, 17], |
| 35 | + "increasing": {"line": {"color": "orange"}}, |
| 36 | + "decreasing": {"line": {"color": "blue"}}, |
| 37 | + "name": "Category OHLC" |
| 38 | + }, { |
| 39 | + "type": "candlestick", |
| 40 | + "xaxis": "x2", |
| 41 | + "x": [ |
| 42 | + "2018-04-17", "2018-04-18", "2018-04-19", "2018-04-20", |
| 43 | + "2018-04-23", "2018-04-24", "2018-04-25", "2018-04-26", "2018-04-27" |
| 44 | + ], |
| 45 | + "open": [20, 21, 22, 23, 22, 23, 24, 25, 26], |
| 46 | + "high": [25, 26, 27, 28, 27, 28, 29, 30, 31], |
| 47 | + "low": [17, 18, 19, 20, 19, 20, 21, 22, 23], |
| 48 | + "close": [19, 20, 22, 23, 23, 22, 24, 24, 27], |
| 49 | + "increasing": {"line": {"color": "orange"}}, |
| 50 | + "decreasing": {"line": {"color": "blue"}}, |
| 51 | + "name": "Category Candlestick" |
| 52 | + }, { |
| 53 | + "type": "box", |
| 54 | + "x": [ |
| 55 | + "2018-04-23", "2018-04-23", "2018-04-23", "2018-04-23", "2018-04-23", |
| 56 | + "2018-04-23", "2018-04-23", "2018-04-23", "2018-04-23", "2018-04-23", |
| 57 | + "2018-04-24", "2018-04-24", "2018-04-24", "2018-04-24", "2018-04-24", |
| 58 | + "2018-04-24", "2018-04-24", "2018-04-24", "2018-04-24", "2018-04-24" |
| 59 | + ], |
| 60 | + "y": [ |
| 61 | + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, |
| 62 | + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 |
| 63 | + ], |
| 64 | + "name": "Box" |
| 65 | + }], |
| 66 | + "layout": { |
| 67 | + "xaxis": {"domain": [0, 0.45], "title": "Date"}, |
| 68 | + "xaxis2": {"domain": [0.55, 1], "title": "Category", "type": "category"}, |
| 69 | + "width": 800, |
| 70 | + "height": 500, |
| 71 | + "boxgroupgap": 0 |
| 72 | + } |
| 73 | +} |
0 commit comments