chevron_right Demos chevron_right Preact
Discover More
Book a live Demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

  • Interactive graph visualization in real time
  • Integration example
  • Live Q&A and next step recommendations

30–45 minutes | 1:1 or team session

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

30–45 minutes | 1:1 or team session

Preact Demo

This demo shows how to integrate yFiles in a Preact application. It uses the "No build tools route" of the preact setup for simplicity. Note that //@ts-ignore comments have to be used when importing from esm.sh URLs, as TypeScript has no way of knowing the types of these packages. The interoperability between the yFiles graph view and the preact components that is demonstrated in this demo would not change with a different configuration setup, though (e.g. Preact CLI, custom bundling pipeline).

The sample application shows how a collection of data items and connections can be automatically synced with both a Preact view and a yFiles view.

To keep the yFiles view in sync with the application data, the yFiles GraphBuilder API is used.

The nodes are rendered via the NodeTemplate preact component.

Things to Try