You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/10/12 01:44:26 UTC
[GitHub] [echarts] 848555155 commented on issue #17749: [Bug] tooltip‘s formatter property format wrong value
848555155 commented on issue #17749:
URL: https://github.com/apache/echarts/issues/17749#issuecomment-1275477205
> The dataset items are objects and that's why format '{c}' shows an object placeholder. Did you get the dataset from [here](https://echarts.apache.org/en/option.html#series-pie.tooltip.formatter)? I think _dimensions_ is misleading. Please see the dataset in [this example](https://echarts.apache.org/examples/en/editor.html?c=map-usa-projection&code=PYBwLglsB2AEC8sDesBQtZmMANpEAXMrAGbABOAtgIZhgCm5RA5EgEYC-RSAxh8gBMOAUmawOAGjQYBtagGd6YbtIywA9ACpYAiJXrR5UQ0QDazEOWACArjzDMpzAEwAGAIwBWR7BceAbD5-7gDszAC6Uuhq8sA25Dz0ZqpqxJbWdsq-ALK0PAAW1LAAMrQMPm5eRAAsAMwAdLVSlf5EABye9W3NHiFEAJwNIeJRqRgo6bb2LNkQOADWsAAq9NQVHp7tDe497q2wIQ3Vu32wnp3uIylqE1ZTWcwAwvn09Iqwj8A8wGu7m7Btfz1Y6wFpEfydZwndrOeqeK7RVK3DLTXwAdWoOGgNjAsAAQlYAO7QCD0dZVA6wkFgs4NfrQ2C1fr1S4cRGwcKwTTqdns3T6QzGeRmCx3TJBSreJwtCW9CJSDTqWAUWAQQUCeiwWLxRLs7UJJKwUzsjDqdTmSbi6UbWV7W1hSImo3MXJgApFUp0MlSOqNKQdLpSQb1EKOsbO2YLZarHxtbZSQ7AqTnFlhsbmZ6vd6fb6_AFAkEQ-pQgGwzxp1LmDFYnH4okk72UpO0-r0xnM9zhdldjCSVSKcik4VGlBgACeIENFlJPhw1DY9Bw3DIVDKjBYSAAApb7Pw
AITMfgcTlsjCUMfPajkMD1RRgADy4GMAApQJAYABKADcQA). It works with format '{c}'. And formats {@Product} {@[0]} are for [labels](https://echarts.apache.org/en/option.html#series-line.label.formatter) only. 
It works with format '{c}', but it shows all of datas in this item.It seems that echarts format '{c}' using Array ['Milk Tea', 83.1, 73.4, 55.1].
When using series.data to display, format '{c}' only shows item’s value. I think format behavior in dataset should be consistent with in series.data.

here is a [demo](https://echarts.apache.org/examples/en/editor.html?c=pie-simple&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQBKOAZjgE5OzB2wCGsA6jgEYBnCGByUANEXQCArnxHkqAMQ4BrHLAAiHMB3GTYuOhViUAxjmgjGlIgF8J6MMGBZIIAqmIZGEAOa-mKmEcAFs9LzpgRhDtKyokPlsPU1tkABNbAFIbdHsiXADoNI99KIgLY0oANyZIUw4scOJDSpac2DypJnKBAgBtfU8vWGgOEPwTAEFTcwEBWEVGYDCHYbAATxAJyhBypq9GDjSIaV6TAFYABmzVrzTtDn79LyRYKobpCYBGS4AWAA4xCMxtsAMo4DiMUwAC1gAFFoL4INBRB1bsNXu8sJ8CAB2ADM5yBo3GVA0EGYpjAlDRz2ImI-E3O_0uxJBVDhMQgjVpw3pb0ZBABvzZpJMAFVoFA4JM0gIaZ1hgBdfS2Igq2wAbiAA) that shows format '{c}' behavior in series data.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org