A loop occurs in the line chart.
See original GitHub issueVersion
5.1.2
Steps to reproduce
import * as echarts from 'echarts';
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom, 'dark');
var option;
option ={
"color": [
"#4AC7B7",
"#3398DB",
"#E54545",
"#86A6FC",
"#85CAFF",
"#6CE6DB",
"#91E6B1",
"#B7E697",
"#F7E481",
"#FFD578",
"#FCA479",
"#F7797B",
"#F582AB",
"#B891FA",
"#B8BECC"
],
"tooltip": {
"trigger": "axis",
"confine": "true",
"axisPointer": {
"type": "shadow"
}
},
"grid": {
"left": "1%",
"right": "12%",
"bottom": "1%",
"top": "10%",
"containLabel": true
},
"xAxis": {
"type": "time",
"splitLine": {
"show": false
},
"axisLine": {
"lineStyle": {
"color": "white"
}
},
"splitNumber": 3,
"axisLabel": {}
},
"yAxis": [
{
"type": "value",
"minInterval": 1,
"min": 0,
"max": 100,
"axisLabel": {
"color": "white"
},
"axisLine": {
"lineStyle": {
"color": "white"
}
},
"splitLine": {
"show": false
}
}
],
"series": [
{
"name": "6",
"type": "line",
"smooth": true,
"barMaxWidth": 20,
"showSymbol": false,
"smoothMonotone": "x",
"data": [
[
1625688000000,
74
],
[
1625707800000,
83
],
[
1625709600000,
80
],
[
1625711400000,
87
],
[
1625713200000,
88
],
]
}
]
};
option && myChart.setOption(option);
What is expected?
No loopback occurs in the line chart.
What is actually happening?
A loop occurs in the line chart.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
JavaFX LineChart loop values - Stack Overflow
If I put System.out.println into loop, then the values are printed out correctly. With ordinary values, the program works correctly. The console ...
Read more >Java For Loop and While Loop Flow Charts - YouTube
Java For Loop and While Loop Flow Charts. Watch later. Share. Copy link ... An error occurred while retrieving sharing information.
Read more >FOR loops in MATLAB: Using loops for plotting - YouTube
This screencast gives three quick examples of using FOR loops to perform some common plotting tasks. First we see how to quickly plot...
Read more >Line Chart - Voxco
A line chart is a graphical depiction of an asset's historical price activity in which a sequence of data points are connected by...
Read more >Line graph - Wikipedia
In the mathematical discipline of graph theory, the line graph of an undirected graph G is another graph L(G) that represents the adjacencies...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pissang thank you! I see my mistake now. When I scanned the release notes I saw this fix and jumped to the conclusion that it was the same fix. [Fix] [line] fix smoothed line with duplicate points failed to draw #15942 (pissang). Oops! I’ll check out the next release. Thanks for clarifying!
It’s fixed in https://github.com/apache/echarts/pull/16069 and will be included in the next release