Fixed health bar chart build chartjs issue
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Bar } from 'react-chartjs-2';
|
import { Bar } from 'react-chartjs-2';
|
||||||
import { Chart, registerables } from 'chart.js';
|
|
||||||
|
|
||||||
Chart.register(...registerables);
|
|
||||||
|
|
||||||
const HealthBarChart = (props) => {
|
const HealthBarChart = (props) => {
|
||||||
const { globalUrl, filteredData, options, onBarClick } = props;
|
const { globalUrl, filteredData, options, onBarClick } = props;
|
||||||
|
|||||||
Reference in New Issue
Block a user