MatthiasMert commented on issue #19650: URL: https://github.com/apache/echarts/issues/19650#issuecomment-1970518710
You are confusing the label of the `bar` series with the label of the `pictorialBar` series. These are two completely different series instances that do not share any data. You just put the same data into both. That beeing said, you can align the label of the `pictorialBar` series with its symbol by using [align](https://echarts.apache.org/en/option.html#series-pictorialBar.label.align), [verticalAlign](https://echarts.apache.org/en/option.html#series-pictorialBar.label.verticalAlign), [distance](https://echarts.apache.org/en/option.html#series-pictorialBar.label.distance), [position](https://echarts.apache.org/en/option.html#series-pictorialBar.label.position) and [offset](https://echarts.apache.org/en/option.html#series-pictorialBar.label.offset). To get the effect you are looking for this seems to do the job: ``` position: 'top', verticalAlign: 'middle', distance: -25 ``` [Example](https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=G4QwTgBArgDgCiALgCwgXgFAQgchk5ALgHpiBZADgogCYA2AFgBsBmARgnYjZpYFoeNCAAZadagwYiRfegE5uvRVJY0-qgQHZNWugC0cAbgyhIAEwDuCFOiy58KEuUkd6zdWvYClPFjPoUfJLSogHe_L7qHFxsmnTccQbGGAD2MIgAlikAdugQAN52AB4AgkUZAM6EBXbYiACeMACm1TgAxkhNAOYpYPU4ADS1EGZIINUA2jhkOYO4ACpQTXM4AOpNZivzyFArAGJgGSsAykgnUNk4ALp2AL5D2PVlldWF2HWNLbigTEs4dw8IBUmocmlUIBNhm93thRohxhCeMIBrRhMjuABWdEUdGadFsNj4ljCK6AmENZqtABG4EGw3uUOG2Aq8LaAGtWmYMgAzblgJrZRDzAByIAAtssye84QiJkiUTQ0Si2FiUTiUXjlYTlcTSUyIBSvngMm1EL0MiAmAAhWlS5n1MVUlJMaqWazIO1Ah1OpgAJRS8MQXxomv1FW9zuOGQAXl9tWGI0w4CkKhlMjlWgLNp7w47nQB5XnAxCTdE4ARogCk109TBAVKaLpqMJhYADnWqIeR-uZyBSFmqiDAS092BgKbTWWyrTNMDpLfewBBmQ6TBKTAyXWnuDFGTMZiYkp7I0q8OybS-sgx-oZMNudhut0MQA) Note, that you can move the symbol horizontally now via [symbolOffset](https://echarts.apache.org/en/option.html#series-pictorialBar.symbolOffset) and the label will keep the distance you specified. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
