Skip to content

alexrett/ng-cfd

Repository files navigation

NG-CFD

WORK IN PROGRESS, do not use it yet.

This is the simple interactive React component for Cumulative Flow Diagrams built with d3.

Introduction

Project inspired by Cfd. Most part of the code is from this project. Big thanks to Aslak Hellesøy.

Changes

  • Bumped dependencies
  • Added WIP limits settings (which statuses are used for WIP limits)
  • Added hover tooltips (WIP, LT, CNT)
  • Fixed LT calculation
  • Added setup LT setting to calculate

Example

Demo

example.png

How to use it

Install npm i ng-cfd

Use it in your project:

import {CFD} from "ng-cfd";

export const Stat = () => {
    const data = [
        {
            timestamp: new Date(2021, 1, 1),
            todo: 0,
            done: 0,
            doing: 0,
        },
        {
            timestamp: new Date(2021, 1, 2),
            todo: 3,
            doing: 0,
            done: 0,
        },
        {
            timestamp: new Date(2021, 1, 3),
            todo: 3,
            doing: 2,
            done: 0,
        },
    ]

    return <CFD width={300} height={300} from={'doing'} to={'done'} data={data} keys={['todo', 'doing', 'done']} wipKeys={['doing', 'done']}/>
}

About

React CFD diagram with LeadTime and WIP tooltips

Resources

License

Stars

Watchers

Forks

Packages

No packages published