RJP43 / CitySlaveGirls

The Restoration of Nell Nelson
http://nelson.newtfire.org
5 stars 4 forks source link

SVG pulled from Collection #26

Closed ebeshero closed 8 years ago

ebeshero commented 8 years ago

@RJP43 @spadafour I've figured out what was going wrong with spacing your SVG bars, and it was a couple of things: the position() within the collection might not be a consistent calculation, so I found another attribute value (your @corresp on <title>) that yields us a reliable numerical value (after we grab it with substring-after() and the number() function). Also, to cluster your little groups of four bars, you don't want to be multiplying those by a number (on top of your multiplication of the xPos) because that spreads your bars too far apart. What you want is an addition there: bar 1: $xPos * $Interval bar 2: $xPos * $Interval + $barWidth bar 3: $xPos * $Interval + (2* $barWidth) bar 4: $xPos * $Interval + (3* $barWidth)

Does that make sense? I don't think I'd leave these sitting side by side, but I'd at least stack the male and female bars if they're adding up to 100%. See my comments in the commit (https://github.com/RJP43/CitySlaveGirls-ChicagoDailyTimes1888/commit/cc109e2ec3377106ab553ddeaba7a91d8d9ec1e1) and within your XSLT file.