长标签似乎隐藏着“...” - MS Chart 饼图控件
我希望标签完全可见,如有必要,只需旋转饼图即可适合文本,而不会被“...”隐藏。
这是一个示例
有人知道如何解决这个问题,使其不被缩短吗?
这是我的asp页面上的控件。
<asp:CHART ID="Chart1" runat="server"
BorderColor="181, 64, 1" BorderDashStyle="Solid" BorderWidth="2" Height="371px"
ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" ImageType="Png"
Palette="None" Width="693px"
BorderlineColor="">
<legends>
<asp:Legend BackColor="Transparent" Enabled="False"
Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="True" Name="Default">
</asp:Legend>
</legends>
<series>
<asp:Series ChartArea="ChartArea1" ChartType="Pie" Legend="Default"
Name="Series1"
CustomProperties="PieLabelStyle=Outside, PieDrawingStyle=Concave"
YValuesPerPoint="6" Font="Trebuchet MS, 8.25pt, style=Bold">
<SmartLabelStyle AllowOutsidePlotArea="No" MaxMovingDistance="100" />
</asp:Series>
</series>
<chartareas>
<asp:ChartArea BackColor="#DEEDF7" BackGradientStyle="TopBottom"
BackSecondaryColor="White" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
Name="ChartArea1" ShadowColor="Transparent">
<Area3DStyle Enable3D="True" IsRightAngleAxes="False" />
</asp:ChartArea>
</chartareas>
</asp:CHART>
谢谢。
I would like the labels to be completely visible, and if necessary, just spin the pie chart so that the text will fit without being hidden with "...".
Here is an example
Anyone know how to fix this so it is not shortened?
This is the control on my asp page.
<asp:CHART ID="Chart1" runat="server"
BorderColor="181, 64, 1" BorderDashStyle="Solid" BorderWidth="2" Height="371px"
ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" ImageType="Png"
Palette="None" Width="693px"
BorderlineColor="">
<legends>
<asp:Legend BackColor="Transparent" Enabled="False"
Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="True" Name="Default">
</asp:Legend>
</legends>
<series>
<asp:Series ChartArea="ChartArea1" ChartType="Pie" Legend="Default"
Name="Series1"
CustomProperties="PieLabelStyle=Outside, PieDrawingStyle=Concave"
YValuesPerPoint="6" Font="Trebuchet MS, 8.25pt, style=Bold">
<SmartLabelStyle AllowOutsidePlotArea="No" MaxMovingDistance="100" />
</asp:Series>
</series>
<chartareas>
<asp:ChartArea BackColor="#DEEDF7" BackGradientStyle="TopBottom"
BackSecondaryColor="White" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
Name="ChartArea1" ShadowColor="Transparent">
<Area3DStyle Enable3D="True" IsRightAngleAxes="False" />
</asp:ChartArea>
</chartareas>
</asp:CHART>
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这次我认为您应该为图表设置更高的宽度值。
此链接可能会有所帮助:
如何:在饼图外显示数据点标签图表
This time around I think you should have a higher Width value for the Chart.
This link may be of some help:
How to: Display Data Point Labels Outside a Pie Chart