General Questions
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
Issue Type
Issue Details
Axis-triggered tooltip failed to display some series if x axis values are not 100% equal!
Expected Behavior
Axis-triggered should always show the nearest data index of all series, like this:

Current Behavior

It always shows one of the series, but never both.
Online Example
http://jsfiddle.net/sh1acjqu/3/
This is my chart options:
{
title: {
text: 'ECharts 入门示例'
},
tooltip: {
trigger: "axis"
},
legend: {
data:['销量']
},
xAxis: {
type: "time"
},
yAxis: {},
series: [{
name: 'series1',
type: 'line',
data: [[1544770701,5], [1544770703,20], [1544770805,36]]
},{
name: 'series2',
type: 'line',
data: [[1544770702,5], [1544770704,20], [1544770806,36]]
}]
}
The stated problem is caused by these lines: lib/component/axisPointer/axisTrigger.js#198-203, I don't know the purpose of these codes, but when i comment out line 198~203, the resulted behavior is what i want.
If you guys think this is a wanted behavior, then i request an option to do this.
// if (dist < minDist || diff >= 0 && minDiff < 0) {
// minDist = dist;
// minDiff = diff;
// snapToValue = seriesNestestValue;
// payloadBatch.length = 0;
// }
Topics
Anything Else We Need to Know
Environment
General Questions
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
Issue Type
Issue Details
Axis-triggered tooltip failed to display some series if x axis values are not 100% equal!
Expected Behavior
Axis-triggered should always show the nearest data index of all series, like this:
Current Behavior
It always shows one of the series, but never both.
Online Example
http://jsfiddle.net/sh1acjqu/3/
This is my chart options:
The stated problem is caused by these lines: lib/component/axisPointer/axisTrigger.js#198-203, I don't know the purpose of these codes, but when i comment out line 198~203, the resulted behavior is what i want.
If you guys think this is a wanted behavior, then i request an option to do this.
Topics
Anything Else We Need to Know
Environment
ECharts version;ECharts 版本: 4.2.0-rc.2 / 3.7.2 (it happens in both version, you can try in js fiddle)
It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}