Comments (5)
There are, I think, about three separate issues here:
- Updating our stylesheet for print media (so that the header, footer, sidebar, etc. does not appear)
- Making sure coloured images gracefully degrade into B&W
- Actually implementing a print button (this is pretty trivial).
I think actual "generate a PDF" functions are more common with, say, academic articles that start as PDFs than with dynamic websites with lots of interactive components. IIRC statically rendering offline and outside a browser is relatively difficult because it would rely on terminal Javascript and SVG emulation, neither of which common browser emulators like mechanize do.
As a result, I don't think it makes sense to directly implement a PDF button.
However, most browsers now have print-to-PDF capabilities. No idea if Windows 10 does natively, but you can use CutePDF or Foxit or other options to add a PDF print driver. OSX does natively at the system level. I would assume most Desktop linux distros do as well. Probably better to just make the print function look nice and then rely on users to select PDF as a print destination.
from webvoteview.
Not sure if this is the right place, but the resolution on the PNG downloads of ideological space figures is pretty rough.
from webvoteview.
I will take a look at what it looks like right now. I am sure there are parameters to help improve the look
from webvoteview.
I would like to add here that the downloadXLS feature and code is broken.
from webvoteview.
You can now print votes using your browser's print function, and it looks good. We don't degrade our colour maps to B&W--not sure if this is plausible--but the stylesheet is updated so some of the worst intrusions don't show up when printing, and I make a few other tweaks. Either way, a high school teacher can now print our stuff!
from webvoteview.
Related Issues (20)
- Congress page doesn't load HOT 1
- Parties at a glance should hide minor parties by default
- Fix party page for party 328 (independent) -- JS error [python3 only]
- Add congress codes to metadata
- Brush to select on Congress DW-NOMINATE plot shows NaN when selecting far-right
- Wikipedia key vote not an option on search facets
- Check or update service dates HOT 1
- Rewrite JS in modern-ish (ES6 or newer) Javascript
- Better link previews for rollcall votes
- Party bios should support HTML
- Trump vote on Gorsuch may be wrong
- Map download colors missing HOT 1
- Bulk vote download problem
- More friendly 500 error page
- Downloading zoomed map HOT 1
- Data downloads all 404 HOT 4
- Show member departures
- Add issue codes to csv files
- Scalia confirmation vote
- Load 97th Congress bill numbers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webvoteview.