如何在extjs4.1中的饼图中显示带有线和显示标签的标签 [英] How to show label with line and display label outside in piechart in extjs4.1
问题描述
例如
/ \ \
test test1 test2
对于线条,你必须自己画...这将是一个相当涉及黑客IMO。如果您有兴趣尝试,那将发生在 Ext.chart.Label#renderLabels()
,并使用 Ext.chart.series.Pie
' s onCreateLabel()
和 onPlaceLabel()
方法。在潜水之前,别忘了带着你的三角学方法!
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
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!
这篇关于如何在extjs4.1中的饼图中显示带有线和显示标签的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!