Commit graph

18 commits

Author SHA1 Message Date
Simon Willison
cd046b82c0 Deploy stage uses language: python, refs #8 0.2 2018-06-28 09:46:49 -05:00
Simon Willison
f19ed314d5 Fix collision with datasette-cluster-map
It was not possible to install both plugins at the same time.
2018-06-28 09:43:10 -05:00
Simon Willison
f1b29c0d8e Final improvements to styling before release announcement
I changed the chart type selector to be radio buttons (Bar, Line, Scatter)
which breaks up the UI. I also added a "Charting options" <h3> title and
tweaked the display of the "Swap X and Y" button.

The design is now good enough that I'm happy to announce it. Closes #3
2018-06-27 13:21:58 -07:00
Simon Willison
64205f3333 Respect _labels=on even if first row has a null, closes #5 2018-06-27 08:17:42 -07:00
Simon Willison
267bdbbf58 Extended README in preparation for 0.1 release 0.1 2018-06-26 22:35:26 -07:00
Simon Willison
2b6c6ef14d Deploy new tags as PyPI releases 2018-06-26 22:31:09 -07:00
Simon Willison
8e313ef7bd Much improved styling, refs #3
Also reduced chart options to just line, bar, scatter
2018-06-26 22:27:32 -07:00
Simon Willison
16ff7b11a9 Fixed debug mode style glitch in Firefox 2018-06-26 22:01:15 -07:00
Simon Willison
ed870be722 Better default UI for dev mode, refs #1 2018-06-26 21:56:49 -07:00
Simon Willison
bdb39c7c03 Respect fragment hash on page load, closes #7 2018-06-26 21:56:00 -07:00
Simon Willison
49b983141e
Deploy to datasette-vega-latest.datasette.io if tests pass, closes #2 2018-06-26 08:29:17 -07:00
Simon Willison
3cba056ba0 Handle _labels=on column names, closes #5 2018-06-26 08:04:12 -07:00
Simon Willison
3155970f41 Improved dev mode using react environments, closes #1 2018-06-26 07:47:38 -07:00
Simon Willison
e6c0fec074 Packaged everything up as a Datasette plugin
I used a variant on the pattern described here to run "npm run build" when
creating the wheel:

http://cra.mr/2014/12/19/distributing-js-with-python

To generate just the static assets (in datasette_vega/static) run this:

	python3 setup.py build_static

To build the package (and automatically run the above) do this:

	python3 setup.py bdist_wheel
2018-06-25 20:06:28 -07:00
Simon Willison
1874ee3427 Scan for .export-link a[href=*json] and inject necessary markup 2018-06-25 20:05:14 -07:00
Simon Willison
d741716dc8 Fixed # serializing/deserializing and back button support 2018-06-25 18:40:17 -07:00
Simon Willison
4cf1def414 Various improvements
* Renamed App to DatasetteVega
* Component uses fetch() to retrieve columns on start
* DatasetteVega.test.js tests now pass
* Column select boxes now display next to each other
* Styling is slightly improved
2018-06-25 17:30:37 -07:00
Simon Willison
6270de3296 First working version 2018-06-25 09:16:59 -07:00