Closed translunar closed 10 years ago
It works fine here. Did you pull the latest update from my repo? I did quite a lot of bug fixing last night.
And by the way, data.year
is the correct way recognized by Vega (yeah, it's a bit weird I know...), because it actually separates the data and the field. So foo.bar
will be {data: 'foo', field: 'data.bar'}
internally.
Give it a try here in the browser. I did just now, and I can see a nice line chart. :-)
Ahh, yes. I probably wasn't up to date. Let me go ahead and give you push access for SciRuby, too, so you can push to both repos. =)
Out of curiosity, how would I add a second line?
Okay, you have push access for sciruby/plotrb.
Awesome!
A visualization can have multiple data, scales, and marks. So in order to add a second line, you simply define another mark object and include it in the visualization.
I'm trying to create a line plot, and can't get the first line to show up. I suspect it's the names I'm picking for my data tables, but I could just be doing it wrong.
The output has an entry
"field": "data.year"
, which seems like it should probably be"field": "mouse.year"
. Am I wrong?