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
BUT, the example initializes the data object like this:
const data = { nodes };
Where nodes is an array of data items to display. The complete syntax would have been something like nodes: nodes but I guess javascript just took the shorthand. For quite some time I didn't realize I needed to put { nodes: my_array_name }.
The text was updated successfully, but these errors were encountered:
This one line fix to the getting started section of the docs would have saved me an hour:
The working code follows, where
forecasts
is an array of data items to display.and then this works,
BUT, the example initializes the data object like this:
Where
nodes
is an array of data items to display. The complete syntax would have been something likenodes: nodes
but I guess javascript just took the shorthand. For quite some time I didn't realize I needed to put{ nodes: my_array_name }
.The text was updated successfully, but these errors were encountered: