Skip to content

Commit

Permalink
fix(Pie): Make pie component buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
hrgui committed Aug 11, 2022
1 parent 1e25c75 commit ddd2d1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/charts/Pie.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Chart } from "chart.js";
import {
Chart,
PieController,
ArcElement,
Tooltip,
} from "chart.js/dist/chart.mjs";
import { useEffect, useRef } from "preact/hooks";
import { PieController, ArcElement, Tooltip } from "chart.js";

Chart.register(PieController, ArcElement, Tooltip);

Expand Down

0 comments on commit ddd2d1b

Please sign in to comment.