echarts
echarts copied to clipboard
geo.label.formatter params return {name:'cityName',status:'normal'}
Version
4.9.0
Reproduction link
https://www.makeapie.com/editor.html?c=xORmXghiRB&v=2
Steps to reproduce
Open the console and view the parameters printed by the formatter function
What is expected?
The parameters are consistent with what the document says
What is actually happening?
only return {name:'cityName',status:'normal'}
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 you have posted enough image to demo your request. 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 [email protected]. 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! 🍵
I look up the code https://github.com/apache/echarts/blob/master/src/coord/geo/GeoModel.ts#L264, Looks like {name:'cityName',status:'normal'} was by design. Maybe we should correct the doc?
I also get same issue,how I do that? I want formatter:function(params){ } params.data.value and params.data.name
different from the document
backdata
{name: 'as1', status: 'normal'}