|
1 | 1 | {
|
2 | 2 | "data": [
|
| 3 | + { |
| 4 | + "labels": [ "Lead", "Proposal", "Finalize"], |
| 5 | + "values": [ 100, 50, 25], |
| 6 | + "type": "funnelarea", |
| 7 | + "marker": { |
| 8 | + "colors": [ "orange", "yellow", "lightgreen"], |
| 9 | + "line": { |
| 10 | + "color": "lightgrey", |
| 11 | + "width": 2 |
| 12 | + }, |
| 13 | + "pattern": { |
| 14 | + "shape": [ "+", "", "-"], |
| 15 | + "fgcolor": [ "darksalmon", "black", "steelblue"] |
| 16 | + } |
| 17 | + }, |
| 18 | + "textfont": { "color": ["black", "white", "black"]}, |
| 19 | + "domain": {"y": [0.525, 1], "x": [0.61, 0.79]} |
| 20 | + }, { |
| 21 | + "labels": [ "Lead", "Proposal", "Finalize"], |
| 22 | + "values": [ 100, 50, 25], |
| 23 | + "type": "funnelarea", |
| 24 | + "marker": { |
| 25 | + "colors": [ "orange", "yellow", "lightgreen"], |
| 26 | + "line": { |
| 27 | + "color": "lightgrey", |
| 28 | + "width": 2 |
| 29 | + }, |
| 30 | + "pattern": { |
| 31 | + "shape": [ "+", "", "-"] |
| 32 | + } |
| 33 | + }, |
| 34 | + "textfont": { "color": "black"}, |
| 35 | + "domain": {"y": [0.525, 1], "x": [0.41, 0.59]} |
| 36 | + }, { |
| 37 | + "labels": [ "Lead", "Proposal", "Finalize"], |
| 38 | + "values": [ 100, 50, 25], |
| 39 | + "type": "funnelarea", |
| 40 | + "marker": { |
| 41 | + "colors": [ "orange", "yellow", "lightgreen"], |
| 42 | + "line": { |
| 43 | + "color": "lightgrey", |
| 44 | + "width": 2 |
| 45 | + } |
| 46 | + }, |
| 47 | + "domain": {"y": [0.525, 1], "x": [0.21, 0.39]} |
| 48 | + }, { |
| 49 | + "labels": [ "Lead", "Proposal", "Finalize"], |
| 50 | + "values": [ 100, 50, 25], |
| 51 | + "type": "funnelarea", |
| 52 | + "marker": { |
| 53 | + "colors": ["steelblue", "steelblue", "steelblue"], |
| 54 | + "line": { |
| 55 | + "color": "lightgrey", |
| 56 | + "width": 2 |
| 57 | + } |
| 58 | + }, |
| 59 | + "domain": {"y": [0.525, 1], "x": [0.01, 0.19]} |
| 60 | + }, |
3 | 61 | {
|
4 | 62 | "labels": [ "giraffe", "orangutan", "monkey"],
|
5 | 63 | "values": [ 30, 20, 50],
|
|
8 | 66 | "colors": [ "red", "green", "red"],
|
9 | 67 | "line": {
|
10 | 68 | "color": "lightgrey",
|
11 |
| - "width": 4 |
| 69 | + "width": 2 |
12 | 70 | },
|
13 | 71 | "pattern": {
|
14 | 72 | "shape": [ "+", "", "-"],
|
|
18 | 76 | },
|
19 | 77 | "textfont": { "color": ["black", "white", "black"]},
|
20 | 78 | "sort": false,
|
21 |
| - "domain": {"x": [0.81, 0.99]} |
| 79 | + "domain": {"y": [0, 0.475], "x": [0.81, 0.99]} |
22 | 80 | }, {
|
23 | 81 | "labels": [ "giraffe", "orangutan", "monkey"],
|
24 | 82 | "values": [ 30, 20, 50],
|
|
36 | 94 | },
|
37 | 95 | "textfont": { "color": ["black", "white", "black"]},
|
38 | 96 | "sort": false,
|
39 |
| - "domain": {"x": [0.61, 0.79]} |
| 97 | + "domain": {"y": [0, 0.475], "x": [0.61, 0.79]} |
40 | 98 | }, {
|
41 | 99 | "labels": [ "giraffe", "orangutan", "monkey"],
|
42 | 100 | "values": [ 30, 20, 50],
|
|
53 | 111 | },
|
54 | 112 | "textfont": { "color": "black"},
|
55 | 113 | "sort": false,
|
56 |
| - "domain": {"x": [0.41, 0.59]} |
| 114 | + "domain": {"y": [0, 0.475], "x": [0.41, 0.59]} |
57 | 115 | }, {
|
58 | 116 | "labels": [ "giraffe", "orangutan", "monkey"],
|
59 | 117 | "values": [ 30, 20, 50],
|
|
66 | 124 | }
|
67 | 125 | },
|
68 | 126 | "sort": false,
|
69 |
| - "domain": {"x": [0.21, 0.39]} |
| 127 | + "domain": {"y": [0, 0.475], "x": [0.21, 0.39]} |
70 | 128 | }, {
|
71 | 129 | "labels": [ "giraffe", "orangutan", "monkey"],
|
72 | 130 | "values": [ 30, 20, 50],
|
|
79 | 137 | }
|
80 | 138 | },
|
81 | 139 | "sort": false,
|
82 |
| - "domain": {"x": [0.01, 0.19]} |
| 140 | + "domain": {"y": [0, 0.475], "x": [0.01, 0.19]} |
| 141 | + }, { |
| 142 | + "labels": [ "Lead", "Proposal", "Finalize"], |
| 143 | + "values": [ 100, 50, 25], |
| 144 | + "type": "funnelarea", |
| 145 | + "marker": { |
| 146 | + "colors": [ "red", "green", "red"], |
| 147 | + "line": { |
| 148 | + "color": "lightgrey", |
| 149 | + "width": 4 |
| 150 | + }, |
| 151 | + "pattern": { |
| 152 | + "shape": [ "+", "", "-"], |
| 153 | + "fgcolor": [ "darksalmon", "black", "steelblue"], |
| 154 | + "bgcolor": "lightgrey" |
| 155 | + } |
| 156 | + }, |
| 157 | + "textfont": { "color": ["black", "white", "black"]}, |
| 158 | + "domain": {"y": [0.525, 1], "x": [0.81, 0.99]} |
83 | 159 | }
|
84 | 160 | ],
|
85 | 161 | "layout": {
|
86 |
| - "title": { "text": "pie chart with pattern"}, |
87 |
| - "width": 800 |
| 162 | + "title": { "text": "pie and funnelarea charts with pattern"}, |
| 163 | + "width": 800, |
| 164 | + "height": 400 |
88 | 165 | }
|
89 | 166 | }
|
0 commit comments