Skip to content

Commit 015b881

Browse files
archmojemilykl
authored andcommitted
round bar_attrs_relative
1 parent b122521 commit 015b881

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
17.3 KB
Loading
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"data":[
3+
{
4+
"width":[1,0.8,0.6,0.4],
5+
"text":[1,2,3333333333,4],
6+
"textposition":"outside",
7+
"y":[1,2,3,4],
8+
"x":[1,2,3,4],
9+
"type":"bar"
10+
}, {
11+
"width":[0.4,0.6,0.8,1],
12+
"text":["Three",2,"inside text",0],
13+
"textposition":"auto",
14+
"textfont":{"size":[10]},
15+
"y":[3,2,1,0],
16+
"x":[1,2,3,4],
17+
"type":"bar"
18+
}, {
19+
"width":1,
20+
"text":[-1,-3,-2,-4],
21+
"textposition":"inside",
22+
"y":[-1,-3,-2,-4],
23+
"x":[1,2,3,4],
24+
"type":"bar"
25+
}, {
26+
"text":[0,"outside text",-3,-2],
27+
"textposition":"auto",
28+
"y":[0,-0.25,-3,-2],
29+
"x":[1,2,3,4],
30+
"type":"bar"
31+
}
32+
],
33+
"layout":{
34+
"xaxis": {"showgrid":true},
35+
"yaxis": {"range":[-6,6]},
36+
"height":400,
37+
"width":400,
38+
"barcornerradius": "50%",
39+
"barmode":"relative",
40+
"barnorm":""
41+
}
42+
}

0 commit comments

Comments
 (0)