This repository contains our D3.js chart classes:
- BarChart
- BumpChart
- LineChart
- PieChart
- ScatterChart
- ScatterTimeChart
- StackedBarChart
- StackedAreaChart
- MultiLineChart
npm install @get-dx/d3-charts # npm
yarn add @get-dx/d3-charts # yarn
bun add @get-dx/d3-charts # bun
pnpm add @get-dx/d3-charts # pnpm
To get started —
- Enable corepack -
corepack enable
corepack prepare yarn@4.1.1 --activate
- Setup yarn -
yarn
- View chart examples -
bin/start
To test this package locally in another app, use yalc.
Before these steps, install yalc
-
yarn dlx yalc
- Setup yarn -
yarn
- Build this package and publish —
yarn build && yarn dlx yalc publish
- In the app where you want to test this package, add the package with yalc —
yarn dlx yalc add @get-dx/d3-charts
When you make changes to this package, run yarn build && yarn dlx yalc publish
again, then in your app run yarn dlx yalc update @get-dx/d3-charts
.
To release a new version —
- Ensure you've incremented the
version
inpackage.json
according to semantic versioning standards - Merge your changes into
main
- Create a new release in Github to publish the new version.
- Ensure your release has a new tag and name matching the
version
inpackage.json
. i.e.v1.0.0
. - Creating a release will kickoff a github action to publish to NPM.
- Ensure your release has a new tag and name matching the
- View the new version in NPM - https://www.npmjs.com/package/@get-dx/d3-charts