Ryan Williams
3102ea4f5b
add examples, fold into <details>, fix window.location.hash updating
2023-08-27 17:30:54 -04:00
Ryan Williams
4330278170
upgrade react deps
...
cf. https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
2023-08-27 17:06:15 -04:00
Ryan Williams
6459046494
Fix local index.html demo
...
When serving statically, `process.env.REACT_APP_STAGE` is never set,
nor was `.export-links` found on the page, so the chart elements were
never being added.
Addresses second part of this comment: https://github.com/simonw/datasette-vega/issues/42#issuecomment-991350740
2023-08-27 17:06:15 -04:00
Simon Willison
5e1695fe99
Persist #g.XXX settings through SQL form submission, refs #12
2018-07-05 20:17:01 -07:00
Simon Willison
662dabf888
Fixed JavaScript warnings, refs #12
2018-07-05 19:07:08 -07:00
Simon Willison
e768dd05f1
Persist #g.XX graph settings when clicking links, refs #12
2018-07-05 18:53:55 -07:00
Simon Willison
682da1f7ac
New "Show charting options" button
...
Also switched to using a ref= for the vega element.
Ready for 0.3 release.
2018-06-29 08:11:30 -05:00
Simon Willison
3155970f41
Improved dev mode using react environments, closes #1
2018-06-26 07:47:38 -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
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