GithubHelp home page GithubHelp logo

camueller / node-red-contrib-ui-timelines-chart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sanlike0911/node-red-contrib-ui-timelines-chart

0.0 2.0 0.0 1019 KB

A Node-RED widget node for showing the chart of status.

License: MIT License

Batchfile 0.19% JavaScript 34.25% HTML 15.07% TypeScript 50.49%

node-red-contrib-ui-timelines-chart's Introduction

node-red-contrib-ui-timelines-chart

A Node-RED widget node for showing the timelines chart.

ui-timelines-chart

node-red

Pre-requisites

The node-red-contrib-ui-timelines-chart requires Node-RED Dashboard 2.10 to be installed.

Install

npm install node-red-contrib-ui-timelines-chart

Note: This node uses APIs that require at least Node-RED 0.19 and Node-RED Dashboard 2.10.

Usage

"ui-timelines-chart" node is a UI widget that can be used to display the timelines chart in the Node-RED dashboard.

This Node-Red module can not directly connect to Database.

  • Widget properties

    widget propertie

    • name

      Set for the node name to be displayed in flow.

    • group

      Set for the group to be displayed on the dashboard.

    • size

      Set the size on the dashboard.

    • label

      Set for the name to be displayed on the dashboard.

    • xAxis tick format

      Set for the x-axis tick format.

      - YYYY-MM-DD HH:mm:ss
      - YYYY-MM-DD
      - HH:mm:ss
      - HH:mm
      - HH
      ....

      *ISO 8601 format

    • xAxis start date

      Set for the start time for the X axis. If not set, select the first data.

    • xAxis end date

      Set for the end time for the X axis. If not set, select the last data.

    • xAxis labels size[px]/color

      Set font size[px] and font color to X-axis label. size: from 0 to 64(default:16)

    • yAxis labels size[px]/color

      Set font size[px] and font color to Y-axis label. size: from 0 to 64(default:16)

    • reset zoom label size[px]/color

      Set font size[px] and font color to reset zoom label. size: from 0 to 64(default:24)

    • chart's height[px]

      Set for the maximum height of each line, in px. height: from 1 to 255(default:60)

    • enable animations

      Set whether to animate transitions.

    • enable date marker(now)

      Set whether to display the current date of the vertical line.

    • enable forward input messages

      Set whether to forward input messages to output.

    • legends

      Set the color and value to be displayed on the chart.

  • Input items

    An array of Items is passed in by msg.payload. It consists of objects containing the following properties.

    [Data syntax]

    {
        dataItems:[
            {
                group: "group1name",
                data: [
                {
                    label: "label1name",
                    data: [
                    {
                        timeRange: [<date>, <date>],
                        val: <val: number (continuous dataScale) or string (ordinal dataScale)>
                    },
                    {
                        timeRange: [<date>, <date>],
                        val: <val>
                    },
                    (...)
                    ]
                },
                {
                    label: "label2name",
                    data: [...]
                },
                (...)
                ],
            },
            {
                group: "group2name",
                data: [...]
            },
            (...)
        ],
        settings:{
            xAxis:{
                tickFormat: <val: string (YYYY-MM-DD HH:mm:ss)>,
                startDateTime: <date>,
                endDateTime: <date>,
                labelsFontSize: <val: number (from 0 to 64[default:16])>
                labelsColor: <val: string (from #000000 to #ffffff[default:#000000])>
            },
            yAxis:{
                labelsFontSize: <val: number (from 0 to 64[default:16])>
                labelsColor: <val: string (from #000000 to #ffffff[default:#000000])>
            },
            resetZoom:{
                labelFontSize: <val: number (from 0 to 64[default:24])>
                labelColor: <val: string (from #000000 to #ffffff[default:#000000])>
            },
            chart:{
              height: <val: number (from 1 to 255[default:60])>
              lineColors <{val: string (from #000000 to #ffffff[default:#000000]), val: string (label name)}>,
            },
            options:{
              enableAnimations: <boolean>,
              enableDateMarker: <boolean>
            }
        }
    }
    

    priority: (msg.payload.settings > node property settings)

node-red-contrib-ui-timelines-chart's People

Contributors

camueller avatar sanlike0911 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.