Skip to content

get-dx/d3-charts

Repository files navigation

@get-dx/d3-charts package

This repository contains our D3.js chart classes:

Install

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

Development

To get started —

  1. Enable corepack -
corepack enable
  1. Setup yarn -
yarn
  1. View chart examples -
bin/start

To test this package locally in another app, use yalc.

Before these steps, install yalc -

yarn global add yalc

YALC Steps —

  1. Setup yarn -
yarn
  1. Build this package and publish —
yarn build && yalc publish
  1. In the app where you want to test this package, add the package with yalc —
yalc add @get-dx/d3-charts

When you make changes to this package, run yarn build && yalc publish again, then in your app run yalc update @get-dx/d3-charts.

Publishing

To release a new version —

  1. Ensure you've incremented the version in package.json according to semantic versioning standards
  2. Create a new release in Github to publish the new version.
    • Ensure your release has a new tag and name matching the version in package.json. i.e. v1.0.0.
    • Creating a release will kickoff a github action to publish to NPM.
  3. View the new version in NPM - https://www.npmjs.com/package/@get-dx/d3-charts