fixed up look
This commit is contained in:
parent
d15e542f20
commit
805ce0ebf1
8 changed files with 135 additions and 72 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue