chevron_right Demos chevron_right Template Styles
Related demos
Book a live Demo

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

  • Quick-start walkthrough + a real integration example
  • Live Q&A with next-step recommendations

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Template Node Style Demo Vue Component Node Style Demo Vue Template Node Style Demo React Component Node Style Demo React JSX Component Style Demo Lit Template Node Style Demo
Demos Overview

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Personal Data

Select an employee in the organization chart to show his properties.

Things to Try

Demo

Template Styles

This demo shows how to create SVG templates for nodes, labels and ports. It also shows how to customize various aspects of template styles.

Template Styles

Template Styles use SVG snippets ('templates'), defined in either HTML or a string argument, to create the visualization for nodes, labels, ports or table stripes.

Data Binding

SVG attributes can be bound to graph item data or to contextual information, using a special binding syntax, e.g.
fill="{Binding myColor}"
The bound values can be manipulated and processed using converters. This makes it possible to set visual attributes based on the item data, e.g. you can link the background color of an employee node to the employee's business unit.

Template Bindings

The binding context gives you information about the current state, e.g. the zoom level, the item size, the item's selection state, etc. Template bindings are written like this:
width="{TemplateBinding width}"