Volatility surface in 3D
Code
Read the docs →import { SurfaceChart } from '@tradecanvas/chart'
// Drag to turn it; the wheel zooms.
new SurfaceChart(el, {
x: strikes, // numbers along one side
y: daysToExpiry, // numbers along the other
values: iv, // values[y][x]
xLabel: 'Strike', yLabel: 'Days', valueLabel: 'IV',
theme: 'light',
})import { SurfaceChart } from '@tradecanvas/chart'
// Drag to turn it; the wheel zooms.
new SurfaceChart(el, {
x: strikes, // numbers along one side
y: daysToExpiry, // numbers along the other
values: iv, // values[y][x]
xLabel: 'Strike', yLabel: 'Days', valueLabel: 'IV',
theme: 'dark',
})● Simulated market data, generated in your browser
For what a trader reads after the close: P&L, drawdown, allocation, risk and return.
API: SurfaceChart







