This sample application serves as a basic scaffold of how to integrate yFiles for HTML in a create-vue application.
To run this project, a valid yFiles for HTML version is required. You can evaluate yFiles 60 days free of charge on my.yworks.com.
- create-vue v3.3
- yFiles for HTML 2.6
Just clone this repository with
git clone https://github.com/yWorks/yfiles-vue-integration-basic
Then, extract a yFiles Evaluation package beside it and run
npm install
You can serve the application on http://localhost:5173/ with
npm run dev
This project is a basic create-vue application, where yFiles was added as an additional dependency to integrate a basic graph component.
A step-by-step description of how to integrate yFiles in a Vue application can be found here.
This basic yFiles integration can be used as a starting point to test the capabilities of yFiles or to implement your own use case. yFiles for HTML comes with a lot of source-code demos that show different aspects of the library.
You can browse through the demos and look for features that you find interesting for your use case and integrate it in this basic component to build a more sophisticated application.
The yFiles package also contains a more extensive Vue integration demo (GitHub), as well as a specialized Vue.js Template Node Style (GitHub) that leverages the powerful data binding and conditional rendering features of Vue.js.
Furthermore, there is an extensive Developer's Guide that covers anything from graph creation and styling to automatic layouts and advanced customizations.
The App Generator is a tool that lets you interactively create a diagram application prototype to visualize your data. Select features like editing, context menu, graph search, or printing and customize the interaction with the graph. Generate Vue code for your prototype and use it with a valid yFiles for HTML version.
If you need help with your setup or a certain feature, don't hesitate to contact our support through the Customer Center or by email yfileshtml@yworks.com.