This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/next by this push:
new 812dac2 Feat(line): click event on whole line
new 9226bab Merge pull request #15535 from susiwen8/line-click
812dac2 is described below
commit 812dac28c93cd829451fb8ad52be88a797e438d9
Author: susiwen8 <[email protected]>
AuthorDate: Sun Aug 15 17:14:41 2021 +0800
Feat(line): click event on whole line
---
src/core/echarts.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/echarts.ts b/src/core/echarts.ts
index fc6d428..5caa122 100644
--- a/src/core/echarts.ts
+++ b/src/core/echarts.ts
@@ -1007,7 +1007,7 @@ class ECharts extends Eventful<ECEventDefinition> {
else {
el && findEventDispatcher(el, (parent) => {
const ecData = getECData(parent);
- if (ecData && ecData.dataIndex != null) {
+ if (ecData && (ecData.dataIndex != null ||
ecData.seriesIndex != null)) {
const dataModel = ecData.dataModel ||
ecModel.getSeriesByIndex(ecData.seriesIndex);
params = (
dataModel &&
dataModel.getDataParams(ecData.dataIndex, ecData.dataType) || {}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]