Skip to content

Add graph chart #126

Merged
mattwar merged 4 commits into
mainfrom
user/mattwar/graphChart
Jun 1, 2026
Merged

Add graph chart #126
mattwar merged 4 commits into
mainfrom
user/mattwar/graphChart

Conversation

@mattwar

@mattwar mattwar commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Add GraphChartProvider that uses cytoscape to draw graphs.

Copilot AI review requested due to automatic review settings June 1, 2026 21:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Graph chart type to the VS Code extension’s results viewer, rendering node-link graphs via Cytoscape and introducing persisted per-chart presentation state (e.g., node positions / layout seed).

Changes:

  • Server: emit chart descriptors for any primary-result statement with a render, not just the main result.
  • Client: add GraphChartProvider (Cytoscape-based) and route ChartType.Graph through the composite provider.
  • Client: add ResultData.chartViews + plumbing to persist per-chart view state, and extend the chart editor to support graph-specific options.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/Server/Connections/ConnectionManager.cs Builds chart descriptors from visualization options on each primary result table.
src/Server/Charting/ChartOptions.cs Adds graph-specific chart options (nodes/edges table + column overrides) and merges defaults.
src/Client/features/server.ts Extends result schema with chartViews and adds graph-specific option fields.
src/Client/features/resultsViewer.ts Persists per-chart view state and passes cross-table context to chart renderers.
src/Client/features/graphChartProvider.ts New Cytoscape-based graph renderer with optional persisted layout state.
src/Client/features/compositeChartProvider.ts Delegates ChartType.Graph to the new graph provider and forwards view-state subscriptions.
src/Client/features/chartProvider.ts Extends chart view interface to accept cross-table context + view state updates.
src/Client/features/chartEditorProvider.ts Adds graph options UI and passes sibling-table metadata for nodes/edges selection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Client/features/graphChartProvider.ts
Comment thread src/Client/features/graphChartProvider.ts
Comment thread src/Client/features/graphChartProvider.ts Outdated
Comment thread src/Client/features/chartEditorProvider.ts
Comment thread src/Client/features/graphChartProvider.ts
@mattwar mattwar merged commit 728e9ed into main Jun 1, 2026
5 checks passed
@mattwar mattwar deleted the user/mattwar/graphChart branch June 1, 2026 22:38
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.

2 participants