0.0.199 • Published 4 years ago

@vx/hierarchy v0.0.199

Weekly downloads
6,881
License
MIT
Repository
github
Last release
4 years ago

@vx/hierarchy

Many datasets are intrinsically hierarchical. This package contains several react components for visualizing hierarchical data and largely mirrors d3-hierarchy.

Many components take the same input hierarchy data root node as defined in as specified in the d3-hierarchy module. For convenience, this package also exports the d3-hierarchyutility to generate this format.

// equivalent to `import { hierarchy } from 'd3-hierarchy';`
import { hierarchy } from '@vx/hierarchy';

const root = hierarchy({
  name: 'root',
  children: [
    { name: 'child #1' },
    {
      name: 'child #2',
      children: [{ name: 'grandchild #1' }, { name: 'grandchild #2' }, { name: 'grandchild #3' }],
    },
  ],
});

Installation

npm install --save @vx/hierarchy
0.0.199

4 years ago

0.0.198

4 years ago

0.0.197

4 years ago

0.0.196

4 years ago

0.0.195

4 years ago

0.0.194

4 years ago

0.0.193

4 years ago

0.0.193-alpha.2

4 years ago

0.0.193-alpha.1

4 years ago

0.0.193-alpha.0

4 years ago

0.0.192

5 years ago

0.0.190

5 years ago

0.0.189

5 years ago

0.0.183

5 years ago

0.0.182

5 years ago

0.0.181

5 years ago

0.0.179

6 years ago

0.0.170

6 years ago

0.0.165

6 years ago

0.0.165-beta.1

6 years ago

0.0.165-beta.0

6 years ago

0.0.161

6 years ago

0.0.153

6 years ago

0.0.144

7 years ago

0.0.143

7 years ago

0.0.141

7 years ago

0.0.140

7 years ago

0.0.139

7 years ago

0.0.138

7 years ago

0.0.136

7 years ago

0.0.127

7 years ago

0.0.126

7 years ago

0.0.125

7 years ago

0.0.120

7 years ago

0.0.119

7 years ago

0.0.118

7 years ago