yFiles - Playground

yFiles Playground

graphComponent.fitGraphBounds()
Share your code
Download your code as runnable app
The downloaded application uses the yFiles for HTML library. Set the yFiles package paths now to start quickly, or adjust them later.
It is recommended to provide the path to your yFiles package.
It is recommended to provide the path to your yFiles license.
Obtain a free 60-day, fully functional evaluation version of yFiles for HTML. Find out more about yFiles in general.
Warning: The Playground code is using a deprecated API, which may cause errors during export. It is recommended to use the demoApp object instead.
Code samples

Click the sample you want to load

Feedback and questions

Tell us how you like our playground application and what features you'd like to see in the future.

Thank you for exploring yFiles!

Did you know you can experience yFiles for free with our 60-day evaluation?
This is your opportunity to create, innovate, prototype, and bring your ideas to life. During the evaluation, you'll have access to full support, and you can explore over 300 source code demos.

Download, install and explore our free trial package now.
Discover the full power of yFiles today!
  • Fully-functional yFiles version
  • High-quality support
  • More than 300 source-code demos and tutorials
  • No commitments or purchase requirements
Try now
Trusted Source?

You loaded the code via a shared link.

If you don't trust the author, be aware of the code you are running. You can always check out our pre-made examples instead.

About this app

This is the yFiles playground, an interactive code environment powered by yFiles for HTML.

The graph diagrams in this application are created with the yFiles for HTML library. yFiles provides advanced visualizations, intuitive graph interaction, powerful automatic layout, and more.

Visit the yFiles demo browser to test more demo apps and download the trial to get started today!

yFiles is also available for JavaFX, Swing, WPF and .NET.

The yFiles for HTML library does not have any third-party dependencies. See the credits for details about additional open-source software that is used in this browser application.

yFiles Playground version , yFiles for HTML version

For more information, visit yfiles.com.
Feel free to reach out at: hello@yworks.com

© 2025 yWorks GmbH, All rights reserved
Legal Disclosure, Terms of Use, Privacy Policy