3 ms·
interesting - If I understand it right, I ran into a possible use-case for n:point recently... I was building a pretty simple charting app that used React and
by andrenotgiant 8y ago
interesting - If I understand it right, I ran into a possible use-case for n:point recently...
I was building a pretty simple charting app that used React and Redux, so the structure of a chart was 100% defined via a JSON "state".
I didn't want to bother with a server so I just stored the state in browser localstorage.
BUT when I put the app online via static hosting, I needed to give users a way of deeplinking to and sharing a diagram they created.
Could I use n:point via API to set and get json state and then add your identifiers in an anchor tag like:
http://my-static-chart-app.com/#4aed7cea56ece156c705 http://my-static-chart-app.com/#4aed7cea56ece156c705
- azirbel 8y agoThat sounds like a perfect way to use it. Here's an example of charting data, using npoint.io as the data storage "backend": https://beta.observablehq.com/@azirbel/npoint-io-charting-demo https://beta.observablehq.com/@azirbel/npoint-io-charting-de... If you made a charting app that used an anchor tag to load data like you described, and made the resulting chart embeddable, I'd actually be interested in using it to power charts in blog posts. Cool idea.