You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Sorry for the disturbance! I'm doing some work in stat now, and the documentation is really scattered. This toolkit is great, and includes a lot of great engineering, but using node and json-stat isn't really covered in examples. I'd like to see something like an example using modern javascript and node in order to convert json-stat to data-structures you could output. The closest thing I've come to this is doing something like in the screenshot, but some of the examples are also outdated, when it comes to transpiling and using webpack, though this is a special use case.
This is the closest thing I've come to extract the data in Node, but as showed in the tonic-dev example, using got fails, due internal errors in babel. If you know a fix to this, I'd very much like to see that!
The text was updated successfully, but these errors were encountered:
Right now, this is what I get, but there's a lot of mixed documentation about how to extract the data, and furthermore make them show up as tables in regular js, say if you want to have an array containing ContentsCode, id etc..
Bet it is just me dumbing things down, but JSONstat is pretty new, so I think dumbing things down will help people get the concept 100%
Check the wiki for documentation, particularly, the API Reference section.
If you managed to retrieve bundle 66000 from Statistics Norway and store it in an object, you'll need to read it with the JSON-stat Javascript Toolkit (JSONstat(obj)), select the first and only dataset in the bundle (Dataset(0)) and probably convert it into an array of objects (toTable({type: "arrobj"})).
Hi! Sorry for the disturbance! I'm doing some work in stat now, and the documentation is really scattered. This toolkit is great, and includes a lot of great engineering, but using node and json-stat isn't really covered in examples. I'd like to see something like an example using modern javascript and node in order to convert json-stat to data-structures you could output. The closest thing I've come to this is doing something like in the screenshot, but some of the examples are also outdated, when it comes to transpiling and using webpack, though this is a special use case.
This is the closest thing I've come to extract the data in Node, but as showed in the tonic-dev example, using got fails, due internal errors in babel. If you know a fix to this, I'd very much like to see that!
The text was updated successfully, but these errors were encountered: