如何在extjs4.1中的饼图中显示带有线和显示标签的标签 [英] How to show label with line and display label outside in piechart in extjs4.1

查看:182
本文介绍了如何在extjs4.1中的饼图中显示带有线和显示标签的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉如何在extjs4.1中显示标签,线条和显示标签。我想在饼图之外显示标签,并显示标签以映射标签

 例如

/ \ \
test test1 test2


解决方案

你有 label 显示选项 / a>,你可以设置为外部。



对于线条,你必须自己画...这将是一个相当涉及黑客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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆