@conversationai/sensemaker-visualizations
v1.0.46
Published
Interactive visualization components for sensemaker data
Downloads
241
Keywords
Readme
Sensemaker Visualization Components
A collection of reusable visualization components for displaying Sensemaker data, built with D3.js and Web Components.
Installation
npm installDevelopment
To run the Storybook development environment:
npm run storybookThis will start the Storybook server at http://localhost:6006. You can view and interact with all components in isolation.
Note: The Storybook stories use sample data from the
stories/datadirectory. To view all stories correctly, ensure you have both acomments.jsonand asummary.jsonfile present instories/data/.
Building the Package
To build the package for production:
npm run buildThe compiled files will be output to the dist/ directory.
Building Storybook Docs
To build the static Storybook documentation site:
npm run build-storybookThe static site will be output to the storybook-static/ directory. You can deploy this directory to any static site host.
Publishing to npm
To publish a new version of the package to npm, follow these steps:
- Make sure you are logged in to npm:
npm login - Update the version number using one of the following commands (this will automatically update
package.jsonand create a Git commit and tag):- For a patch update (bug fixes, backwards compatible):
npm version patch - For a minor update (new features, backwards compatible):
npm version minor - For a major update (breaking changes):
npm version major
- For a patch update (bug fixes, backwards compatible):
- Build the package:
npm run build - Publish to npm:
npm publish
Note: The
npm versioncommand will automatically update the version inpackage.json. Always ensure your changes are committed before publishing.
Data Source and License
The data used in this demo was gathered using the Polis software and is sub-licensed under CC BY 4.0 with Attribution to The Computational Democracy Project. The data and more information about how the data was collected can be found at the following link:
https://github.com/compdemocracy/openData/tree/master/american-assembly.bowling-green
