Skip to content

Commit

Permalink
fix: avoid crash in DV with some chart types DHIS2-15882
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Sep 27, 2023
1 parent f3a6f3b commit 541eed8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/visualizations/config/adapters/dhis_highcharts/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ const getEvents = () => ({
if (item.legendSymbol) {
item.legendSymbol.attr({
translateY:
-((item.legendItem.getBBox().height * 0.75) / 4) +
-(
(item.legendItem.label.getBBox().height *
0.75) /
4
) +
item.legendSymbol.r / 2,
})
}
Expand Down

0 comments on commit 541eed8

Please sign in to comment.