Jump to content

Recommended Posts

Posted

I'm using the default gauge mod visualization of Spotfire but it only gives an option for the background opacity, is there a way that I can change the color of it using ranges? image.png.e9aac665d8f99cd2e303086a3525c9df.pngSomething similar to this. 0 to 50 red, 50 to 100 yellow, and 100 to 150 green.

If it is not possible using this mod, anyone knows any other way of doing so, maybe using JavaScript?

Posted

Hello!

This is not possible in the current version of the Gauge mod, but there is an existing idea for it that you could vote for:  

Gauge with the ability to color using numeric values

https://ideas.tibco.com/ideas/TS-I-9260

The mod is open source (available on Github - https://github.com/TIBCOSoftware/spotfire-mod-gauge) so you are also free to implement this yourself. If you have no previous experience with Mods development, https://community.spotfire.com/s/article/Spotfire-Mods-Developers-Hub-Fundamentals would be a good starting point. Alternatively, that page is also a good starting point if you find an existing gauge chart that provides the exact functionality you want in one of the many existing JavaScript graphics libraries (just googling for "javascript gauge chart" I found a number of gauge charts that seemed like good candidates)

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...