requirebin sketch
✓ Published0🌍 Public
HHypercubed
Last edited Sep 13, 2016
Created on Sep 13, 2016
This example demonstrates how to load and manage a data package using the `chi-datapackage` library within a Vue application. It shows the flow of loading a remote dataset, dispatching actions, and updating application state through the `barracks` framework's model, effects, and reducers. The visualization is driven by `index.js`, which uses `dp.load` to fetch a JSON data package from GitHub, then triggers a `replacePackage` reducer to update the state. The code also logs state changes and actions via lifecycle hooks, illustrating a functional reactive pattern for handling data-driven charts.
AI-generated description