sensemaker-viz-components
v1.0.45
Published
Interactive visualization components for sensemaker data
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 test 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.
