0.6.0 • Published 5 months ago
@clickhouse/viz-house v0.6.0
Viz-house is the charting library that powers the Sql Console and Control Plane charts. It uses Highcharts under the hood. It is a yarn project that uses storybook and vite.
Prerequisites
- You must have yarn installed
Setup
- Install dependencies
- Build
Dev
- Run tests
- Run Storybook
- Run in dev mode
- Run tests in watch mode
Install dependencies
yarndone.
Build
yarn buildThis will create the dist directory. The index.js file is the exported library built and minified.
Run tests
yarn testRun Storybook
yarn storybookRun in dev mode
yarn devdev mode will watch for changes and rebuild the project when changes are detected. There is a sample application with a number of charts, that will be available at http://localhost:5174/. If port 5174 is in use, it will increment the port until one is available.
Run tests in watch mode
yarn test:watchThis will run tests in watch mode, which will let you develop while running tests. Tests will automatically re-run after changes. We use vitest, which has a similar interface and commands to jest.