diff --git a/app/src/components/charts/HorizontalBoxPlot.js b/app/src/components/charts/HorizontalBoxPlot.js index bb3bde8..5794522 100644 --- a/app/src/components/charts/HorizontalBoxPlot.js +++ b/app/src/components/charts/HorizontalBoxPlot.js @@ -81,7 +81,7 @@ const HorizontalBoxPlot = (props) => { return () => { myChart.destroy(); }; - }, [data]); + }, [data, chartId]); return ; }; diff --git a/app/src/components/charts/StackedBarChart.js b/app/src/components/charts/StackedBarChart.js index a30653e..efbd385 100644 --- a/app/src/components/charts/StackedBarChart.js +++ b/app/src/components/charts/StackedBarChart.js @@ -70,7 +70,7 @@ const StackedBarChart = (props) => { return () => { myChart.destroy(); }; - }, [data]); + }, [data, chartId, showX, targets]); return ; };