fix: Total calculation in stacked Timeseries charts (#24477)

This commit is contained in:
Michael S. Molina
2023-06-23 11:57:48 -03:00
committed by GitHub
parent 51a34d7d58
commit c5b4ecdca5
10 changed files with 89 additions and 94 deletions

View File

@@ -51,7 +51,6 @@ import {
import { parseYAxisBound } from '../utils/controls';
import {
getOverMaxHiddenFormatter,
currentSeries,
dedupSeries,
extractSeries,
getAxisType,
@@ -481,11 +480,7 @@ export default function transformProps(
seriesName: key,
formatter: primarySeries.has(key) ? formatter : formatterSecondary,
});
if (currentSeries.name === key) {
rows.push(`<span style="font-weight: 700">${content}</span>`);
} else {
rows.push(`<span style="opacity: 0.7">${content}</span>`);
}
rows.push(`<span style="opacity: 0.7">${content}</span>`);
});
return rows.join('<br />');
},