npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-ui-statechart

v0.2.1

Published

A Node-RED dashboard ui node.

Downloads

138

Readme

node-red-contrib-ui-statechart

NPM version CodeFactor npm

Description

Node-RED dashboard widget. Bar chart to visualize numeric values in relation, together with state represented by color.

Node-RED dashboard widget node-red-contrib-ui-statechart

State chart is special chart to combine visualization of value relations with state. The state is fully under user control. Chart doesn't calculate state for the series.

Configuration

Series

Configuring the series is mandatory. Series presented as name of the bar. Make them short as they do not rotate or scale. Configuration input of the series must be filled with comma separated string. Avoid space unless it is intentional.

For example: dog,cat,cow,sheep,goat

Series shortcuts

In addition the series can be automatically generated for 24 hours.
By using shortcut 24H the series generated with format 00,01,02,...,22,23

Shortcut 24h generates series without leading zeros - 0,1,2,...,22,23

Using valid shortcut adds option to turn on the highlight of bar represents current hour. To do so, use syntax 24H|L

Limits

By default the graph will be autoscaling so that it will adjust the y-axis to the range of the data. You can change this behavior by explicitly setting the limits. To do this uncheck Use dataset min & max checkbox and specify custom limits. One or both limits can be specified. If only one limit is specified, the other will still auto-scale. The y-axis will then range at least from Min to Max. Auto-scaling will still permit those boundaries to be stretched if the dataset exceeds the specified limits.

Other configurable options

  • Hide or show values
  • Color of bars
  • Font sizes
  • Color of texts

Input

Every bar in chart can be updated with new data independently. So you can send new data only for series where changes are needed.

msg.payload should carry an array of Object(s) where required properties are:

  • series - (string) name of series
  • value - (number) value
  • state - (boolean) state

Optional property

  • color - (string) color of bar

color property sets the color for the bar. This overrides the state and the colors defined in config. Accepted definition of color is named HTML color, RGB or hex (e.g red , RGB(100,50,64), #00CC45)

msg.payload = [{series:"A",value:123,state:true, color:"#00CC45"},{series:"D",value:32,state:false}]

msg.title (string) title of chart can be changed by sending new value msg.title = TILE OF CHART

Appendix

This widget is created for dedicated use. This restricts adding external dependencies and the widget must be held lightweight and responsive. Adding new options is highly possible if it makes sense and can be done with full respect of above.