@super-chart/chart-widget
v0.2.9
Published
Embeddable financial chart widget for Super Chart
Maintainers
Readme
@super-chart/chart-widget
Embeddable financial chart widget on @super-chart/chart-advanced.
商业闭源,仅供授权集成方使用。
Install
pnpm add @super-chart/chart-widgetimport '@super-chart/chart-widget/styles.css'Quick start
import { createFinancialChartWidget } from '@super-chart/chart-widget'
import '@super-chart/chart-widget/styles.css'
const container = document.querySelector<HTMLElement>('#chart')
if (container === null) throw new Error('Missing #chart')
const widget = createFinancialChartWidget(container, {
chartOptions: { symbol: 'DEMO', preset: 'trading' },
data: [
{ time: Date.parse('2026-07-27T09:30:00.000+08:00'), open: 100, high: 103, low: 99, close: 102 },
{ time: Date.parse('2026-07-27T09:31:00.000+08:00'), open: 102, high: 105, low: 101, close: 104 },
],
})
widget.destroy()Docs
https://danhuaxiansheng.github.io/super-chart-platform/
React wrapper: @super-chart/chart-widget-react.
License
UNLICENSED — authorized use only.
