Fix: fix chart trên prod

nam_fe
doannamq 2 months ago
parent fb84ce54b8
commit cfc0895551
  1. 15
      src/_helpers/chartRegister.js
  2. 1
      src/index.js

@ -0,0 +1,15 @@
import { Chart, ArcElement, DoughnutController, Tooltip, Legend, CategoryScale, LinearScale, BarElement, BarController, LineController, LineElement, PointElement } from 'chart.js';
Chart.register(
ArcElement,
DoughnutController,
Tooltip,
Legend,
CategoryScale,
LinearScale,
BarElement,
BarController,
LineController,
LineElement,
PointElement
);

@ -1,5 +1,6 @@
import React from "react";
import ReactDOM from "react-dom";
import "./_helpers/chartRegister"
import App from "./App";
import registerServiceWorker from "./registerServiceWorker";
import appReducers from "./_reducers";

Loading…
Cancel
Save