0

Hello everyone is it possible to remove top and bottom white space without changing my chart height?

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

The above is not a good option. Destroys my graph because height is auto I belive. enter image description here

enter image description here

New screenshot with top and bottom at 30, enter image description here

Strike
  • 77
  • 1
  • 7
  • top and bottom specify the distance in pixels from the coordinate grid of the chart. If set to 0 everything above/beneath the grid itself will be cut off. Try a few other values to get your expected result. – Matthias Mertens Aug 04 '23 at 10:25
  • Still if i go 30,30 for example my chart will resize the height. Maybe I should give specific height – Strike Aug 04 '23 at 13:09
  • I'm not sure what you are trying to achieve. Why is it a problem if the chart height is different? – Matthias Mertens Aug 04 '23 at 13:20
  • What I want is to put my Ideal, Not Ideal more close to my graph without changing my graph height. I will post a screenshot to my main question in a minute to understand what I mean exactly – Strike Aug 04 '23 at 13:23
  • Ah... So this depends on how you realized the label. If it is a visual map you can set top / bottom of the visual map – Matthias Mertens Aug 04 '23 at 14:06
  • I will check visual map. My label is external not related with the chart just an other stack below. – Strike Aug 04 '23 at 14:11
  • If you would share the code it would be easier to help. Maybe you can make an example in the [echarts online editor](https://echarts.apache.org/examples/en/editor.html?c=line-simple). – Matthias Mertens Aug 04 '23 at 14:19

0 Answers0