equitablegrowth / Playfair

Web application for creating publication ready charts and graphs
http://www.austinclemens.com/Playfair/playfair.html
56 stars 6 forks source link

text variables don't exclude missing data #248

Closed austinclemens closed 7 years ago

austinclemens commented 7 years ago

that is if you have no observations in a category, that category still gets drawn

austinclemens commented 7 years ago

This problem is a little more generalizable - missings simply aren't accounted for when axes are drawn. If you have for example:

x,y 0, 12,1 15,-1

The x-axis will run from 0 to 15 because nothing catches that we don't need to draw down to 0.

austinclemens commented 7 years ago

this is traceable back to xmin/xmax, ymin/ymax, and xstrings/ystrings