-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[BUG] The Heatmap colorscale is black on Mac Mojave Safari browser #3700
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
Comments
Could you try to find which version of Safari you're using? |
Hi @etpinard Safari Version 12.1 (14607.1.40.1.4) |
Thanks @George35mk ! Interestingly https://codepen.io/etpinard/pen/xexrwV renders ok when I open it in Safari 12 on browserstack: Could you try:
|
very weird, I can't understand why on my app I get this issue |
OK good to know! Can you try reproducing the problem in a codepen? |
I am using angular 7, maybe on stackblitz, give me some minutes, I will try now |
Sry I try it to create an example but I can't reproduce the issue. |
I'm guessing this is about a |
I am not sure if this issue is related but maybe is https://stackoverflow.com/questions/43140737/svg-fill-urlfoo-disappears-when-svgs-are-loaded-dynamically |
I finally reproduce the error. @etpinard @alexcjohnson open the Safari browserin order to see the issue you must load this example https://stackblitz.com/edit/angular-eezqzs?file=src%2Findex.html
-stpe 3: then select the home page again. |
on the step 1 the url is https://angular-eezqzs.stackblitz.io something is hapening on the base url <rect class="cbbg" x="719.5" y="-0.5"
width="64.359375" height="627"
style="fill: rgb(0, 0, 0); fill-opacity: 0; stroke: rgb(68, 68, 68); stroke-opacity: 1; stroke-width: 0px;">
</rect>
<g class="cbfills" transform="translate(0,10)">
<rect class="cbfill" x="730" width="30" y="0" height="606"
style="stroke: none; fill: url(#gc743e2-cb397e5c);">
</rect>
</g>
If I do this, the colorscale will work as expected. <rect class="cbfill" x="730" width="30" y="0" height="606"
style="stroke: none; fill: url('https://angular-eezqzs.stackblitz.io/home#g27bcfc-cb8d00e4');">
</rect>` |
https://github.com/plotly/plotly.js/compare/handle-base-href-in-gradient-url proposes a fix for this issue. It is bundled in https://32947-45646037-gh.circle-artifacts.com/0/dist/plotly.min.js @George35mk Would you mind testing: https://stackblitz.com/edit/angular-wg7dch?file=src/index.html on your Safari to confirm that the fix works as expected? Thank you! |
Ok, give me 2 min |
@etpinard works 👍👍👍 |
Plotly version 1.45.1
On Windows 10 with these browsers:
My plot renders very well
But on Mac Mojave & Siera on Safari browser I have a black color scale
I dont get any error in the console, so I can't have a clue what is happening!!!
My code
What should I do?
Does anybody have the same issue?
Thanks.
The text was updated successfully, but these errors were encountered: