@syncfusion/ej2-react-treemap 20.3.59 → 20.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -6
- package/README.md +97 -42
- package/diConfig.json +25 -1
- package/dist/ej2-react-treemap.min.js +1 -1
- package/dist/ej2-react-treemap.umd.min.js +1 -1
- package/package.json +22 -15
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,69 +1,124 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React TreeMap Component
|
|
2
2
|
|
|
3
|
-
The
|
|
3
|
+
The [React TreeMap](https://www.syncfusion.com/react-components/react-treemap?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm) component provides a simple and effective way to visualize flat or hierarchical data as clustered rectangles with a specific, weighted attribute determining the size of each rectangle.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://ej2.syncfusion.com/react/documentation/treemap/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm">Getting started</a> .
|
|
7
|
+
<a href="https://ej2.syncfusion.com/react/demos/?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm#/bootstrap5/treemap/default">Online demos</a> .
|
|
8
|
+
<a href="https://www.syncfusion.com/react-components/react-treemap?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm">Learn more</a>
|
|
9
|
+
</p>
|
|
6
10
|
|
|
7
|
-
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/react/react-treemap.png" alt="React TreeMap Component">
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
Trusted by the world's leading companies
|
|
17
|
+
<a href="https://www.syncfusion.com">
|
|
18
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Bootstrap logo">
|
|
19
|
+
</a>
|
|
20
|
+
</p>
|
|
8
21
|
|
|
9
22
|
## Setup
|
|
10
23
|
|
|
11
|
-
|
|
24
|
+
### Create a React Application
|
|
12
25
|
|
|
13
|
-
|
|
14
|
-
|
|
26
|
+
You can use [`create-react-app`](https://github.com/facebookincubator/create-react-app) to setup applications. To create React app, use the following command.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx create-react-app my-app --template typescript
|
|
30
|
+
cd my-app
|
|
31
|
+
npm start
|
|
15
32
|
```
|
|
16
33
|
|
|
17
|
-
|
|
34
|
+
### Add Syncfusion TreeMap package
|
|
35
|
+
|
|
36
|
+
All Syncfusion React packages are published in the [npmjs.com](https://www.npmjs.com/~syncfusionorg) registry. To install the React TreeMap package, use the following command.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
npm install @syncfusion/ej2-react-treemap --save
|
|
40
|
+
```
|
|
18
41
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
42
|
+
### Add TreeMap Component
|
|
43
|
+
|
|
44
|
+
In the **src/App.tsx** file, use the following code snippet to render the Syncfusion React TreeMap component.
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
import { React } from 'react';
|
|
48
|
+
import { TreeMapComponent } from '@syncfusion/ej2-react-treemap';
|
|
49
|
+
function App() {
|
|
50
|
+
let data: any = [
|
|
51
|
+
{ State: 'Brazil', Count: 25 },
|
|
52
|
+
{ State: 'Colombia', Count: 12 },
|
|
53
|
+
{ State: 'Argentina', Count: 9 },
|
|
54
|
+
{ State: 'Ecuador', Count: 7 },
|
|
55
|
+
{ State: 'Chile', Count: 6 },
|
|
56
|
+
{ State: 'Peru', Count: 3 },
|
|
57
|
+
{ State: 'Venezuela', Count: 3 },
|
|
58
|
+
{ State: 'Bolivia', Count: 2 },
|
|
59
|
+
{ State: 'Paraguay', Count: 2 },
|
|
60
|
+
{ State: 'Uruguay', Count: 2 },
|
|
61
|
+
{ State: 'Falkland Islands',Count: 1 },
|
|
62
|
+
{ State: 'French Guiana', Count:1 },
|
|
63
|
+
{ State: 'Guyana', Count: 1 },
|
|
64
|
+
{ State: 'Suriname', Count: 1 },
|
|
65
|
+
];
|
|
66
|
+
return (<TreeMapComponent height='350px' dataSource={data} weightValuePath='Count'
|
|
67
|
+
leafItemSettings={{ labelPath: 'State' }}></TreeMapComponent>);
|
|
68
|
+
}
|
|
69
|
+
export default App;
|
|
70
|
+
```
|
|
22
71
|
|
|
23
|
-
## Supported
|
|
72
|
+
## Supported frameworks
|
|
24
73
|
|
|
25
|
-
TreeMap component is also offered in following list of frameworks.
|
|
74
|
+
TreeMap component is also offered in the following list of frameworks.
|
|
26
75
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
3. [Vue.js](https://www.npmjs.com/package/@syncfusion/ej2-vue-treemap?utm_source=npm&utm_campaign=treemap)
|
|
30
|
-
4. [ASP.NET Core](https://aspdotnetcore.syncfusion.com/TreeMap/Default#/material)
|
|
31
|
-
5. [ASP.NET MVC](https://aspnetmvc.syncfusion.com/TreeMap/Default#/material)
|
|
32
|
-
6. [JavaScript (ES5)](https://www.syncfusion.com/products/javascript/treemap)
|
|
76
|
+
| [<img src="https://ej2.syncfusion.com/github/images/js.svg" height="50" />](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github)<br/> [JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/angular.svg" height="50" />](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github)<br/> [Angular](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/vue.svg" height="50" />](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github)<br/> [Vue](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netcore.svg" height="50" />](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netmvc.svg" height="50" />](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github) |
|
|
77
|
+
| :-----: | :-----: | :-----: | :-----: | :-----: |
|
|
33
78
|
|
|
34
|
-
##
|
|
79
|
+
## Showcase samples
|
|
35
80
|
|
|
36
|
-
* Olympic medal categories details
|
|
37
|
-
* Countries population details
|
|
81
|
+
* Olympic medal categories details - [Live Demo](https://ej2.syncfusion.com/react/demos/#/material/treemap/customization)
|
|
82
|
+
* Countries population details - [Live Demo](https://ej2.syncfusion.com/react/demos/#/material/treemap/drilldown)
|
|
83
|
+
* Fitness Tracker - [Source](https://github.com/SyncfusionExamples/showcase-react-health-tracker-dashboard-demo), [Live Demo](https://ej2.syncfusion.com/showcase/react/fitness-tracker-app/)
|
|
38
84
|
|
|
39
|
-
## Key
|
|
85
|
+
## Key features
|
|
40
86
|
|
|
41
|
-
* [
|
|
42
|
-
* [
|
|
43
|
-
* [
|
|
44
|
-
* [
|
|
45
|
-
* [
|
|
46
|
-
* [
|
|
47
|
-
* [
|
|
48
|
-
* [
|
|
49
|
-
* [
|
|
50
|
-
* [
|
|
51
|
-
* [
|
|
87
|
+
* [Data sources](https://ej2.syncfusion.com/react/documentation/treemap/data-binding/?utm_source=npm&utm_campaign=react-treemap-npm): Binds the treemap component with an array of JSON objects or DataManager. Both hierarchical and flat collection data sources are supported.
|
|
88
|
+
* [Levels](https://ej2.syncfusion.com/react/documentation/treemap/levels/?utm_source=npm&utm_campaign=react-treemap-npm): Renders with any number of levels and items.
|
|
89
|
+
* [Layout](https://ej2.syncfusion.com/react/documentation/treemap/layout/?utm_source=npm&utm_campaign=react-treemap-npm): Supports four types of layouts: square, horizontal, vertical, and auto.
|
|
90
|
+
* [Drill-down](https://ej2.syncfusion.com/react/documentation/treemap/drilldown/?utm_source=npm&utm_campaign=react-treemap-npm): Provides drill-down option to have a closer look at the lower level of a hierarchy.
|
|
91
|
+
* [Data label](https://ej2.syncfusion.com/react/documentation/treemap/data-label/?utm_source=npm&utm_campaign=react-treemap-npm): Provides additional information about the nodes.
|
|
92
|
+
* [Header template](https://ej2.syncfusion.com/react/documentation/treemap/levels/?utm_source=npm&utm_campaign=react-treemap-npm#header-template-and-position): Uses any custom HTML element to customize the header of each item.
|
|
93
|
+
* [Label template](https://ej2.syncfusion.com/react/documentation/treemap/data-label/?utm_source=npm&utm_campaign=react-treemap-npm#template): Uses any custom HTML element to customize the data label for each node.
|
|
94
|
+
* [Color mapping](https://ej2.syncfusion.com/react/documentation/treemap/color-mapping/?utm_source=npm&utm_campaign=react-treemap-npm): Applies colors to the nodes based on various conditions. Treemap supports three types of color mapping: range, equal, and desaturation.
|
|
95
|
+
* [Legend](https://ej2.syncfusion.com/react/documentation/treemap/legend/?utm_source=npm&utm_campaign=react-treemap-npm): Provide useful information for conveying what the treemap showcases.
|
|
96
|
+
* [Selection and highlight](https://ej2.syncfusion.com/react/documentation/treemap/selection-and-highlight/?utm_source=npm&utm_campaign=react-treemap-npm): Support selecting or highlighting the nodes to bring center of attraction.
|
|
97
|
+
* [Tooltip](https://ej2.syncfusion.com/react/documentation/treemap/tooltip/?utm_source=npm&utm_campaign=react-treemap-npm): Provides additional information about the node on hover.
|
|
98
|
+
* [Print and Export](https://ej2.syncfusion.com/react/documentation/treemap/print-and-export/?utm_source=npm&utm_campaign=react-treemap-npm): Prints or exports the rendered treemap to a desired format. Exporting supports four formats: PDF, PNG, JPEG and SVG.
|
|
99
|
+
* [Globalization](https://ej2.syncfusion.com/react/documentation/treemap/internationalization/?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm): Personalize the treemap component with different languages, as well as culture-specific number, date and time formatting.
|
|
100
|
+
* [Accessibility](https://ej2.syncfusion.com/react/documentation/treemap/accessibility/?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm): Provides with built-in accessibility support which helps to access all the treemap component features through the keyboard, screen readers, or other assistive technology devices.
|
|
52
101
|
|
|
53
102
|
## Support
|
|
54
103
|
|
|
55
|
-
Product support is available
|
|
104
|
+
Product support is available through the following mediums.
|
|
105
|
+
|
|
106
|
+
* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
|
|
107
|
+
* [Community forum](https://www.syncfusion.com/forums/react-js2?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm)
|
|
108
|
+
* [GitHub issues](https://github.com/syncfusion/ej2-react-ui-components/issues/new)
|
|
109
|
+
* [Request feature or report bug](https://www.syncfusion.com/feedback/react?utm_source=npm&utm_medium=listing&utm_campaign=react-treemap-npm)
|
|
110
|
+
* Live chat
|
|
56
111
|
|
|
57
|
-
|
|
58
|
-
* New [GitHub issues](https://github.com/syncfusion/ej2-react-ui-components/issues).
|
|
59
|
-
* Ask your query in Stack Overflow with tag `syncfusion`, `ej2`.
|
|
112
|
+
## Changelog
|
|
60
113
|
|
|
61
|
-
|
|
114
|
+
Check the changelog [here](https://github.com/syncfusion/ej2-react-ui-components/blob/master/components/treemap/CHANGELOG.md?utm_source=npm&utm_campaign=react-treemap-npm). Get minor improvements and bug fixes every week to stay up to date with frequent updates.
|
|
62
115
|
|
|
63
|
-
|
|
116
|
+
## License and copyright
|
|
64
117
|
|
|
65
|
-
|
|
118
|
+
> This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 80+ [React UI components](https://www.syncfusion.com/react-components), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
|
|
119
|
+
|
|
120
|
+
> A free community [license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
|
|
66
121
|
|
|
67
|
-
|
|
122
|
+
See [LICENSE FILE](https://github.com/syncfusion/ej2-react-ui-components/blob/master/license?utm_source=npm&utm_campaign=react-treemap-npm) for more info.
|
|
68
123
|
|
|
69
124
|
© Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
|
package/diConfig.json
CHANGED
|
@@ -2,7 +2,31 @@
|
|
|
2
2
|
"name": "TreeMap",
|
|
3
3
|
"description": "TreeMap Component",
|
|
4
4
|
"keywords": {
|
|
5
|
-
"common": [
|
|
5
|
+
"common": [
|
|
6
|
+
"ej2",
|
|
7
|
+
"syncfusion",
|
|
8
|
+
"ej2-treemap",
|
|
9
|
+
"web-components",
|
|
10
|
+
"data-visualization",
|
|
11
|
+
"typescript",
|
|
12
|
+
"javascript",
|
|
13
|
+
"treemap",
|
|
14
|
+
"hierarchy",
|
|
15
|
+
"hierarchical-data",
|
|
16
|
+
"flat-data",
|
|
17
|
+
"layout",
|
|
18
|
+
"levels",
|
|
19
|
+
"leaf-node",
|
|
20
|
+
"data-labels",
|
|
21
|
+
"label-template",
|
|
22
|
+
"header-template",
|
|
23
|
+
"drill-down",
|
|
24
|
+
"color-mapping",
|
|
25
|
+
"selection",
|
|
26
|
+
"highlight",
|
|
27
|
+
"legend",
|
|
28
|
+
"template"
|
|
29
|
+
],
|
|
6
30
|
"angular": ["angular", "ng-treemap", "ej2-ng-treemap"],
|
|
7
31
|
"react": ["react", "reactjs", "react-treemap", "ej2-react-treemap"],
|
|
8
32
|
"vue": ["vue", "vuejs", "vue-treemap", "ej2-vue-treemap"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-react-treemap.min.js
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.4.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-react-treemap.umd.min.js
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.4.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-react-treemap@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-react-treemap@
|
|
3
|
+
"_id": "@syncfusion/ej2-react-treemap@16.31.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-cX39m17mLDk59a7tBgLscRKAxQC2Mnh6xGlDoIFGqmQlM+xGDBkd5dRv8sIbtw0kEZk7LhGDpBUONgquQdOOzA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-react-treemap",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-react-treemap/-/ej2-react-treemap-16.31.3.tgz",
|
|
23
|
+
"_shasum": "63913ea9c372b2f45270e34aaac4749d8bdb5bda",
|
|
24
24
|
"_spec": "@syncfusion/ej2-react-treemap@*",
|
|
25
25
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
26
26
|
"author": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~20.
|
|
35
|
-
"@syncfusion/ej2-react-base": "~20.
|
|
36
|
-
"@syncfusion/ej2-treemap": "20.
|
|
34
|
+
"@syncfusion/ej2-base": "~20.4.38",
|
|
35
|
+
"@syncfusion/ej2-react-base": "~20.4.38",
|
|
36
|
+
"@syncfusion/ej2-treemap": "20.4.38"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"description": "Essential JS 2 TreeMap Components for React",
|
|
@@ -45,18 +45,25 @@
|
|
|
45
45
|
"syncfusion",
|
|
46
46
|
"ej2-treemap",
|
|
47
47
|
"web-components",
|
|
48
|
+
"data-visualization",
|
|
49
|
+
"typescript",
|
|
50
|
+
"javascript",
|
|
48
51
|
"treemap",
|
|
52
|
+
"hierarchy",
|
|
53
|
+
"hierarchical-data",
|
|
54
|
+
"flat-data",
|
|
49
55
|
"layout",
|
|
50
|
-
"leaf-node",
|
|
51
56
|
"levels",
|
|
52
|
-
"
|
|
57
|
+
"leaf-node",
|
|
58
|
+
"data-labels",
|
|
59
|
+
"label-template",
|
|
60
|
+
"header-template",
|
|
61
|
+
"drill-down",
|
|
53
62
|
"color-mapping",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"drilldown",
|
|
63
|
+
"selection",
|
|
64
|
+
"highlight",
|
|
57
65
|
"legend",
|
|
58
|
-
"
|
|
59
|
-
"typescript",
|
|
66
|
+
"template",
|
|
60
67
|
"react",
|
|
61
68
|
"reactjs",
|
|
62
69
|
"react-treemap",
|
|
@@ -70,6 +77,6 @@
|
|
|
70
77
|
"type": "git",
|
|
71
78
|
"url": "git+https://github.com/syncfusion/ej2-react-ui-components.git"
|
|
72
79
|
},
|
|
73
|
-
"version": "20.
|
|
80
|
+
"version": "20.4.38",
|
|
74
81
|
"sideEffects": false
|
|
75
82
|
}
|