0.0.6 • Published 3 years ago

echarts-svg v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

echarts-svg

Output echarts svg image on node enviroment.

Required:

Node >= v12.16.1

Usage:

const chart = require('echarts-svg').create({
    // svg font size
    fontSize: '12px',
    // render mode
    // default: use global document to init echarts
    // thread: use workthread to isolate echarts global context
    mode: 'default'
});
chart.render({
    color: ['#80FFA5', '#00DDFF', '#37A2FF', '#FF0087', '#FFBF00'],
    title: {
        text: 'chart title'
    },
    //... echartOption
}, {
    width: 800,
    height: 600
})
    .then(svgText => {
        console.log(svgText)
    });
0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago