We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
只有在配置系列下的label属性时,formatter才会生效,如果加在leaves--label内,没有任何效果。如果formatter直接加在系列下的label属性中时,树的根结点的值是undefined。
配置leaves--label的formatter生效
option = { tooltip: { trigger: 'item', triggerOn: 'mousemove' }, series: [ { type: 'tree', data: [data], top: '1%', left: '7%', bottom: '1%', right: '20%', symbolSize: 7, label: { normal: { position: 'left', verticalAlign: 'middle', align: 'right', fontSize: 9, formatter: '{b} {c}' } }, leaves: { label: { normal: { position: 'right', verticalAlign: 'middle', align: 'left', formatter: '{b} {c}' } } }, expandAndCollapse: true, animationDuration: 550, animationDurationUpdate: 750 } ] }
The text was updated successfully, but these errors were encountered:
#11385
Sorry, something went wrong.
fix apache#11385 apache#8534
ddbcdd4
The value of the root is undefined because the root hasn't bee set any value and the following is work:
value
undefined
data: [{ name: 'aaa', value: 111 }]
Merge pull request #11556 from deqingli/master
0f90a73
fix tree diagram leaves label formatter don't work #11385 #8534
deqingli
No branches or pull requests
One-line summary [问题简述]
只有在配置系列下的label属性时,formatter才会生效,如果加在leaves--label内,没有任何效果。如果formatter直接加在系列下的label属性中时,树的根结点的值是undefined。
Version & Environment [版本及环境]
Expected behaviour [期望结果]
配置leaves--label的formatter生效
ECharts option [ECharts配置项]
Other comments [其他信息]
The text was updated successfully, but these errors were encountered: