Giter Site home page Giter Site logo

Comments (6)

colinl avatar colinl commented on July 19, 2024

Have you tried restarting node-red?

from node-red-dashboard.

colin-grierson avatar colin-grierson commented on July 19, 2024

And then I restarted node-red and the gauge appeared! However there appears to be a discrepancy in the coloring of the inner and outer rings
image
image
image

This happens because my data range (10-100) and segments range (0-100) were not the same
image
The color changes align when the ranges are the same, e.g. both the green segment and the range starting at 10

It goes wrong the other way too. Starting the data range at zero and the first segment at 20 I get this:
image
image

I think the segment colors need to be positioned within the data data range so the color changes always align. Either that or the editor should insist the ranges are the same.

Cheers, Colin

from node-red-dashboard.

colin-grierson avatar colin-grierson commented on July 19, 2024

Thanks ColinL, I'll add a restart to my trouble shooting in future.

from node-red-dashboard.

colinl avatar colinl commented on July 19, 2024

It should not be necessary, but I think there are still some issues to be sorted out with D2 that mean that a restart may be required under various conditions.

from node-red-dashboard.

joepavitt avatar joepavitt commented on July 19, 2024

Restart isn't necessary, this occurs when the min of the Gauge doesn't match the first segment provided in the list of colours.

I have it on my list to make this check more robust

from node-red-dashboard.

joepavitt avatar joepavitt commented on July 19, 2024

Summarising todos in here:

  • Update the documentation to specify msg.payload is how to set the value
  • Better validation in the NR Editor to make sure that the min value aligns with the smallest provided segment.
  • Can also offer validation if a segment is provided that is larger than the max.

from node-red-dashboard.

Related Issues (20)

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.