vega / polestar

Lightweight Tableau-style interface for visual analysis, built on Vega-lite.
http://vega.github.io/polestar
Other
367 stars 47 forks source link

Can't plot temporal field as date (Y/m/d) #348

Closed dmitriyshashkin closed 8 years ago

dmitriyshashkin commented 8 years ago

I'm trying to plot time-series data in the following format:

date,revenue 2015-10-18,100 2015-10-19,200 2015-10-20,110 2015-10-21,120

So, basically, I have a single value for each specific date and I want to output it in the same way, so each point would correspond to a single date and value.

I attach the revenue to y axis and date to x axis. Polestar recognizes "date" as temporal field and applies "MONTH" function to it. I've tried all other functions that are available for temporal values, yet failed to produce desired output. "_" option (which corresponds I suppose to not using any function at all) is clickable, but when I chose it polestar automatically switches back to using "MONTH" function.

I could specify the field with nominal, but such workaround produces another problem when I try to adjust the width of the plot in the generated vega-lite specification.

kanitw commented 8 years ago

Thank you for reporting, we will try to take a look ASAP (sometimes this week).

domoritz commented 8 years ago

Something about date is not working correctly.

date

domoritz commented 8 years ago

Okay, I fixes the problems with the functions not working in https://github.com/vega/vega-lite/pull/743

You still cannot select -, though.