简体   繁体   中英

Highcharts - how to align two charts on a same line

What will be the best way to align two charts on a same line? The thing is that I have different number of legend items and the height differs from one another. I've tried playing around the legend position, but it doesn't seem to work for me

在此处输入图片说明

You can set maxHeight parameter per each legend, then always this object have the same size. As a result your chart will be aligned.

http://api.highcharts.com/highcharts#legend.maxHeight

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM