|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + { |
| 4 | + "x": [0, 2, 4], "y": [6, 1, 6], "line": {"color": "#000"}, |
| 5 | + "name": "bottom", "legendgroup": "l" |
| 6 | + }, { |
| 7 | + "x0": -0.5, "y": [1, 2, 3, 4, 5], "name": "a 1", |
| 8 | + "stackgroup": "a", "legendgroup": "a", |
| 9 | + "line": {"color": "#f00"}, "fillcolor": "rgba(255,0,0,0.8)" |
| 10 | + }, { |
| 11 | + "x0": 0.5, "y": [5, 4, 3, 2, 1], "name": "b 1", |
| 12 | + "stackgroup": "b", "legendgroup": "b", |
| 13 | + "line": {"color": "#00f"}, "fillcolor": "rgba(0,0,255,0.8)" |
| 14 | + }, { |
| 15 | + "x0": -0.5, "y": [1, 1, 1, 1, 1], "name": "a 2", |
| 16 | + "stackgroup": "a", "legendgroup": "a", |
| 17 | + "line": {"color": "#f80"}, "fillcolor": "rgba(255,136,0,0.8)" |
| 18 | + }, { |
| 19 | + "x0": 1, "y": [1, 2, 1], "name": "unstacked 1", |
| 20 | + "fill": "tozeroy", "legendgroup": "u", |
| 21 | + "line": {"color": "#888"}, "fillcolor": "rgba(136,136,136,0.8)" |
| 22 | + }, { |
| 23 | + "x0": -0.5, "y": [1, 1, 1, 1, 1], "name": "a 3", |
| 24 | + "stackgroup": "a", "legendgroup": "a", |
| 25 | + "line": {"color": "#ff0"}, "fillcolor": "rgba(255,255,0,0.8)" |
| 26 | + }, { |
| 27 | + "x0": 0.5, "y": [1, 1, 1, 1, 1], "name": "b 2", |
| 28 | + "stackgroup": "b", "legendgroup": "b", |
| 29 | + "line": {"color": "#80f"}, "fillcolor": "rgba(136,0,255,0.8)" |
| 30 | + }, { |
| 31 | + "x0": 1, "y": [5, 8, 5], "name": "unstacked 2", |
| 32 | + "fill": "tonexty", "legendgroup": "u", |
| 33 | + "line": {"color": "#ccc"}, "fillcolor": "rgba(204,204,204,0.8)" |
| 34 | + }, { |
| 35 | + "x": [0, 2, 4], "y": [7, 3, 7], "line": {"color": "#0c0"}, |
| 36 | + "name": "top", "legendgroup": "l" |
| 37 | + }, { |
| 38 | + "x0": 0.5, "y": [1, 1, 1, 1, 1], "name": "b 3", |
| 39 | + "stackgroup": "b", "legendgroup": "b", |
| 40 | + "line": {"color": "#f0f"}, "fillcolor": "rgba(255,0,255,0.8)" |
| 41 | + } |
| 42 | + ], |
| 43 | + "layout": { |
| 44 | + "width": 500, |
| 45 | + "height": 450, |
| 46 | + "title": "Stack groups and unstacked filled traces" |
| 47 | + } |
| 48 | +} |
0 commit comments