diff --git a/src/visits/GraphCard.js b/src/visits/GraphCard.js index d9be74cc..d54c1674 100644 --- a/src/visits/GraphCard.js +++ b/src/visits/GraphCard.js @@ -50,7 +50,7 @@ const renderGraph = (title, isBarChart, stats, max, highlightedStats) => { const labels = keys(stats).map(dropLabelIfHidden); const data = values(!highlightedStats ? stats : keys(highlightedStats).reduce((acc, highlightedKey) => { if (acc[highlightedKey]) { - acc[highlightedKey] -= 1; + acc[highlightedKey] -= highlightedStats[highlightedKey]; } return acc;