| 属性 | 类型 | 默认 |说明| | :------ | :-----: | :-----: | :------------ | |opts.extra.candle| Object | |K线图相关配置| |opts.extra.candle.color| Object | |K线图颜色配置| |opts.extra.candle.color.upLine| String | 默认#f04864 |K线图为涨时线颜色| |opts.extra.candle.color.upFill| String | 默认#f04864 |K线图为涨时填充颜色| |opts.extra.candle.color.downLine| String | 默认#2fc25b |K线图为跌时线颜色| |opts.extra.candle.color.downFill| String | 默认#2fc25b |K线图为跌时填充颜色| |opts.extra.candle.average| Object | |均线设置| |opts.extra.candle.average.show | Boolean | 默认false |是否显示均线| |opts.extra.candle.average.name | `Array` | |均线名称(例如['MA5','MA20'])用于下方图例显示| |opts.extra.candle.average.day | `Array` | |均线单位日期(例如[5,20]为显示5日及20日均线)| |opts.extra.candle.average.color | `Array` | |均线颜色,例如['#1890ff', '#2fc25b']| ## **标准数据格式** ``` chartData: { categories: ['2019/5/5', '2019/5/6', '2019/5/6', '2019/5/8', '2019/5/9', '2019/5/10'], series: [{ name: '上证指数', data: [ [2320.26, 2302.6, 2287.3, 2362.94], [2300, 2291.3, 2288.26, 2308.38], [2295.35, 2346.5, 2295.35, 2346.92], [2347.22, 2358.98, 2337.35, 2363.8], [2360.75, 2382.48, 2347.89, 2383.76], [2383.43, 2385.42, 2371.23, 2391.82], [2377.41, 2419.02, 2369.57, 2421.15] ] }] } ``` >[danger] K线图data\[n\]传入顺序:开盘,收盘,最低,最高