apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.53k stars 19.61k forks source link

After sampling not all series with same x-axis will display on single tooltip. #15538

Open RomanOlegovich opened 3 years ago

RomanOlegovich commented 3 years ago

Version

5.1.2

Steps to reproduce

myChart.setOption({
    series:[
        {
        sampling: 'lttb',
        type: 'line',
        data: Array.from(new Array(2000)).map((x, i) => [i, Math.floor(Math.random() * (5 - 1   1))   1]),
    },
    {
        sampling: 'lttb',
        type: 'line',
        data: Array.from(new Array(2000)).map((x, i) => [i, Math.floor(Math.random() * (10 - 1   1))   1]),
    }
        ],
    xAxis:[{type:'value'}],
    yAxis:[{type:'value', max: 15, min: 0}],
    tooltip: {
        trigger: 'axis',
    },
    dataZoom: [
        {
        xAxisIndex: [0, 1],
        type: 'inside',
        filterMode: 'filter'
        }
    ]
})

What is expected?

Display all values with same x-axis after sampling. issue_tooltip_sampling_1

What is actually happening?

Some values is not displayed. issue_tooltip_sampling_2

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵