echarts theme settings

Two step

1. Download the theme JS   https://echarts.baidu.com/download-theme.html

2. Initialize the time chart of the incoming subject name

var chart = echarts.init(document.getElementById('main'), 'vintage');
chart.setOption({
    ...
});

 

The complete code is as follows

<Script src = "echarts.js"> </ Script> 
<-! introduction vintage theme -> 
<Script src = "Theme / vintage.js"> </ Script> 
<Script> // second parameter specified previously incorporated relating var Chart = echarts.init (document.getElementById ( 'main'), 'Vintage' ); 
chart.setOption ({ 
    ... 
}); </ Script>


 

Guess you like

Origin www.cnblogs.com/vicF/p/10983316.html