Zedgraph 以及条形图和饼图上的标签
您好,我已经成功地制作了两个图,一个饼图和一个水平条形图,但我在两个图上的标签上都遇到了两个问题。
在我的饼图上,在某些组合上,标签重叠
饼图中重叠的示例http://desmond.imageshack.us/Himg831/scaled.php?server=831&filename=zedhelp.png&res=medium
如何确保标签不重叠。
我的水平条形图也有标签问题,我使用
BarItem.CreateBarLabels( myPane,false, "");
并得到以下结果
条形图http://desmond.imageshack.us/Himg221/scaled.php?server=221&filename=zedgraphbars.png&res=medium
如何删除零,并仅获取条形图的最后一个值?
我尝试在网上搜索,并尝试了这里关于相似性主题的建议,并尝试了很多事情,
BarItem.CreateBarLabels( myPane,false, "0f");
BarItem.CreateBarLabels( myPane,false, "0f0");
尝试更改字符串格式,似乎没有任何帮助。
尝试改变标签的角度
myPie=myPane.AddPieSlice(yz[tel], Color.Orange, Color.DarkOrange, 45f, 0, navn + " - " + yz[tel].ToString() );
myPie=myPane.AddPieSlice(yz[tel], Color.Orange, Color.DarkOrange, 90f, 0, navn + " - " + yz[tel].ToString() );
myPie=myPane.AddPieSlice(yz[tel], Color.Orange, Color.DarkOrange, 45f, 22, navn + " - " + yz[tel].ToString() );
但似乎没有任何帮助,有些人有一些想法
- 确保我的饼图中没有标签重叠
- 仅显示水平条形图的最大值。
谢谢。
Hi have somewhat success full made tow diagrams, a pie diagram and a horizontal bar diagram but I have tow problems with labels on both.
On my pie diagram, on some combination the labels overlapping
How can I ensure the labels not overlapping.
I also have labels problem with my horizontal bar diagram, I using
BarItem.CreateBarLabels( myPane,false, "");
and get the following result
How can I remove the zero, and only get the last values for the bars?
I tried search the net, and tried the suggestion here on smilarity topic, and tried many thing,
BarItem.CreateBarLabels( myPane,false, "0f");
BarItem.CreateBarLabels( myPane,false, "0f0");
tried changing the string format, nothing seem to help.
Trid changin the angle of the labels
myPie=myPane.AddPieSlice(yz[tel], Color.Orange, Color.DarkOrange, 45f, 0, navn + " - " + yz[tel].ToString() );
myPie=myPane.AddPieSlice(yz[tel], Color.Orange, Color.DarkOrange, 90f, 0, navn + " - " + yz[tel].ToString() );
myPie=myPane.AddPieSlice(yz[tel], Color.Orange, Color.DarkOrange, 45f, 22, navn + " - " + yz[tel].ToString() );
But nothing seems to help, some have some idea to
- Ensure no labels overlapping in my pie-diagram
- Only show max value for my horizontal bar diagram.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论