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.

Black chart on safari. Gradient dosnt work

See original GitHub issue

[ x ] bug report [ ] feature request [ ] support request

On safari browser chart is black. All works fine , but color is black. When i change [gradient]=“true” to false is ok but without gradient 👎

  lineChartColorScheme = {
    domain: ['#C40536', '#6d6d6d']
  }

Angular 5.0.0 “d3”: “^4.12.0”,

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
jbaker-vacommented, Nov 5, 2018

Also looking for a fix here.

5reactions
GerardoLSJcommented, Jun 20, 2018

This issue es because you have to pass the absolute route of the linearGradient in Safari

Back in version 3.1.0 they were using this approach :

https://github.com/swimlane/ngx-charts/blob/9b79199e909b0c4ea8959891fe63fa2835c2fb20/src/area-chart/area-chart.component.ts#L209

      let pageUrl = window.location.href;
      this.clipPathId = 'clip' + id().toString();
      this.clipPath = `url(${pageUrl}#${this.clipPathId})`;

But now i cant figure out how they’re passing the “base ref” to the charts

Now theyre using a variable called : gradientUrl but cant figure out how they link the base ref there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Black chart on safari gradient doesn't work #808 - GitHub
Create an Angular 5 application and import the necessary components and insert the ngx-charts-bar-vertical and load it up on safari and you'll ...
Read more >
Background-image: linear-gradient not working on Safari (OS X)
I'm trying to style a 100% width div with a dark background a green raster. It works fine in all the browsers, except...
Read more >
Gradients Not Showing Properly in Safari - Forum | Webflow
Safari can render transparent as the color black with a 0% opacity. To fix this, change any gradient stops from transparent to rgba(255, ......
Read more >
Change the color of text or add a gradient in Pages on Mac
Click the color stops below the slider to choose colors. Click near the bottom edge of the slider to add another color stop....
Read more >
background gradient not working in Safari - Highcharts
I am having difficulties getting chart backgrounds with color gradients to work on Safari. Initially any graph with a background gradient ...
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