|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + { |
| 4 | + "labels": [ "giraffe", "orangutan", "monkey"], |
| 5 | + "values": [ 30, 20, 50], |
| 6 | + "type": "pie", |
| 7 | + "marker": { |
| 8 | + "colors": [ "red", "green", "red"], |
| 9 | + "line": { |
| 10 | + "color": "lightgrey", |
| 11 | + "width": 4 |
| 12 | + }, |
| 13 | + "pattern": { |
| 14 | + "shape": [ "+", "", "-"], |
| 15 | + "fgcolor": [ "darksalmon", "black", "steelblue"], |
| 16 | + "bgcolor": "lightgrey" |
| 17 | + } |
| 18 | + }, |
| 19 | + "textfont": { "color": ["black", "white", "black"]}, |
| 20 | + "sort": false, |
| 21 | + "domain": {"x": [0.81, 0.99]} |
| 22 | + }, { |
| 23 | + "labels": [ "giraffe", "orangutan", "monkey"], |
| 24 | + "values": [ 30, 20, 50], |
| 25 | + "type": "pie", |
| 26 | + "marker": { |
| 27 | + "colors": [ "red", "green", "blue"], |
| 28 | + "line": { |
| 29 | + "color": "lightgrey", |
| 30 | + "width": 4 |
| 31 | + }, |
| 32 | + "pattern": { |
| 33 | + "shape": [ "+", "", "-"], |
| 34 | + "fgcolor": [ "darksalmon", "black", "steelblue"] |
| 35 | + } |
| 36 | + }, |
| 37 | + "textfont": { "color": ["black", "white", "black"]}, |
| 38 | + "sort": false, |
| 39 | + "domain": {"x": [0.61, 0.79]} |
| 40 | + }, { |
| 41 | + "labels": [ "giraffe", "orangutan", "monkey"], |
| 42 | + "values": [ 30, 20, 50], |
| 43 | + "type": "pie", |
| 44 | + "marker": { |
| 45 | + "colors": [ "red", "green", "blue"], |
| 46 | + "line": { |
| 47 | + "color": "lightgrey", |
| 48 | + "width": 4 |
| 49 | + }, |
| 50 | + "pattern": { |
| 51 | + "shape": [ "+", "", "-"] |
| 52 | + } |
| 53 | + }, |
| 54 | + "textfont": { "color": "black"}, |
| 55 | + "sort": false, |
| 56 | + "domain": {"x": [0.41, 0.59]} |
| 57 | + }, { |
| 58 | + "labels": [ "giraffe", "orangutan", "monkey"], |
| 59 | + "values": [ 30, 20, 50], |
| 60 | + "type": "pie", |
| 61 | + "marker": { |
| 62 | + "colors": [ "red", "green", "blue"], |
| 63 | + "line": { |
| 64 | + "color": "lightgrey", |
| 65 | + "width": 4 |
| 66 | + } |
| 67 | + }, |
| 68 | + "sort": false, |
| 69 | + "domain": {"x": [0.21, 0.39]} |
| 70 | + }, { |
| 71 | + "labels": [ "giraffe", "orangutan", "monkey"], |
| 72 | + "values": [ 30, 20, 50], |
| 73 | + "type": "pie", |
| 74 | + "marker": { |
| 75 | + "colors": ["steelblue", "steelblue", "steelblue"], |
| 76 | + "line": { |
| 77 | + "color": "lightgrey", |
| 78 | + "width": 4 |
| 79 | + } |
| 80 | + }, |
| 81 | + "sort": false, |
| 82 | + "domain": {"x": [0.01, 0.19]} |
| 83 | + } |
| 84 | + ], |
| 85 | + "layout": { |
| 86 | + "title": { "text": "pie chart with pattern"}, |
| 87 | + "width": 800 |
| 88 | + } |
| 89 | +} |
0 commit comments