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.0.1
  • npm
  • Socket score

Version published
Weekly downloads
84
increased by2.44%
Maintainers
1
Weekly downloads
 
Created
Source

node-red-contrib-chartjs

Chart.js Node-RED node

Charts RED Dashboards

Description

This node permit to use the Line chart 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. Right now only the line chart of Chart.js was implemented. In the future will implement the rest of the charts of this library and include serveral channels on the same chart.

Installation

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

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

Dataset Example:

{
    "channel": "TP01",
    "color": "Red",
    "dataset": [
        {
            "x": 1,
            "y": 10
        },
        {
            "x": 2,
            "y": 8
        },
        {
            "x": 3,
            "y": 15
        },
        {
            "x": 4,
            "y": 10
        },
        {
            "x": 5,
            "y": -2
        }
    ]
}

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

Keywords

FAQs

Package last updated on 06 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