apache / apache/echarts

[Bug] CallbackDataParams type doesn't have axisValue, axisValueLabel properties

Open
#17,561 6 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.2.2

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=bar-simple&lang=ts&version=5.2.2&code=PYBwLglsB2AEC8sDeAoW7YCIzGAG0hEwC5k0MLsAnCAc1oFMqSsBDADwgGdMAaciukwduABWARoYJi1SD5WLtFZFSYKgFcG_BYOwBPEAxaYuAC1YATYAHdMAwQF8dCzADNgVALasw05qQAFCCsVKxeXKQMAMYWVGBcAHQAIgxurBoEADKsAEYMeABinj5-TADCrHh4uazRANaioeFcAJQIAHxkuujRMFz4DIl4wLSBmE1hEbCkfLAhU20O8lQMYBpUcJgAEgUj9rqODs4OmOwAgpw8pADayxhyPUJghsaz0b4MtJ76fPfywiuABUIA1ZP8eqYzLYWOk8FwGBCKCcnkJLL5WCw7qi9ECGFwwLAAIx_HGUPEE2AAJlJZKEFMJAGZaXTMAzYAAWFlktn4wkAVgOqIAuhCjhRhS4hPpLtwsRDHk8DEYTAA3KpabnIhyS04Imj4-W6RWQ5ReN5YABCoVg5TihIZWtcLxVs1qzClkPRYExtyRriJiQADEGnUqqcHQ56cZhGZGw5COfHo6jMPz4_70LqY3g8gVwXShOYYWpNIiceKFJWs57MH0RgFYNjXABiAAcVPO5QAnIUhTWUI4gA

### Steps to Reproduce

1. Go to the above echarts link
2. Hover on the axis in chart, You see params is being printed in console
3. Compare the value of params vs the type of params from echarts documentation i.e. `CallbackDataParams`

### Current Behavior

The value of `CallbackDataParams` type is containing properties like axisValue, axisValueLabel etc... But the `CallbackDataParams` type definition is not showing those properties

### Expected Behavior

`CallbackDataParams` should also contain the properties like axisValueLabel, axisValue, axisDim, axisIndex etc...

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.