chart update 2, pre SSR changes

This commit is contained in:
2024-02-29 13:21:09 -05:00
parent 6a396953bf
commit e8a8c64e39
6 changed files with 184 additions and 8 deletions
+7
View File
@@ -0,0 +1,7 @@
import React from "react";
const NewsTable = () => {
return <div>NewsTable</div>;
};
export default NewsTable;
+6 -2
View File
@@ -30,7 +30,7 @@ const PortfolioChart = (props: any) => {
textColor,
},
width: chartContainerRef.current.clientWidth * 0.95,
height: 300,
height: chartContainerRef.current.clientHeight * 0.95,
grid: {
vertLines: {
visible: false,
@@ -59,7 +59,11 @@ const PortfolioChart = (props: any) => {
}, [data, backgroundColor, portfolioLineColor, indexLineColor, textColor]);
return (
<div className="flex justify-center" ref={chartContainerRef} id="chart" />
<div
className="flex justify-center h-3/4"
ref={chartContainerRef}
id="chart"
/>
);
};