How to minimize whitespace around Baidu’s echarts

In ECharts 4, 5

As mentioned by some other posters, the correct way to get rid of the whitespace is to change options.grid.

https://echarts.apache.org/en/option.html#grid

grid: {
  left: 0,
  top: 0,
  right: 0,
  bottom: 0
}

In ECharts 4, the names of the grid properties have been changed to left, right, top, and bottom.

Thanks to the answers above for pointing me in the right direction!

Further, changing the option.legend, as suggested above, had no effect on my chart.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)