You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3- my chart Options Object is related file in attachment mapOptions.js
4- The problem is very simple. for tooltip , i choosed formatter function because i want a customized tooltip. formatter function has "params" as parameter. but "params.data" return UNDEFINED.. i don t understand what is wrong in my mapOptions structure. can you help me to understand. if series data is not well structured?? mapOptions.txt
Current Behavior
params.data = undefined
Expected Behavior
i expected to have params.data = [{value: ..., flagStatus:..., code:....}, {value: ..., flagStatus:..., code:....}]
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
The text was updated successfully, but these errors were encountered:
echarts-botbot
changed the title
Tooltip Formatter - Map chart - data parameter is undefined.... [Bug]
[Bug] Tooltip Formatter - Map chart - data parameter is undefined....
May 3, 2024
series-map.data supports two main attributes - name and value. See the official example you referenced.
Just by renaming each country's "data" attribute to "value", you'll get what you want in tooltip formatter Demo.
Version
5.5.0
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=map-usa
Steps to Reproduce
1- i'm trying to display a map chart based on this example https://echarts.apache.org/examples/en/editor.html?c=map-usa
2- i created a valid GeoJSON file from this link https://geojson-maps.kyd.au/
3- my chart Options Object is related file in attachment mapOptions.js
4- The problem is very simple. for tooltip , i choosed formatter function because i want a customized tooltip. formatter function has "params" as parameter. but "params.data" return UNDEFINED.. i don t understand what is wrong in my mapOptions structure. can you help me to understand. if series data is not well structured??
mapOptions.txt
Current Behavior
params.data = undefined
Expected Behavior
i expected to have params.data = [{value: ..., flagStatus:..., code:....}, {value: ..., flagStatus:..., code:....}]
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: