Make Join Address Graph translate their legend properly

This commit is contained in:
Aurora Lahtela 2023-10-10 09:28:20 +03:00
parent 70cbab8f2d
commit 98188bbc96

View File

@ -34,8 +34,10 @@ const JoinAddressGraph = ({id, data, colors, stack}) => {
const labels = dates;
const series = Object.entries(valuesByAddress).map((entry, i) => {
if (i >= colors.length) return {name: entry[0], data: entry[1]};
return {name: entry[0], data: entry[1], color: getColor(i)};
let name = entry[0];
if (name === 'plugin.generic.unknown') name = t('plugin.generic.unknown')
if (i >= colors.length) return {name: name, data: entry[1]};
return {name: name, data: entry[1], color: getColor(i)};
});
Highcharts.stockChart(id, {