question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A loop occurs in the line chart.

See original GitHub issue

Version

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:closed
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ptuloucommented, Nov 23, 2021

@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!

0reactions
pissangcommented, Nov 23, 2021

It’s fixed in https://github.com/apache/echarts/pull/16069 and will be included in the next release

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found