try https://jsfiddle.net/74cgu6pm/7 on both crome and firefox you will get to know the issue.legend: { width:'100%' },
Asked
Active
Viewed 225 times
0

jayanti khutwad
- 17
- 5
-
why not remove this propertirs from legend? By default it'll be centered. It should be a bug when use firefox – Fabio Ribeiro de Carvalho Jul 28 '21 at 10:29
-
Actually, it is centered by default. Can you see any difference? https://jsfiddle.net/BlackLabel/gauk938v/ – Sebastian Wędzel Jul 28 '21 at 12:05
-
Actually because of some reason, I wanted it to the full with by default it is half of the width.so I wanted to with width:100% – jayanti khutwad Jul 28 '21 at 15:41
-
May I ask why do you need a full width of the legend? – Sebastian Wędzel Jul 29 '21 at 09:08
1 Answers
1
If you want full width and center the legends, you can use custom legends with HTML & CSS and use CSS properties to style them
display: flex;
justify-content: space-around;
Otherwise use itemDistance property of Highcharts
legend: {
itemDistance: 100
},

Bipin MV
- 51
- 3