echarts2 Timeline sets multiple points, but displays only one
Timeline: {"
data": [
"2016-10",
"2016-11",
"2016-12"
],
"LineStyle": {
"color": "# 2497be "
},
" ControlStyle ": {
" itemsize ": +,
" normal ": {
" color ":" #2497be "
}
},
' label ': {'
TextStyle ': {
' color ': ' #2497be '
}
},
' AutoPlay ': false,
' Currentindex ": 2,
" Playinterval ": 15000
}
timeline, showing normal.
Timeline: {
"Data": [
"2016-10",
"2016-11",
"2016-12",
Year
],
"LineStyle": {
"Color": "#2497be"
},
"ControlStyle": {
"ItemSize": 20,
' Normal ': {
"Color": "#2497be"
}
},
' label ': {
"TextStyle": {
"Color": "#2497be"
}
},
"AutoPlay": false,
"Currentindex": 2,
"Playinterval": 15000
}
The
causes timeline to display only one, and if it is not all the correct format points, you can set the type to number type, the default mode is the time type, and the timeline interval is calculated automatically based on the time span.