fixed up look

This commit is contained in:
Boki 2025-07-04 18:23:59 -04:00
parent d15e542f20
commit 805ce0ebf1
8 changed files with 135 additions and 72 deletions

View file

@ -24,7 +24,7 @@ export interface TradeMarker {
export interface ChartProps {
data: ChartData[];
height?: number;
height?: number | string;
type?: 'candlestick' | 'line' | 'area';
showVolume?: boolean;
theme?: 'light' | 'dark';
@ -399,7 +399,10 @@ export function Chart({
<div className={`relative ${className}`}>
<div
ref={chartContainerRef}
style={{ width: '100%', height: `${height}px` }}
style={{
width: '100%',
height: typeof height === 'string' ? height : `${height}px`
}}
/>
<button
onClick={resetZoom}