tiny-vue/examples/sites/demos/pc/app/chart/webdoc/chart-candle.js

69 lines
2.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
column: '2',
owner: '',
demos: [
{
'demoId': 'candle-base',
'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['candle/base.vue']
},
{
'demoId': 'candle-demo2',
'name': { 'zh-CN': 'K线图显示MA', 'en-US': 'K-line chart shows MA' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['candle/demo2.vue']
},
{
'demoId': 'candle-demo3',
'name': { 'zh-CN': 'K线图显示volume', 'en-US': 'K-line chart shows volume' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['candle/demo3.vue']
},
{
'demoId': 'candle-demo4',
'name': { 'zh-CN': ' K线图显示dataZoom', 'en-US': 'K-line chart shows dataZoom' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['candle/demo4.vue']
},
{
'demoId': 'candle-demo5',
'name': { 'zh-CN': '不显示volume调整位置', 'en-US': 'Do not display the volume adjustment position' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['candle/demo5.vue']
},
{
'demoId': 'candle-demo6',
'name': { 'zh-CN': '显示volume调整位置', 'en-US': 'Displaying the volume adjustment position' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['candle/demo6.vue']
}
],
apis: [{ 'name': 'chart-candle', 'type': 'component', 'props': [], 'events': [], 'slots': [] }],
types: [
{
name: 'IChartSettings',
type: 'interface',
code: `
interface IChartSettings {
MA: array // 移动平均线指标周期,默认[5,10,20,30]
dataType: string // 数据展示格式,可选值: KMB , normal , percent
digit: number // 设置数据类型为 percent 时保留的位数默认为2
dimension: string // 维度,默认为 columns[0]
downColor: string // 下降颜色,默认为#ec0000
end: number // dataZoom 控件的结束位置默认为100即末尾位置
itemStyle: object // 图形样式
labelMap: object // 设置指标的别名
legendName: object // 设置图表上方图例的别名
metrics: array // 指标,默认为[columns[1] ~ columns[5]]
showDataZoom: boolean // 是否展示 dataZoom 控件,默认为 false
showMA: boolean // 是否展示移动平均线指标,默认为 false
showVol: boolean // 是否展示成交量,默认为 false
start: number // dataZoom 控件的起始位置默认为50即中间位置
upColor: string // 上升颜色,默认为 #00da3c
}
`
}
]
}