Skip to content

Conversation

Copy link

Copilot AI commented Dec 12, 2025

Adds a third visualization mode for org charts using Cytoscape.js as a vanilla JS alternative to ReactFlow.

Changes

  • New ReactFlowView component - Hierarchical flow chart with directed edges using Cytoscape.js breadthfirst layout
  • Three-view cycling - Extended toggle button: Hierarchy → Force Graph → ReactFlow → Hierarchy
  • Fixed container ID references - Now uses instance-specific IDs (ychart-chart-${instanceId})
  • Dependencies - Added cytoscape and @types/cytoscape

Usage

Enable with experimental flag:

const editor = new YChartEditor({
  experimental: true  // Shows view toggle button in toolbar
});

Views cycle on button click, each maintaining node click handlers and supporting zoom/pan interactions.

Screenshots

Hierarchical Org Chart (default)
Org Chart

Force-Directed Graph
Force Graph

ReactFlow View (Cytoscape)
ReactFlow

Original prompt

This section details on the original issue you should resolve

<issue_title>Reactflow view</issue_title>
<issue_description>It would be good to make an alternate view that uses reactflow to visualize the orgchart instead of d3</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 12, 2025 07:17
Co-authored-by: horner <6094599+horner@users.noreply.github.com>
Co-authored-by: horner <6094599+horner@users.noreply.github.com>
Co-authored-by: horner <6094599+horner@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Reactflow view for orgchart visualization Add ReactFlow-style view using Cytoscape.js Dec 12, 2025
Copilot AI requested a review from horner December 12, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reactflow view

2 participants