The logical conclusion of this approach is the Vega visualization grammar :<a href="http:&#x2F;&#x2F;vega.github.io&#x2F;vega&#x2F;" rel="nofollow">http:&#x2F;&#x2F;vega.github.io&#x2F;vega&#x2F;</a><p>It gives you a declarative means of specifying the visualization and comes from the the same lab that created d3