1.0.0 • Published 2 years ago

node-red-contrib-echarts v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

node-red-contrib-echarts

A Node-RED node that creates SVG charts, using the Apache ECharts library.

Install

Either use the Node-RED Menu - Manage Palette - Install, or run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-contrib-echarts

Usage

You pass the chart configuration in the msg.payload.

Please refer to the ECharts documentation.

Example

msg.payload = {
  title: {
    text: 'ECharts Getting Started Example'
  },
  tooltip: {},
  legend: {
    data: ['sales']
  },
  xAxis: {
    data: ['Shirts', 'Cardigans', 'Chiffons', 'Pants', 'Heels', 'Socks']
  },
  yAxis: {},
  series: [
    {
      name: 'sales',
      type: 'bar',
      data: [5, 20, 36, 10, 10, 20]
    }
  ]
};