Line

Line chart component used to represent continuous data.

Scenes to be used

  • Historical trends in corporate sales.

  • Population growth curve.

Example

{
"income_line chart": {
"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

PropertiesDescriptionTypeDefaultRequiredVersion
namedata keystring-yes
heightheightstring-yes
x_keyabscissa keystring-yes
verticalwhether to display verticallystring-no
textLengthtext length limitstring-no
textWrapWhether the text exceeds the length to wrapstring-No
hide_labelhide titlestring-no

For more properties, see Echarts Line

Line

Line chart component used to represent continuous data.

Scenes to be used

  • Historical trends in corporate sales.

  • Population growth curve.

Example

{
"income_line chart": {
"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

PropertiesDescriptionTypeDefaultRequiredVersion
namedata keystring-yes
heightheightstring-yes
x_keyabscissa keystring-yes
verticalwhether to display verticallystring-no
textLengthtext length limitstring-no
textWrapWhether the text exceeds the length to wrapstring-No
hide_labelhide titlestring-no

For more properties, see Echarts Line