New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

echarts-node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

echarts-node

echarts的服务端渲染版本

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

echarts-node

让echarts支持服务端渲染

安装

npm install echarts-node

使用

var echartsNode = require('echarts-node');
//配置项,canvas的尺寸等
var config = {
    width: 300,
    height: 300
};
var myChart = echartsNode.init(config);

//echarts配置
var option = {};
myChart.setOption(option);

函数说明

函数名参数描述必填返回值
initObject config创建canvas,初始化echartsObject echartsInstance

配置项(config)

属性类型缺省值描述必填
widthNumber300canvas宽度
heightNumber300canvas高度

echarts实例(myChart)

https://echarts.apache.org/zh/api.html#echartsInstance

echarts配置项(option)

https://echarts.apache.org/zh/api.html#echartsInstance.setOption

FAQs

Package last updated on 07 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts