From b5bde8f5ac6b4460f0e9e8878b5901038c8f2d54 Mon Sep 17 00:00:00 2001 From: Toni Vicente Date: Wed, 9 Apr 2025 17:31:06 +0200 Subject: [PATCH 1/2] Chart blade Fixed representation issue Quoting to Disposable in discord: "when I assigned a new axis for speeds and disabled altitudes while viewing the chart, that terrain height messed up the speeds axis. Thus I removed it When you switch to v2, we can check your solution, if we can somehow fix the new axis to only speeds then we can add them back" I'm investigating seems that when a serie is deactivated, chart lost the yaxis array index, there are a option to asociate yaxis by nameseries yaxis.seriesName https://apexcharts.com/docs/chart-types/multiple-yaxis-scales/ --- .../Disposable_v3/pireps/chart.blade.php | 219 ++++++++++-------- 1 file changed, 121 insertions(+), 98 deletions(-) diff --git a/resources/views/layouts/Disposable_v3/pireps/chart.blade.php b/resources/views/layouts/Disposable_v3/pireps/chart.blade.php index fc3ae3e..3dc00c8 100644 --- a/resources/views/layouts/Disposable_v3/pireps/chart.blade.php +++ b/resources/views/layouts/Disposable_v3/pireps/chart.blade.php @@ -9,116 +9,139 @@ $terr[] = ($a->altitude_msl - $a->altitude_agl) > 0 ? $a->altitude_msl - $a->altitude_agl : 0; } @endphp -
+
- \ No newline at end of file From 6fdfa4fef68553b1328c710dcbfa29a6c435a169 Mon Sep 17 00:00:00 2001 From: Toni Vicente Date: Wed, 9 Apr 2025 17:49:00 +0200 Subject: [PATCH 2/2] Joined Terrain Elevation with Altitude Separate yaxis to Terrain Elevation was weird --- .../views/layouts/Disposable_v3/pireps/chart.blade.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/resources/views/layouts/Disposable_v3/pireps/chart.blade.php b/resources/views/layouts/Disposable_v3/pireps/chart.blade.php index 3dc00c8..a86fc4c 100644 --- a/resources/views/layouts/Disposable_v3/pireps/chart.blade.php +++ b/resources/views/layouts/Disposable_v3/pireps/chart.blade.php @@ -120,7 +120,7 @@ }, forceNiceScale: true, decimalsInFloat: 0, - seriesName: ['Altitude (MSL)', 'Altitude (AGL)'] + seriesName: ['Altitude (MSL)', 'Altitude (AGL)', 'Terrain Elevation'] }, { title: { @@ -130,14 +130,6 @@ decimalsInFloat: 0, opposite: true, seriesName: ['Speed (GS)', 'Speed (IAS)'] - }, - { - title: { - text: 'Terrain Elevation', - }, - forceNiceScale: true, - decimalsInFloat: 0, - seriesName: 'Terrain Elevation' } ] }