GithubHelp home page GithubHelp logo

Comments (6)

NikoRoberts avatar NikoRoberts commented on August 15, 2024 1

Ok I'll leave up to the contributors to decide

from charts.

tom-sherman avatar tom-sherman commented on August 15, 2024

This is due to the default behaviour to disable background images/colours when printing.

You can get around this by turning on "Background Graphics" in the Chrome print menu, it probably lives in other places on different browsers.

There are some possible solutions on the below SO thread, although I haven't tried any.

https://stackoverflow.com/questions/3893986/css-media-print-issues-with-background-color

from charts.

NikoRoberts avatar NikoRoberts commented on August 15, 2024

ah, new computer. It only happened on some graphics so I assumed it was on..
Thanks.

from charts.

tom-sherman avatar tom-sherman commented on August 15, 2024

Not sure if this should be closed, there should be some effort to prevent the issue in code. This is supposed to be a responsive library after all 😃

from charts.

pratu16x7 avatar pratu16x7 commented on August 15, 2024

I can't seem to be able to replicate the issue, @tom-sherman does the default behaviour to disable background images/colours while printing also apply to SVGs with fill attributes?

from charts.

tom-sherman avatar tom-sherman commented on August 15, 2024

@pratu16x7 I can't replicate this either, both background-colors and fills now render correctly when printing.

I checked Chrome 64 and Firefox 59 on Windows 10. I'm pretty sure this setting can be set at an OS level as well though, so maybe a simple note about printing in the Readme is enough. Users of the library can use tricks such as -webkit-print-color-adjust if printing is important to them I guess.

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.