How to show label with line and display label outside in piechart in extjs4.1

梦想与她 提交于 2019-12-08 05:22:45

问题


can anybody tell How to show label with line and display label outside in extjs4.1.I want to display label outside of pie and show line to map the label

eg 

     /   \      \   
    test  test1  test2

回答1:


You've got the display option of the label config, that you can set to 'outside'.

As for the lines, you'll have to draw them yourself... Which would be a quite involved hack IMO. If you're interested in trying, that takes place in Ext.chart.Label#renderLabels(), and uses Ext.chart.series.Pie's onCreateLabel() and onPlaceLabel() methods. Don't forget to take your trigonometry with you before diving in there!



来源:https://stackoverflow.com/questions/16891460/how-to-show-label-with-line-and-display-label-outside-in-piechart-in-extjs4-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!