Line 折线图

折线图组件,用来表示连续性的数据。

使用场景

  • 企业销售额历史趋势。

  • 人口增长曲线。

示例

{
"收入_折线图": {
"bind": "income",
"link": "/x/Table/pet",
"view": {
"type": "Line",
"props": {
"cardStyle": { "padding": 0 },
"type": "line",
"chartHeight": 120,
"prefix": "¥",
"decimals": 2,
"nameKey": "date",
"valueKey": "value"
}
}
}
}

Props

export interface IProps {
name: string
height: number
x_key: string
vertical: boolean
textLength: number
textWrap: boolean
hide_label?: boolean
}

API

属性说明类型默认值必填版本
name数据 keystring-
height高度string-
x_key横坐标 keystring-
vertical是否纵向显示string-
textLength文字长度限制string-
textWrap文字超过长度是否换行string-
hide_label隐藏标题string-

更多属性见 Echarts Line

Line 折线图

折线图组件,用来表示连续性的数据。

使用场景

  • 企业销售额历史趋势。

  • 人口增长曲线。

示例

{
"收入_折线图": {
"bind": "income",
"link": "/x/Table/pet",
"view": {
"type": "Line",
"props": {
"cardStyle": { "padding": 0 },
"type": "line",
"chartHeight": 120,
"prefix": "¥",
"decimals": 2,
"nameKey": "date",
"valueKey": "value"
}
}
}
}

Props

export interface IProps {
name: string
height: number
x_key: string
vertical: boolean
textLength: number
textWrap: boolean
hide_label?: boolean
}

API

属性说明类型默认值必填版本
name数据 keystring-
height高度string-
x_key横坐标 keystring-
vertical是否纵向显示string-
textLength文字长度限制string-
textWrap文字超过长度是否换行string-
hide_label隐藏标题string-

更多属性见 Echarts Line