|
15 | 15 | "x": ["day 1", "day 1", "day 1", "day 1", "day 1", "day 1", "day 2", "day 2", "day 2", "day 2", "day 2", "day 2"],
|
16 | 16 | "y": [0.6, 0.7, 0.3, 0.6, 0, 0.5, 0.7, 0.9, 0.5, 0.8, 0.7, 0.2]
|
17 | 17 | },
|
| 18 | + |
18 | 19 | {
|
19 | 20 | "type": "bar",
|
20 | 21 | "x": [1, 2, 1],
|
|
38 | 39 | "orientation": "h",
|
39 | 40 | "xaxis": "x2",
|
40 | 41 | "yaxis": "y2"
|
| 42 | + }, |
| 43 | + |
| 44 | + { |
| 45 | + "type": "bar", |
| 46 | + "name": "with dtick !== 1", |
| 47 | + "x": ["a", "b", "c", "d", "e", "f", "g", "h"], |
| 48 | + "y": [1, 2, 1, 2, 1, 3, 4, 1], |
| 49 | + "xaxis": "x3", |
| 50 | + "yaxis": "y3" |
| 51 | + }, |
| 52 | + |
| 53 | + { |
| 54 | + "mode": "markers", |
| 55 | + "marker": {"symbol": "square"}, |
| 56 | + "name": "with overlapping tick labels", |
| 57 | + "x": ["A very long title", "short", "Another very long title"], |
| 58 | + "y": [1, 4, 2], |
| 59 | + "xaxis": "x4", |
| 60 | + "yaxis": "y4" |
41 | 61 | }
|
42 | 62 | ],
|
43 | 63 | "layout": {
|
44 | 64 | "boxmode": "group",
|
45 | 65 | "grid": {
|
46 |
| - "rows": 2, |
| 66 | + "rows": 4, |
47 | 67 | "columns": 1,
|
48 | 68 | "pattern": "independent",
|
49 | 69 | "ygap": 0.2
|
|
60 | 80 | "gridcolor": "white",
|
61 | 81 | "gridwidth": 4
|
62 | 82 | },
|
| 83 | + "xaxis3": { |
| 84 | + "ticks": "inside", |
| 85 | + "tickson": "boundaries", |
| 86 | + "gridcolor": "white", |
| 87 | + "gridwidth": 4, |
| 88 | + "dtick": 2 |
| 89 | + }, |
| 90 | + "xaxis4": { |
| 91 | + "domain": [0.22, 0.78], |
| 92 | + "ticks": "outside", |
| 93 | + "ticklen": 20, |
| 94 | + "tickson": "boundaries", |
| 95 | + "gridcolor": "white", |
| 96 | + "gridwidth": 4 |
| 97 | + }, |
63 | 98 | "plot_bgcolor": "lightgrey",
|
64 |
| - "showlegend": false |
| 99 | + "showlegend": false, |
| 100 | + "width": 500, |
| 101 | + "height": 800, |
| 102 | + "margin": {"b": 140} |
65 | 103 | }
|
66 | 104 | }
|
0 commit comments