Skip to content

Add accumulate implementation and others#88

Merged
mattwar merged 5 commits into
mainfrom
user/mattwar/Accumulate
Apr 18, 2026
Merged

Add accumulate implementation and others#88
mattwar merged 5 commits into
mainfrom
user/mattwar/Accumulate

Conversation

@mattwar

@mattwar mattwar commented Apr 18, 2026

Copy link
Copy Markdown
Collaborator

Add implementation for accumulate data transform in chart options
Change result storage format for future support of multiple charts

Copilot AI review requested due to automatic review settings April 18, 2026 19:42

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

Adds support for an accumulate data transform in chart rendering and evolves result payloads from a single chartOptions object to a charts[] list to enable future multi-chart support.

Changes:

  • Replace chartOptions with charts (list of ResultChart) across server DTOs, client types, viewers, and tests.
  • Implement accumulate in Plotly chart building (applied after sorting, before downsampling; also works with binning and grouped series).
  • Enhance chart rendering/editing features and coverage (anomaly overlays refactor, area markers/value labels, y-axis mirroring behavior, updated editor labels).

Reviewed changes

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

Show a summary per file
File Description
src/Server/Utilities/ResultData.cs Switches serialized result model from chartOptions to charts[] and introduces ResultChart.
src/Server/Connections/IConnection.cs Updates ExecuteResult to carry Charts descriptors instead of a single ChartOptions.
src/Server/Connections/ConnectionManager.cs Produces a single-item Charts list from Kusto visualization options.
src/Client/features/server.ts Updates client-side ResultData contract to charts?: ResultChart[].
src/Client/features/resultsViewer.ts Adapts viewing/editing/persistence flows to operate on the “primary” chart in charts[].
src/Client/features/plotlyChartProvider.ts Adds accumulate implementation, improves markers/value labels for area/line, refactors anomaly overlays, and adjusts y-mirror handling.
src/Client/features/html.ts Updates clipboard HTML conversion’s hasChart detection to use charts[].
src/Client/features/chartEditorProvider.ts Updates some chart editor field labels for clarity.
src/Client/tests/unit/plotlyChartProvider.test.ts Adds tests for anomaly overlays, area markers/labels, accumulate behavior, and yMirror subplot behavior.
src/Client/tests/unit/html.test.ts Updates hasChart tests to reflect charts[].
src/Client/tests/integration/queryEditor.test.ts Updates integration fixture/comments to use charts[].

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

Comment thread src/Server/Utilities/ResultData.cs Outdated
Comment thread src/Client/features/resultsViewer.ts
Comment thread src/Client/features/plotlyChartProvider.ts
Comment thread src/Client/features/html.ts
Comment thread src/Server/Connections/IConnection.cs Outdated
@mattwar mattwar merged commit 456388f into main Apr 18, 2026
5 checks passed
@mattwar mattwar deleted the user/mattwar/Accumulate branch April 18, 2026 20:05
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