question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] The Heatmap colorscale is black on Mac Mojave Safari browser

See original GitHub issue

Plotly version 1.45.1

On Windows 10 with these browsers:

  • Chrome
  • Firefox
  • Microsoft Edge

My plot renders very well

12

But on Mac Mojave & Siera on Safari browser I have a black color scale

11

I dont get any error in the console, so I can’t have a clue what is happening!!!

My code

const data = [

    z: [
        [4, 6, 1, 7, 11, 16, 0]
        [6, 9, 7, 12, 22, 27, 0]
        [7, 14, 8, 15, 28, 38, 0]
        [7, 12, 6, 13, 25, 35, 0]
        [4, 8, 2, 9, 14, 21, 0]
        [3, 4, 4, 5, 10, 13, 0]
        [2, 1, 1, 1, 4, 5, 0]
        [3, 6, 3, 9, 12, 15, 0]
        [3, 6, 3, 8, 12, 17, 0]
        [0, 0, 0, 0, 0, 0, 0]
      ]
      x: ["<b>mon</b>", "<b>tue</b>", "<b>wed</b>", "<b>thu</b>", "<b>fri</b>", "<b>sat</b>", "<b>sun</b>"]
      y: ["10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00"]
      type: 'heatmap',
      xgap: 2, ygap: 2,
      colorscale: 'YlGnBu'
]


const layout = {
  font: {
    family: "arial", 
    size: 12, 
   color: "#8e8e8e"
  },
  paper_bgcolor: "#fff",
  plot_bgcolor: "#fff",
  xaxis: {
    type: "category", 
    range: [-0.5, 6.5],
    autorange: true
  },
  yaxis: {
   type: "category", 
   range: [-0.5, 9.5],
   autorange: true
  }
}

Plotly.newPlot(this.plotContainer.nativeElement, data, layout, {staticPlot: false });

What should I do? Does anybody have the same issue?

Thanks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
alexcjohnsoncommented, Mar 31, 2019

I’m guessing this is about a <base> element, and we need to incorporate context._baseUrl into Drawing.gradient, like we do in Drawing.setClipUrl

1reaction
George35mkcommented, Apr 11, 2019

@etpinard works 👍👍👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

If Safari on Mac doesn't open a webpage or isn't working as ...
From the menu bar in Safari, choose Safari > Settings (or Preferences). Then click Websites, Privacy, or Security to access these settings: ...
Read more >
macOS bugs causing sporadic browsing issues with Safari ...
An apparent bug — or series of bugs — in macOS 11.3 and 11.3.1 is causing seemingly random website browsing problems in Apple's...
Read more >
Why Are Images Not Showing Up in Safari on My Mac?
Not seeing images in Safari when browsing on your Mac or MacBook? Learn what to do when Safari doesn't load any images on...
Read more >
New Safari beta allows websites to adapt their theme to ...
The new Safari Technology Preview brings a much-needed feature to the Mac browser. macOS Mojave introduced a new Dark Mode system appearance ...
Read more >
Browsers don't restore tabs after quitting in macOS Mojave
Looks like you have found a bug, I can reproduce your issue on my Mac running 10.14.1. It does work after logging out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found