makesites / cloudvisio

Data visualizations of cloud data - built on top of D3 #javascript #d3 #html5 #css3
https://npmjs.org/package/cloudvisio
5 stars 1 forks source link

amount should be included in render #50

Open tracend opened 11 years ago

tracend commented 11 years ago

Currently you'll have to calculate the axis before you can render

This is done by using amount

vis.gt( 5 ).amount().render();

Amount should be implied when you try to render so you don't have that constant extra step.

A flag like _amountSetup that's set when amount is executed and reset when a new query method is created will make sure that render isn't using outdated axis.