vega / vega

A visualization grammar.
https://vega.github.io/vega
BSD 3-Clause "New" or "Revised" License
11.25k stars 1.5k forks source link

Specifying a rect mark's x2 and width is not sufficient to render #63

Closed marcprux closed 11 years ago

marcprux commented 11 years ago

The bar.json example renders the chart by specifying the "x" and "width" of the rect mark as the left side of the bar and width of the bar respectively. I would like to specify just the right side of the bar and the width, but specifying just "x2" and "width" does not render anything (I also tried with a negative width). See http://livecoding.io/5620199

jheer commented 11 years ago

Thanks! Fixed in commit bf2e12b408fe340282b0dba12419686042f9d333.