change(ui): linechart changes for total

This commit is contained in:
Shekar Siri 2024-09-09 19:54:46 +05:30
parent 619702e91b
commit 2994a8425e
2 changed files with 6 additions and 5 deletions

View file

@ -49,7 +49,7 @@ function CustomMetricLineChart(props: Props) {
value: label || "Number of Sessions"
}}
/>
{!hideLegend && <Legend/>}
{!hideLegend && <Legend />}
<Tooltip {...Styles.tooltip} />
{Array.isArray(data.namesMap) && data.namesMap.map((key, index) => (
<Line
@ -60,8 +60,9 @@ function CustomMetricLineChart(props: Props) {
stroke={colors[index]}
fillOpacity={1}
strokeWidth={2}
strokeOpacity={0.6}
strokeOpacity={key === 'Total' ? 0 : 0.6}
// fill="url(#colorCount)"
legendType={key === 'Total' ? 'none' : 'line'}
dot={false}
/>
))}

View file

@ -7,6 +7,6 @@
user-select: none;
}
.recharts-legend-wrapper{
width: 388px !important;
}
/*.recharts-legend-wrapper{ */
/* width: 388px !important;*/
/*}*/