2.0.6 • Published 4 years ago

@waye/node-echarts v2.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

node-echarts

Generate chart by Echarts in Nodejs.

Install

OSCommand
OS Xbrew install pkg-config cairo pango libpng jpeg giflib
Ubuntusudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
Fedorasudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel
Solarispkgin install cairo pango pkg-config xproto renderproto kbproto xextproto
WindowsInstructions on our wiki
npm install @waye/node-echarts

Usage

var node_echarts = require('@waye/node-echarts');
var config = {
    width: 500, // Image width, type is number.
    height: 500, // Image height, type is number.
    option: {}, // Echarts configuration, type is Object.
    //If the path  is not set, return the Buffer of image.
    path:  '', // Path is filepath of the image which will be created.
    enableAutoDispose: true  //Enable auto-dispose echarts after the image is created.
}

node_echarts(config)

Config

nametypedefaultdescription
widthNumber500Image width
heightNumber500Image height
optionObject{}Echarts Options
pathString-Path is filepath of the image which will be created. If the path is empty, return buffer.
enableAutoDisposeBooleantrueEnable auto-dispose echarts after the image is created.
2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago