UNPKG

@antv/g2plot

Version:

An interactive and responsive charting library

29 lines (28 loc) 772 B
import { Options, StyleAttr } from '../../types'; export interface StockOptions extends Options { /** * @title x 轴字段 日期 */ readonly xField: string; /** * @title y 轴映射 * @description range 【开盘价/收盘价/最高价/最低价】,设置一个指定 [open, close, high, low]【开盘价/收盘价/最高价/最低价】字段的数组 */ readonly yField: [string, string, string, string]; /** * @title 颜色配置 * @description 不支持 color 配置 */ /** * @title 上涨色 */ readonly risingFill?: string; /** * @title 下跌色 */ readonly fallingFill?: string; /** * @title 样式配置 */ readonly stockStyle?: StyleAttr; }