Transparent plotly-graph (e.g. for in Picture-Elements-Card) #48
Replies: 3 comments 28 replies
-
I tried adding paper and plot bg color to a standalone plotly graph and while it does work for transparency < 100%, I see a background when I set the transparency to 100%. In theory the entire plot should be transparent except for the lines, fonts etc. But there should not be a background. Top is an apexcharts graph with card mod. So working background/card transparency. Bottom is plotly with rgba(0,0,0,0) |
Beta Was this translation helpful? Give feedback.
-
Thank you for the explanation :) Clearly not transparent. I cannot see how my code would be incorrect since I can change the color to whatever I want by simply setting transparency to a value > 0 and changing the RGB values. So the code seems to work. But maybe you see something?
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For my home-map I needed a transparent plotly-graph.
After talking with dbuezas (the creater of this card) about this (#47) it now is possible to make the plotly-graph partially or full transparent. 😍
Since the Version v1.3.2 (at the moment only Beta) the complete-background of the plotly-graph-card is now transparent by standard, so with
paper_bgcolor:
andplot_bgcolor:
you can make it as transparent or colored as you like.paper_bgcolor:
: Color of the whole card (in this example: green with 50% opacity/transparency)plot_bgcolor:
: Color of the coordinate system (in this example: red with 30% opacity/transparency)Maybe you also need to recolor the text e.g. for the axis.
So many thanks to the awsome creator of this really powerfull card!!! 👏👏👏
I'm very interested to see with what kind of ideas other people came up.
My full code with additional features used:
Beta Was this translation helpful? Give feedback.
All reactions