Skip to content

Feature: Migrate ping to live charts + add tooltip to speedtest#3449

Merged
mergify[bot] merged 4 commits into
mainfrom
feature/livecharts-migration-ping
May 28, 2026
Merged

Feature: Migrate ping to live charts + add tooltip to speedtest#3449
mergify[bot] merged 4 commits into
mainfrom
feature/livecharts-migration-ping

Conversation

@BornToBeRoot
Copy link
Copy Markdown
Owner

@BornToBeRoot BornToBeRoot commented May 27, 2026

Changes proposed in this pull request

  • Migrate to livecharts2

Related issue(s)

To-Do

  • Update about page / license info + readme
  • Update documentation to reflect this changes
  • Update changelog to reflect this changes

Contributing

By submitting this pull request, I confirm the following:

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request migrates the Ping Monitor charting UI from LiveCharts (v0.9.x) to LiveCharts2 and introduces custom tooltip controls for the Ping Monitor and SpeedTest widget charts to improve in-chart value inspection.

Changes:

  • Replaced Ping Monitor chart implementation (axes/series/tooltip) with LiveCharts2 equivalents.
  • Added LiveCharts2 tooltip controls for Ping Monitor and SpeedTest charts, and wired them into the corresponding views.
  • Updated shared chart data container LvlChartsDefaultInfo to an immutable primary-constructor style.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Source/NETworkManager/Views/SpeedTestWidgetView.xaml Adds LiveCharts2 tooltip to download/upload sparklines and adjusts layout containers.
Source/NETworkManager/Views/PingMonitorView.xaml Swaps LiveCharts v1 chart for LiveCharts2 chart and hooks up the new tooltip control.
Source/NETworkManager/ViewModels/SpeedTestWidgetViewModel.cs Tweaks LiveCharts2 series config (names/geometry) to support the new tooltip display.
Source/NETworkManager/ViewModels/PingMonitorViewModel.cs Reimplements Ping time series + axes using LiveCharts2 and dynamic axis windowing.
Source/NETworkManager/Controls/LvlChartsPingTimeTooltip.xaml.cs Removes legacy LiveCharts v1 tooltip code-behind.
Source/NETworkManager/Controls/LvlChartsPingTimeTooltip.xaml Removes legacy LiveCharts v1 tooltip UI.
Source/NETworkManager/Controls/LiveChartsSpeedTestTooltip.xaml.cs Adds a LiveCharts2 tooltip implementation for SpeedTest sparklines.
Source/NETworkManager/Controls/LiveChartsSpeedTestTooltip.xaml Adds the tooltip UI for SpeedTest sparklines.
Source/NETworkManager/Controls/LiveChartsPingTimeTooltip.xaml.cs Adds a LiveCharts2 tooltip implementation for Ping Monitor.
Source/NETworkManager/Controls/LiveChartsPingTimeTooltip.xaml Adds the tooltip UI for Ping Monitor.
Source/NETworkManager.Utilities/LvlChartsDefaultInfo.cs Makes the chart datapoint container immutable via primary constructor.

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

Comment on lines +277 to +281
var chartColor = SKColor.Parse("#1ba1e2");

var labelColor = Application.Current.Resources["MahApps.Brushes.Gray5"] is System.Windows.Media.SolidColorBrush gray5
? new SKColor(gray5.Color.R, gray5.Color.G, gray5.Color.B, gray5.Color.A)
: new SKColor(0x68, 0x68, 0x68);
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.

Fixed in 5d65242 by switching both resource lookups in InitialTimeChart() to Application.Current?.TryFindResource(...), which preserves the existing SKColor fallbacks when Application.Current/resources are unavailable.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@mergify mergify Bot merged commit 314b0bf into main May 28, 2026
5 checks passed
@mergify mergify Bot deleted the feature/livecharts-migration-ping branch May 28, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants