Skip to content

Commit 0ed3c69

Browse files
committed
add pie automargin mocks
- one with default margins - one with margin:0
1 parent 26c6fc4 commit 0ed3c69

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
23.6 KB
Loading
39 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"data": [
3+
{
4+
"values": [1, 2, 3, 4, 5],
5+
"labels": ["apples", "oranges", "blueberries", "lemons", "watermelon"],
6+
"marker": {
7+
"colors": ["rgba(255,0,0,0.5)", "orange", "blue", "yellow", "green"]
8+
},
9+
"text": ["red delicious", "mandarin", "high bush", "meyer", "jubilee"],
10+
"textinfo": "label+text+value+percent",
11+
"textposition": "outside",
12+
"automargin": true,
13+
"type": "pie"
14+
}
15+
],
16+
"layout": {
17+
"height": 400,
18+
"width": 400,
19+
"margin": {"t": 0, "b": 0, "l": 0, "r": 0},
20+
"showlegend": false
21+
}
22+
}

test/image/mocks/pie_automargin.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"data": [
3+
{
4+
"type": "pie",
5+
"labels": ["Olive Development", "Gap Development", "Gap Extension", "Gap Wildcat", "Olive Injection", "Olive Wildcat"],
6+
"values": [39.4, 54.1, 3.08, 2.98, 0.411, 0.685],
7+
"textinfo": "label+percent",
8+
"hole": 0.5,
9+
"automargin": true
10+
}
11+
],
12+
"layout": {
13+
"legend": {
14+
"orientation": "h",
15+
"y": 1.2,
16+
"yanchor": "bottom",
17+
"x": 0.5,
18+
"xanchor": "center"
19+
},
20+
"width": 700,
21+
"height": 450
22+
}
23+
}

0 commit comments

Comments
 (0)