pdvega
pdvega copied to clipboard
Line color ('c' kwarg)
Hi! Thanks for this very cool library!
My goal is to plot a DataFrame which represents a time series.
I'd like to use these encoding channels in my plot:
xchannel is theperiodcolumn,ychannel is thevaluecolumn,colorchannel is theseries_codecolumn.
I'm wondering if the line plot isn't missing a c= keyword, like the scatter plot.
What do you think about it?
That's tricky, because pdvega aims to follow the Pandas plotting API, which doesn't support that.
The way to do that in the current API is something like this:
data.pivot_table(index='period', columns='series_code', values='value').vgplot.line()
(There may be some typos there, but you get the idea)