You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+95-44Lines changed: 95 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,57 +9,105 @@ This component enables seamless integration for displaying organization charts i
9
9
10
10
## Getting Started
11
11
12
-
1.**Installation:**
13
-
Install the component via npm by running the following command in your project directory:
14
-
```bash
15
-
npm install @yworks/react-yfiles-orgchart
12
+
### Prerequisites
13
+
14
+
To use the Organization Chart component, [yFiles for HTML](https://www.yworks.com/products/yfiles-for-html) is required.
15
+
You can evaluate yFiles for 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL).
16
+
See [Licensing](https://docs.yworks.com/react-yfiles-orgchart/introduction/licensing) for more information on this topic.
17
+
18
+
You can learn how to work with the yFiles npm module in our [Developer’s Guide](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module). A convenient way of getting access to yFiles is to use the [yFiles Dev Suite](https://www.npmjs.com/package/yfiles-dev-suite).
19
+
20
+
### Project Setup
21
+
22
+
1.**Installation**
23
+
24
+
In addition to yFiles, the Organization Chart component requires React to be installed in your project.
25
+
If you want to start your project from scratch, we recommend using vite:
The organization chart module has certain peer dependencies that must be installed within your project. Since it is a React module, `react` and `react-dom` dependencies are needed.
19
-
20
-
Additionally, the component relies on the [yFiles](https://www.yworks.com/yfiles-overview) library which is not available on the public npm registry. Instructions on how to work with the yFiles npm module in our [Developer's Guide](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module).
21
29
22
-
Ensure that the dependencies in the `package.json` file resemble the following:
Before using the component, a valid [yFiles for HTML](https://www.yworks.com/products/yfiles-for-html) version is required. You can evaluate yFiles for 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL).
38
-
Be sure to invoke the `registerLicense` function to furnish the license file before utilizing the organization chart component.
39
-
40
-
3.**Usage:**
41
-
Utilize the component in your application.
42
-
Make sure to import the CSS stylesheet 'index.css' as the component requires it for correct functionality.
> **Note:** By default, the `OrgChart` component adjusts its size to match the size of its parent element. Therefore, it is necessary to set the dimensions of the containing element or apply styling directly to the `OrgChart` component. This can be achieved by defining a CSS class or applying inline styles.
65
113
@@ -120,5 +168,8 @@ For more information, see the `LICENSE` file.
120
168
121
169
Explore the possibilities of visualizing organizational structures with the yFiles Organization Chart Component. For further information about [yFiles for HTML](https://www.yworks.com/yfiles-overview) and our company, please visit [yWorks.com](https://www.yworks.com).
122
170
171
+
If you are exploring a different use case and require another React component,
172
+
please take a look at the available [React components](https://www.yworks.com/yfiles-react-components) powered by yFiles!
173
+
123
174
For support or feedback, please reach out to [our support team](https://www.yworks.com/contact) or open an [issue on GitHub](https://github.com/yWorks/react-yfiles-orgchart/issues). Happy diagramming!
Copy file name to clipboardExpand all lines: docs/introduction/GettingStarted.mdx
+80-33Lines changed: 80 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,54 +9,98 @@ import TypeLink from '../../components/TypeLink.astro'
9
9
10
10
## Prerequisites
11
11
12
-
For using the component, [yFiles for HTML](https://www.yworks.com/products/yfiles-for-html) is required. You can evaluate yFiles for 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL). See [Licensing](licensing) for more information on this topic.
12
+
To use the Organization Chart component, [yFiles for HTML](https://www.yworks.com/products/yfiles-for-html) is required.
13
+
You can evaluate yFiles for 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL).
14
+
See [Licensing](https://docs.yworks.com/react-yfiles-orgchart/introduction/licensing) for more information on this topic.
13
15
14
-
## Project setup
16
+
You can learn how to work with the yFiles npm module in our [Developer’s Guide](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module). A convenient way of getting access to yFiles is to use the [yFiles Dev Suite](https://www.npmjs.com/package/yfiles-dev-suite).
15
17
16
-
1.**Installation:**
17
-
Install the component via npm by running the following command in your project directory:
18
-
```bash
19
-
npm install @yworks/react-yfiles-orgchart
18
+
## Project Setup
19
+
20
+
1.**Installation**
21
+
22
+
In addition to yFiles, the Organization Chart component requires React to be installed in your project.
23
+
If you want to start your project from scratch, we recommend using vite:
The organization chart module has some peer dependencies that must be installed somewhere in your project. Since it is a React module, `react` and `react-dom` dependencies are needed.
33
+
<details>
23
34
24
-
Additionally, the component relies on the [yFiles](https://www.yworks.com/yfiles-overview) library which is not published to the public npm registry. You can learn how to work with the yFiles npm module in our [Developer's Guide](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module).
Be sure to invoke the <TypeLinktype="registerLicense" /> function to activate the license for the application before using the company-ownership component.
79
+
4.**Usage**
42
80
43
-
3.**Usage:**
44
-
Utilize the component in your application. Make sure to import the CSS stylesheet.
81
+
You are now all set to utilize the Organization Chart component with your data!
@@ -69,5 +113,8 @@ For using the component, [yFiles for HTML](https://www.yworks.com/products/yfile
69
113
70
114
Explore the possibilities of visualizing organizational structures with the yFiles Organization Chart Component. For further information about [yFiles for HTML](https://www.yworks.com/yfiles-overview) and our company, please visit [yWorks.com](https://www.yworks.com).
71
115
116
+
If you are exploring a different use case and require another React component,
117
+
please take a look at the available [React components](https://www.yworks.com/yfiles-react-components) powered by yFiles!
118
+
72
119
For support or feedback, please reach out to [our support team](https://website.yworks.home/contact) or open an issue on GitHub. Happy diagramming!
0 commit comments