Jump to content

Chart Background Transparency


Vincent Thuilot
Go to solution Solved by Vincent Thuilot,

Recommended Posts

Hello

I would like to replicate a visual like the one attached (see that there is a radial gradient background) in Spotfire but it seems there is no option to control visual background transparency level.
As a result, all my charts have a white background or a single color background if i use dark mode. Is there maybe a workaround? 

This could enhance the overall design of a dashboard

 VisualTransparency.JPG.7358638e62427523c83104de09e73662.JPG

Link to comment
Share on other sites

Hello Vincent!

Like many things in Spotfire, you could accomplish this with JavaScript. The canvas has an element associated with it, you could querySelector it and change it's background style like any other HTML element. If you leave the visuals with a transparent background, you wouldn't need to change them. Not 100% sure on the exact coding you'd have to write, you may need something like a mutation observer in case Spotfire has some looping code to set the canvas or something. 

 

Link to comment
Share on other sites

  • Solution

OK thanks for the suggestions Olivier and Barchiel.

I have submitted 3 ideas to maybe have something out-of-the-box that would make it easier to end-users. Each of these are complementary. 
I believe that enhancing a little bit the design options could really render some dashboards MUCH better :)

- Visual Transparency https://ideas.spotfire.com/ideas/TS-I-9697
This would allow users to have a better grip for each visual's transparency on a given page (not just 0% or 100%)

- Background Gradient Option: https://ideas.spotfire.com/ideas/TS-I-9698
This would allow to users to really enhance the background of the Canvas or of the Visualizations

- Multiple Canvas Styling https://ideas.spotfire.com/ideas/TS-I-9699
Today when we edit the Canvas Styling options, it is being applied on all pages on all visuals at once.
Having the possibility to apply a specific canvas on specific page(s) and another one to other pages could provide more flexibility.

-I also came across this: Single Visual Background: https://ideas.spotfire.com/ideas/SPF-I-4906
This one already got 72 votes and really shows the need.

Hope it helps!
Vincent

  • Like 1
Link to comment
Share on other sites

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...