0.0.199 • Published 5 years ago

@vx/hierarchy v0.0.199

Weekly downloads
6,881
License
MIT
Repository
github
Last release
5 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

5 years ago

0.0.198

5 years ago

0.0.197

5 years ago

0.0.196

5 years ago

0.0.195

5 years ago

0.0.194

5 years ago

0.0.193

5 years ago

0.0.193-alpha.2

5 years ago

0.0.193-alpha.1

5 years ago

0.0.193-alpha.0

5 years ago

0.0.192

6 years ago

0.0.190

6 years ago

0.0.189

6 years ago

0.0.183

6 years ago

0.0.182

7 years ago

0.0.181

7 years ago

0.0.179

7 years ago

0.0.170

7 years ago

0.0.165

7 years ago

0.0.165-beta.1

7 years ago

0.0.165-beta.0

7 years ago

0.0.161

7 years ago

0.0.153

7 years ago

0.0.144

8 years ago

0.0.143

8 years ago

0.0.141

8 years ago

0.0.140

8 years ago

0.0.139

8 years ago

0.0.138

8 years ago

0.0.136

8 years ago

0.0.127

8 years ago

0.0.126

8 years ago

0.0.125

8 years ago

0.0.120

8 years ago

0.0.119

8 years ago

0.0.118

8 years ago