Im trying the Echarts library for my graphs. I’d like to resize the plots when the window’s resize trigger is fired but I can’t find the way to do it.
Thanx for your help
Advertisement
Answer
JavaScript
x
6
1
var plot = echarts.init(yourDom);
2
plot.setOption({ });
3
window.onresize = function() {
4
plot.resize();
5
};
6