"backporting" #170 into 0.9.x

this should allow specifying `maxDataPoints` for render on 0.9.x branch (see #170)