Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Where does y2 field come from in stacked bar example #138

Open
Skorpeo opened this issue Jul 13, 2015 · 0 comments
Open

Where does y2 field come from in stacked bar example #138

Skorpeo opened this issue Jul 13, 2015 · 0 comments

Comments

@Skorpeo
Copy link

Skorpeo commented Jul 13, 2015

I am looking at the stacked bar example : https://github.com/wrobstory/vincent/blob/master/examples/stacked_bar_examples.py

and I am having trouble understanding the following snippet:

enter_props = PropertySet(x=ValueRef(scale='x', field="data.idx"),
y=ValueRef(scale='y', field="y"),
width=ValueRef(scale='x', band=True, offset=-1),
y2=ValueRef(field='y2', scale='y'),
fill=ValueRef(scale='color', field='data.col'))

Specifically I don't understand:

 y2=ValueRef(field='y2', scale='y')

I don't understand it because I can't find a field called "y2" in the data set so how is this working??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant