RSI Example
Render Relative Strength Index in its own bounded panel.
Code
tsx
import 'react-candlesticks/style.css';
import {
Candlesticks,
Chart,
Panel,
RSI,
exampleData,
} from 'react-candlesticks';
export default function App() {
return (
<div style={{ width: '100vw', height: '100vh' }}>
<Chart data={exampleData} granularity="d1" theme="dark">
<Panel heightRatio={3}>
<Candlesticks />
</Panel>
<Panel>
<RSI period={14} />
</Panel>
</Chart>
</div>
);
}