mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 09:17:00 +00:00
chart update 2, pre SSR changes
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
const NewsTable = () => {
|
||||
return <div>NewsTable</div>;
|
||||
};
|
||||
|
||||
export default NewsTable;
|
||||
@@ -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"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user