simonw / datasette-vega

Datasette plugin for visualizing data using Vega
Apache License 2.0
57 stars 8 forks source link

some charts are pretty small #32

Open setop opened 3 years ago

setop commented 3 years ago

This one is 266x256 only. Whereas this one is 1233x304, pretty, but useless as dates are not sorted.

Is there a way to force the size ?

mroswell commented 3 years ago

I don't know how to solve the size issue, but I reformatted my dates into 2020-11-27 format, which has the benefit of being sortable by default. I did that reformatting before adding the data to sqlite. https://thetechnicalgeekery.com/2013/06/yyyy-mm-dd-the-best-way-to-write-dates/

mco-gh commented 3 years ago

Any updates on this? I'd love to be able to tune the chart size.

sloria commented 2 years ago

I've run into this as well. My current workaround is to go to "Open in Vega Editor" then manually add the "width" property. Would be great if the size could be configured within the datasette UI.

brandonrobertz commented 1 year ago

I added chart re-sizing functionality to my branch: https://github.com/brandonrobertz/datasette-vega