Relative Content

Tag Archive for javascriptecharts

Render image while keeping ratio in Echarts label

I have a bar chart that displays operators statistics, and I want to use the logo of each operator as a label. Currently, I have managed to make it display the image, but only with a fixed ratio.

ECharts: How to fix margin when resize the chart

I put a ECharts chart into a resizable div, and using a ResizeObserver to listen to the container size to change the chart size. My problem is, it seems the chart is resized by ratio. When the chart becomes larger, the margin in the left and right size also becomes larger. Is there a way to fix the margin size?