chevron_right Demos chevron_right Custom Styles
Discover More
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.

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.

Custom Styles Demo

This demo shows how to create custom styles for nodes, edges, labels, ports, and edge arrows. Styles can use all the powerful visualisation features of Scalable Vector Graphics (SVG).

Two samples are offered, each using a different set of custom style implementations.

Description

Uses the style implementations

  • Sample1NodeStyle
  • Sample1EdgeStyle
  • Sample1LabelStyle
  • Sample1GroupNodeStyle
  • Sample1PortStyle
  • Sample1Arrow

Things to try

  • Create new nodes in the canvas and inspect their styles in code.
  • Create edges between nodes and inspect the custom style of the edge and the arrows in code.
  • Click "Modify Colors" to change the color of the nodes and indirectly the color of the outgoing edges.
  • Note that the labels look like nodes connected via an edge, however they are ordinary labels that reuse the edge style for drawing a node to label connection. Select and drag a label to move them to different locations.
  • Also note that the label style depends on the current zoom. Zooming closer to the label reveals an edit label button that, when clicked, starts label text editing.
  • Selecting an edge changes its color - the traditional selection indicator is not rendered.