question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Negative values in gauge

See original GitHub issue

Description

Hello, Is it possible to use a negative value in a gauge ? For example a negative minimum

Steps to check or reproduce

var chart = bb.generate({
  data: {
    json: {
    	value: [25]
    },
    type: "gauge"
  },
  gauge: {
  	min: -100,
    max: 100
  },
  size: {
    height: 180
  },
  bindto: "#gaugeChart"
});

image

Here a link to a fiddle : https://jsfiddle.net/vcz3ru2a/

Thank you for your help and your work !

Victor

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
netilcommented, Mar 20, 2020

🎉 This issue has been resolved in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

1reaction
netilcommented, Sep 23, 2019

Thanks @pvictor @TimTeaFan both for the thoughtful comments.

I agree on providing A simple one-metric gauge. Hence adding or supporting different data variation visualization in a gauge isn’t a good idea.

I’ll be considering to implement as different type for the last visualization that I mentioned(https://github.com/naver/billboard.js/issues/1071#issuecomment-532993699).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gauge does not show correctly with Negative values
Solved: Gauge does not show correctly with Negative values - Microsoft Power BI Community.
Read more >
Gauge card: can it show negative numbers? - Frontend
Came here to ask the same, but indeed it accepts negative values even though the tooltip states you need to enter a value...
Read more >
How can a River Stage be Negative? - National Weather Service
In summary, when a river gauge reads zero or in the negative numbers - it does not mean that the river has gone...
Read more >
Gauge chart for Both positive and Negative values in Tableau
this video will help you to learn how to develop gauge chart for both positive and negative chart in tableau.
Read more >
Gauge metric negative - Google Groups
Hello Cht G,. These metrics values do indeed look very suspicious! By convention, counters can only increase and should never be negative ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found