@@ -52,30 +52,27 @@ protected function getData(): array
5252 [
5353 'label ' => 'Download (ms) ' ,
5454 'data ' => $ results ->map (fn ($ item ) => $ item ->download_jitter ),
55- 'borderColor ' => '#0ea5e9 ' ,
56- 'backgroundColor ' => '#0ea5e9 ' ,
57- 'pointBackgroundColor ' => '#0ea5e9 ' ,
58- 'fill ' => false ,
55+ 'borderColor ' => 'rgba(14, 165, 233) ' ,
56+ 'backgroundColor ' => 'rgba(14, 165, 233, 0.1) ' ,
57+ 'pointBackgroundColor ' => 'rgba(14, 165, 233) ' ,
5958 'cubicInterpolationMode ' => 'monotone ' ,
6059 'tension ' => 0.4 ,
6160 ],
6261 [
6362 'label ' => 'Upload (ms) ' ,
6463 'data ' => $ results ->map (fn ($ item ) => $ item ->upload_jitter ),
65- 'borderColor ' => '#8b5cf6 ' ,
66- 'backgroundColor ' => '#8b5cf6 ' ,
67- 'pointBackgroundColor ' => '#8b5cf6 ' ,
68- 'fill ' => false ,
64+ 'borderColor ' => 'rgba(139, 92, 246) ' ,
65+ 'backgroundColor ' => 'rgba(139, 92, 246, 0.1) ' ,
66+ 'pointBackgroundColor ' => 'rgba(139, 92, 246) ' ,
6967 'cubicInterpolationMode ' => 'monotone ' ,
7068 'tension ' => 0.4 ,
7169 ],
7270 [
7371 'label ' => 'Ping (ms) ' ,
7472 'data ' => $ results ->map (fn ($ item ) => $ item ->ping_jitter ),
75- 'borderColor ' => '#10b981 ' ,
76- 'backgroundColor ' => '#10b981 ' ,
77- 'pointBackgroundColor ' => '#10b981 ' ,
78- 'fill ' => false ,
73+ 'borderColor ' => 'rgba(16, 185, 129) ' ,
74+ 'backgroundColor ' => 'rgba(16, 185, 129, 0.1) ' ,
75+ 'pointBackgroundColor ' => 'rgba(16, 185, 129) ' ,
7976 'cubicInterpolationMode ' => 'monotone ' ,
8077 'tension ' => 0.4 ,
8178 ],
@@ -87,6 +84,17 @@ protected function getData(): array
8784 protected function getOptions (): array
8885 {
8986 return [
87+ 'plugins ' => [
88+ 'legend ' => [
89+ 'display ' => true ,
90+ ],
91+ 'tooltip ' => [
92+ 'enabled ' => true ,
93+ 'mode ' => 'index ' ,
94+ 'intersect ' => false ,
95+ 'position ' => 'nearest ' ,
96+ ],
97+ ],
9098 'scales ' => [
9199 'y ' => [
92100 'beginAtZero ' => true ,
0 commit comments