# node-echarts **Repository Path**: chenzhenguo/node-echarts ## Basic Information - **Project Name**: node-echarts - **Description**: Generate chart by echarts in nodejs. - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-12-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # node-echarts Generate chart by Echarts in Nodejs. ### Install OS | Command ----- | ----- OS X | `brew install pkg-config cairo pango libpng jpeg giflib` Ubuntu | `sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++` Fedora | `sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel` Solaris | `pkgin install cairo pango pkg-config xproto renderproto kbproto xextproto` Windows | [Instructions on our wiki](https://github.com/Automattic/node-canvas/wiki/Installation---Windows) ``` npm install node-echarts ``` ### Usage ```javascript var node_echarts = require('node-echarts'); node_echarts({ 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. }) ```