Skip to content

Commit 258339f

Browse files
committed
white legend graph
1 parent e8e4d76 commit 258339f

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

angular-client/src/pages/camera-page/camera-page.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
(onChange)="onDropdownChange($event)"
99
[style]="{ padding: '5px' }"
1010
/>
11-
1211
</div>
1312

1413
<div class="video-container">

angular-client/src/pages/graph-page/graph/graph.component.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
import { Component, input, OnChanges, OnInit } from '@angular/core';
22
import ApexCharts from 'apexcharts';
3-
import { ApexXAxis, ApexDataLabels, ApexChart, ApexMarkers, ApexGrid, ApexTooltip, ApexFill } from 'ng-apexcharts';
3+
import {
4+
ApexXAxis,
5+
ApexDataLabels,
6+
ApexChart,
7+
ApexMarkers,
8+
ApexGrid,
9+
ApexTooltip,
10+
ApexFill,
11+
ApexLegend
12+
} from 'ng-apexcharts';
413
import { BehaviorSubject } from 'rxjs';
514
import { GraphInfo } from 'src/utils/types.utils';
615

@@ -14,6 +23,7 @@ type ChartOptions = {
1423
tooltip: ApexTooltip;
1524
fill: ApexFill;
1625
stroke: ApexStroke;
26+
legend?: ApexLegend; // Add legend property to match the options object
1727
};
1828

1929
@Component({
@@ -196,6 +206,11 @@ export default class CustomGraphComponent implements OnChanges, OnInit {
196206
},
197207
grid: {
198208
show: true
209+
},
210+
legend: {
211+
labels: {
212+
colors: '#fff'
213+
}
199214
}
200215
};
201216

0 commit comments

Comments
 (0)