wrobstory / vincent

A Python to Vega translator
MIT License
2.04k stars 227 forks source link

The chart generated in "build from scratch" section is incorrect . #113

Open blelem opened 10 years ago

blelem commented 10 years ago

In the tutorial, https://github.com/wrobstory/vincent/#built-from-scratch, the graph generated is not displaying the data accurately. The very first column should have a height of 42, instead it is shown as 62.

This is due the "Data 1", where 15 is present twice. df = pd.DataFrame({'Data 1': [15, 29, 63, 28, 45, 73, 15, 62], 'Data 2': [42, 27, 52, 18, 61, 19, 62, 33]})

I am new to Vincent and D3, but to me this looks like a D3 feature (can't bind different values to two labels with the same name). I would just slightly edit the example to avoid duplicates in "Data 1".