fix(dashboard): better dashed line for charts

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-20 15:14:54 +02:00
parent febf0df475
commit 2032f49345

View File

@@ -217,6 +217,7 @@ export function Chart({ data }: Props) {
fill={`url(#color${color})`}
type={lineType}
isAnimationActive={false}
strokeWidth={0}
fillOpacity={0.1}
/>
)}
@@ -230,7 +231,8 @@ export function Chart({ data }: Props) {
strokeWidth={2}
dataKey={`${serie.id}:count`}
stroke={`url('#hideAllButLastInterval_${serie.id}')`}
strokeDasharray="4 2"
strokeDasharray="2 4"
strokeLinecap="round"
strokeOpacity={0.7}
/>
<Line