change(ui): linechart changes for total
This commit is contained in:
parent
619702e91b
commit
2994a8425e
2 changed files with 6 additions and 5 deletions
|
|
@ -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}
|
||||
/>
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@
|
|||
user-select: none;
|
||||
}
|
||||
|
||||
.recharts-legend-wrapper{
|
||||
width: 388px !important;
|
||||
}
|
||||
/*.recharts-legend-wrapper{ */
|
||||
/* width: 388px !important;*/
|
||||
/*}*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue