Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Echarts how to make chart span 2 (or more) grid cells

In Apache echarts I want to make more advanced layouts akin to matplotlib gridspec or row and col spanning in plotly. Is this doable? For example is it possible to make this layout in echarts?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can specify each grid in absolute or relative coordiantes.

Example:

grid: [
    { left: '7%', top: '7%', right: '7%', height: '25%' },
    { left: '7%', top: '37%', width: '55%', height: '25%' },
    { left: '7%', bottom: '7%', width: '25%', height: '25%' },
    { right: '7%', bottom: '7%', width: '27%', height: '56%' }
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading