2010-06-07 41 views
1

我希望标签完全可见,如有必要,只需旋转饼图,以便文本适合而不被隐藏“...”。长标签似乎隐藏着“...” - MS Chart饼图控件

下面是一个例子

Pie graph with "Received" item that has hidden text http://img199.imageshack.us/img199/3707/offbm.jpg

任何人都知道如何解决这个问题,因此不会缩短?

这是我的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> 

谢谢。

回答

0

这一次,我认为你应该有一个更高的图表宽度值。

此链接可能会有所帮助:

How to: Display Data Point Labels Outside a Pie Chart

+0

嘿Leniel:P,我已经给它更高的宽度值,是的,是的作品...但我只有700像素工作用。有没有其他方法? – Mike 2010-06-08 00:59:28

+0

@Mike:您可以缩短标签。这是我能想到的唯一方法。 – 2010-06-08 01:20:35

+0

在3d属性上设置新的旋转编号可以旋转图形并重新定位文本。如果我能找到一种方法来检查标签是否缩短,我可以改变旋转编号直到标签不缩短 – Mike 2010-06-08 01:26:33