Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-chartjs

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-chartjs

Node-RED Chart.js node

  • 0.2.4
  • npm
  • Socket score

Version published
Weekly downloads
48
decreased by-29.41%
Maintainers
1
Weekly downloads
 
Created
Source

node-red-contrib-chartjs

Chart.js Node-RED nodes

Charts RED Dashboards

Description

This node permit to use Charts from Chart.js from Node-RED. The objective is create a new node-red path for each chart created, this path could be configured and updated at runtime.

Installation

npm install node-red-contrib-chartjs --save

Charts implemented

  • Line Chart

line_chart

  • Vertical Bar Chart

vertical_bar_chart

  • Horizontal Bar Chart

horizontal_chart

  • Pie Chart

pie_chart

  • Doughnut Chart

doughnut_chart

  • Polar Area Chart

polar_chart

  • Bubble Chart

buble_chart

  • Radar Chart

radar_chart

Chart configuration

The Chart attributes are:

  • Path: The Chart path to be access
  • Tittle: The tittle of the chart
  • X Axis: The X axis name
  • Y Axis: The Y axis name
  • Payloas: The dataset to be drawed

The Chart Payload attributes are:

  • channel: channel label legend name
  • color: color of the chart line
  • dataset: dataset array.

The Payload attributes are:

  • x: x axis dataset value
  • y: y axis dataset value

Check the node help to know the Dataset structure for each chart A Line Chart dataset could be like this:

{
    "channel": "Population",
    "color": "Green",
    "dataset": [
        {
            "x": "Europe",
            "y": 741
        },
        {
            "x": "Australia",
            "y": 24
        },
        {
            "x": "Africa",
            "y": 1.2
        },
        {
            "x": "America",
            "y": 325
        },
        {
            "x": "Asia",
            "y": 4.4
        }
    ]
}

Dependencies

Server side

Client side

  • socker.io-client: socket.io client side
  • jquery: multipurpose javascript library
  • Chart.js: Simple yet flexible JavaScript charting for designers & developers

Example

Under example folder you have all json flows to be imported in your node-red instance and test the node.

Keywords

FAQs

Package last updated on 07 Feb 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc