-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for 360-degree gauge #13
Comments
This has been implemented - but I don't see a good way to show if the value has gone below the min or beyond the max. With a gauge displaying a range of 0 to 100, and 360 degrees, a value of -10 would be pinned to the same location as 0 and 100. Same with a value beyond 100. The needle could be modified to change color for "below 0" and "above 360", or add (MIN)/(MAX) to the unit text to indicate the value is out of bounds for the range. Ideas welcome :) |
v0.0.3 has this functionality, let me know if you see any issues with it. |
Is this feature present in the latest commit I downloaded from the Grafana plugin site? I think the change of needle or value color could really map negative values. But in my case I only have values from 0 to 360 degrees. In this special case it would be nice to have some kind of "ticks value mapping' (0 degrees N (on top of the gauge), 90 degrees E, 180 degrees S, 270 degrees W).... Regards, Christian |
I just discoved that I have to change the json code of my panel. I tried and got a 360 degree gauge, see screenshot. :-) But as tdobes wrote in his first post I want to move my '0 degree' value to the top. Any chance to modify the json code and to achive this with version 0.0.3? Another problem: 0 and 360 degree thick and the value overlap on the same position. I know it's a very special wish displaying a direction with this gauge but it would be nice to have a 'thick mapping' too. For example map 0 (or 360) to text N(orth), 90 to text E(ast)..etc.. My code: "mappingType": 1, Could you tell me the right settings to move the '0' to the top? Regards, Christian |
If you set Zero Tick Angle to 180, and Max Tick Angle to 540 you will have a full gauge with 0 at the top. You'll want to set Zero Needle Angle to 180, and Max Needle Angle to 540 also. There's two bugs to sort out:
|
Great, that's what I'm looking for! A nice mixture would be mapping + values: Another big thing for me would be to display another measurement as value inside the gauge (not the wind direction the needle show but the wind gust speed for example)!? But thats an extra thread feature wish I think. Thank you for adding this into v0.0.4! Regards, Christian |
Multiple values would be excellent, that'll take some time to get working (hand per value, and embedding the value inside the gauge). |
B.t.w. An option to hide the numerical value on a gauge would be nice too. |
Several items:
Do you have the JSON for the good v.0.0.3 that doesn't work in v0.0.4 by any chance?
|
Here is the code which doesn't work with 0.0.4 but gauges show on 0.0.3: Thanks for looking into that! { |
HI, Tanks in advance! Regards, Christian "...
Do you have the JSON for the good v.0.0.3 that doesn't work in v0.0.4 by any chance?
..." |
I'm looking at this now, the alignment issue really stands out with small values. |
Hi, just did a check once more: applying globally was my fault. A fix for the spacing for small values would be really nice. A workaround could be allow for leading and appdended spaces?! Regards, |
Leading/appending spaces sounds like a decent solution. Calculating the location would be better though :) |
HI, Just got this installed. Very nice work. Thank you. I got rid of the value display by mapping all values to 'no entry'. An option to turn it on/off would be nice. In my case the wind direction is 0-15, so not a nice number to display. I also noticed if I add another gauge they seem to share the same settings as the previous gauge on the panel! I was going to try to simulate a rain gauge but it messed up my wind direction compass. |
Does anyone have the JSON for the Compass that works with the latest Grafana? |
I have the latest version of grafana and installed the D3 gauge from the plugin option. I am using JSON API as the data source. I wrote a query to get data. data are shown in the table format but when I change to D3 gauge it shows zero. Also when i apply the changes in the penal gauge is not displayed on the dashboard. |
Gauge v9, Grafana 8.4.3 Note: My wind direction angles are reprorted as numbers 0 through to 16. With 0 and16 being north and 8 being south etc. json: |
Change the gauge tick mapping to reflect the 0 - 360 values you have |
It'd be helpful if it was possible to configure the portion of the gauge which is has values displayed. I'd like this functionality to create a 360-degree gauge to represent direction. Similarly, it would aos be helpful to be able to define where the "0" point is located, as I would like to put this at the top rather than the bottom of the gauge.
The text was updated successfully, but these errors were encountered: