Merge pull request #548 from bluewave-labs/feat/pagespeed-graph

Pagespeed graph
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-08-06 11:43:13 -07:00
commit 9da7c00bd3
3 files changed
+31 -83

No files matched your search

@@ -44,12 +44,28 @@ const PageSpeedLineChart = ({ pageSpeedChecks = [] }) => {
dataset={pageSpeedChecks}
{...customize}
grid={{ vertical: true, horizontal: true }}
tooltip={{ trigger: "none" }}
slotProps={{
legend: {
direction: "row",
position: { vertical: "bottom", horizontal: "middle" },
padding: 2,
itemMarkWidth: 8,
itemMarkHeight: 8,
markGap: 5,
itemGap: 15,
labelStyle: {
fontSize: 13,
color: "#344054"
}
},
}}
/>
);
};
PageSpeedLineChart.propTypes = {
pageSpeedChecks: PropTypes.array.isRequired,
pageSpeedChecks: PropTypes.array,
};
export default PageSpeedLineChart;