3D 波动率曲面
代码
阅读文档 →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',
})● 模拟行情数据,在你的浏览器中生成
供交易者收盘后查看:盈亏、回撤、配置、风险与收益。
API: SurfaceChart







