@@ -164,16 +164,16 @@ export default function ChartContainer({
164164 onMaxStepChange ( maxStep ) ;
165165 } , [ parsedData , onMaxStepChange ] ) ;
166166
167- // More distinct pastel-like colors for better readability
167+ // Color-blind friendly palette for chart lines
168168 const colors = [
169- '#2563eb ' ,
170- '#16a34a ' ,
171- '#dc2626 ' ,
172- '#f59e0b ' ,
173- '#7c3aed ' ,
174- '#0e7490 ' ,
175- '#d946ef ' ,
176- '#fb7185 '
169+ '#377eb8 ' ,
170+ '#e41a1c ' ,
171+ '#4daf4a ' ,
172+ '#984ea3 ' ,
173+ '#ff7f00 ' ,
174+ '#ffff33 ' ,
175+ '#a65628 ' ,
176+ '#f781bf '
177177 ] ;
178178 const createChartData = dataArray => ( {
179179 datasets : dataArray . map ( ( item , index ) => {
@@ -185,9 +185,11 @@ export default function ChartContainer({
185185 backgroundColor : `${ color } 33` ,
186186 borderWidth : 2 ,
187187 fill : false ,
188- tension : 0 ,
188+ tension : 0.3 ,
189+ cubicInterpolationMode : 'monotone' ,
190+ borderDash : index % 2 ? [ 4 , 3 ] : [ ] ,
189191 pointRadius : 0 ,
190- pointHoverRadius : 4 ,
192+ pointHoverRadius : 5 ,
191193 pointBackgroundColor : color ,
192194 pointBorderColor : color ,
193195 pointBorderWidth : 1 ,
@@ -381,9 +383,10 @@ export default function ChartContainer({
381383 backgroundColor : '#dc2626' ,
382384 borderWidth : 2 ,
383385 fill : false ,
384- tension : 0 ,
386+ tension : 0.3 ,
387+ cubicInterpolationMode : 'monotone' ,
385388 pointRadius : 0 ,
386- pointHoverRadius : 4 ,
389+ pointHoverRadius : 5 ,
387390 pointBackgroundColor : '#dc2626' ,
388391 pointBorderColor : '#dc2626' ,
389392 pointBorderWidth : 1 ,
@@ -404,9 +407,10 @@ export default function ChartContainer({
404407 borderWidth : 2 ,
405408 borderDash : [ 5 , 5 ] ,
406409 fill : false ,
407- tension : 0 ,
410+ tension : 0.3 ,
411+ cubicInterpolationMode : 'monotone' ,
408412 pointRadius : 0 ,
409- pointHoverRadius : 4 ,
413+ pointHoverRadius : 5 ,
410414 pointBackgroundColor : '#10b981' ,
411415 pointBorderColor : '#10b981' ,
412416 pointBorderWidth : 1 ,
0 commit comments