Comments (10)
I was just about to request this feature 😀. Perhaps the backend can do the following before updating the UI?:
- watch the file for changes
- validate as JSON
- vega.parse for errors
If the above check out, finally render?
from vscode-vega-viewer.
Great to know, I'm on board and will change my extensions to vg
& vl
😀👍
from vscode-vega-viewer.
Right, yes I meant .vg.json & .vl.json - I still need the .json for editing 😉
from vscode-vega-viewer.
I have not seen any requests for this feature and I don't like taxing code with even once a minute json spec updates that will most likely break a preview until they are complete.
so... closing this for now. save your json spec updates to refresh Vega preview.
from vscode-vega-viewer.
might do all of the above in the next v. update ...
I'll reopen this for us to explore more :)
from vscode-vega-viewer.
Great, thanks for re-opening!
Also, I didn't see the I need to rename my files to .vg.json
for the refresh on save. Any chance on cracking the file and looking at $schema
? Sorry to ask in this issue.
from vscode-vega-viewer.
yeah, Vega dev team pretty much set that standard for naming Vega and Vega-Lite spec json files in their examples that VV exposes too.
I'd rather we keep it that way and use $shema
from vega(s) json specs only to decided what vega v. lib to load down the road. see #42 for more info on that. I need to add more notes from my slacks with Vega team to use schema ref. as well.
If you are using or expsoing Vega(s) json specs in SandDance too, I think it would be great if you switched to that json files naming convention too ...
from vscode-vega-viewer.
in short, VV looks for those extra vg/vl json filename extensions. try 'em! & all the examples that come with it :)
see this section in docs on that part for more info: https://github.com/RandomFractals/vscode-vega-viewer#vega-viewer-vscode-contributions
from vscode-vega-viewer.
cool. yeah, use vg.json and vl.json for now. I threw .vg and .vl in the mix in my ext. just for fun. those might go away since we do watn vscode to treat them like any json files and for json schema validation to kick in without much lifting on our end.
from vscode-vega-viewer.
@danmarshall let me know what you think of VV & that woman in the red dress :)
Hopefully, new tweet on VV & SandDance integration is forthcoming ...
by the by, I keep a steady dev log on VV on twitter. hit us up there: https://twitter.com/hashtag/vegaviewer?f=tweets&vertical=default&src=hash
from vscode-vega-viewer.
Related Issues (20)
- Add Vega Editor Data Viewer HOT 1
- update vega library and built-in vega chart examples to v5.22.1
- update vega-lite library and built-in vega-lite chart examples to v5.6.1-next.0
- review and merge extended vega map projections PR HOT 1
- update vscode, node, ts and other extension dev dependencies to the latest vscode v1.74.x
- add extension sponsoring config
- Publish to Open VSX Registry? HOT 1
- Add Install from local .vsix instructions to docs HOT 1
- Use shields.io for version, installs, and downloads badges in docs HOT 1
- Update json stringify compact library to v4.0.0
- Update vega-embed.min files in /web folder to v6.21.0
- Replace SVG Viewer in Recommanded Extensions section in docs HOT 1
- Add new Support/Sponsor section to docs HOT 1
- Refine documentation sections in README.md HOT 1
- Use open workspace folder to save exported svg, png, and vega files HOT 1
- Package and publish Vega Viewer v9.6.0 release HOT 2
- [feature request]add logger & data viewer && signal viewer support
- How this error can be repaired?
- Upload local data in View Online feature HOT 1
- [feature question] `Logs`, `Data Viewer` panel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-vega-viewer.