top | item 24986636

(no title)

mygo | 5 years ago

yep the upper fence for the vertical scale is derived from the vote totals statistics. If the set of vote totals is now in votes per square mile, then there would likely be a different upper fence. Might be worth the number crunching to figure out what that number is.

BTW just to double-check, I'm assuming that in this given fillOpacity formula, that a fillOpacity > 1 just resolves to 1. So like fillOpacity : min(votesPerSquareMile/upperFence, 1).

discuss

order

vilhelm_s|5 years ago

Yeah, the Esri fillOpacity property just becomes an SVG property, and the SVG specification requires that it gets clamped to [0,1] before rendering.

In addition to computing the quartiles correctly, I also realized you should probably use (AREALAND+AREAWATER) rather than just AREALAND... in the above image the great lakes counties look suspiciously overemphasized. :)

mygo|5 years ago

let me know how it turns out! Do you have a link to your fork?