Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update svg.js #1

Open
wants to merge 1 commit into from

1 participant

@patorjk

FireFox currently displays the height and width of the svg as 150x300. This is because FireFox doesn't recognize the height and width styling for the svg without the 'px' identifier on the end.

@patorjk patorjk Update svg.js
FireFox currently displays the height and width of the svg as 150x300. This is because FireFox doesn't recognize the height and width styling for the svg without the 'px' identifier on the end.
e3739d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 25, 2014
  1. @patorjk

    Update svg.js

    patorjk authored
    FireFox currently displays the height and width of the svg as 150x300. This is because FireFox doesn't recognize the height and width styling for the svg without the 'px' identifier on the end.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 3 deletions.
  1. +2 −3 ch2/svg.js
View
5 ch2/svg.js
@@ -1,8 +1,7 @@
-
var svg = d3.select('#graph')
.append('svg')
- .style('width', 1024)
- .style('height', 768);
+ .style('width', '1024px')
+ .style('height', '768px');
svg.append('text')
.text("A picture!")
Something went wrong with that request. Please try again.