Added hooks for website stats and pageviews.

This commit is contained in:
Mike Cao 2024-02-15 14:45:07 -08:00
parent f50067e44f
commit 7ab580c709
5 changed files with 74 additions and 61 deletions

View file

@ -136,10 +136,7 @@ export function BarChart({
const updateChart = () => {
setTooltipPopup(null);
datasets.forEach((dataset, index) => {
chart.current.data.datasets[index].data = dataset.data;
chart.current.data.datasets[index].label = dataset.label;
});
chart.current.data.datasets = datasets;
chart.current.options = getOptions();