feat[health-page]: adding health page to onprem

This commit is contained in:
Aditya
2024-05-22 16:34:25 +05:30
parent 13b5e85e62
commit 2de1f1355a
3 changed files with 373 additions and 0 deletions
@@ -0,0 +1,22 @@
import React from 'react';
import { Bar } from 'react-chartjs-2';
const HealthBarChart = (props) => {
const { globalUrl, filteredData, options, onBarClick } = props;
return (
<Bar
data={filteredData}
options={options}
height="35.5rem"
width={filteredData.width}
getElementAtEvent={(elements) => {
if (elements && elements.length > 0) {
onBarClick(elements);
}
}}
/>
);
};
export default HealthBarChart;