node-red-contrib-echarts 1.0.0

Node-RED node for creating SVG charts, using the Apache ECharts library.

npm install node-red-contrib-echarts

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]
    }
  ]
};

Collection Info

Node Info

Version: 1.0.0
Updated 2 years, 11 months ago
License: MIT
Rating: 4.0 1

Categories

Actions

Rate:

Downloads

13 in the last week

Nodes

  • echarts

Keywords

  • node-red
  • svg
  • charts
  • echarts

Maintainers