2016-10-15 80 views
0

我有一個radhtmlchart系列的甜甜圈。我在標籤中顯示不同的值,但標籤文本重疊並且不能正確讀取。標籤文字在甜甜圈系列RadHtmlChart中重疊

enter image description here

這是我的代碼:

<telerik:DonutSeries Name="Transactions" DataFieldY="Transactions" 
        NameField="Name" ColorField="ColorValue"> 
    <LabelsAppearance Visible="true" DataFormatString="{0}%" Position="Column"> 
    </LabelsAppearance> 
</telerik:DonutSeries> 
+1

您是否嘗試過在您的radhtmlchart – Denzil

+0

no上調用FixAxisLabelsOverlapping()方法。我找不到任何radhtmlchart的方法。你能分享這個鏈接或信息嗎? –

回答

0

Column對於Position屬性的值無效,使用的有效者之一(見表2這裏:http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/server-side-programming/series-configuration#attribute-properties-in-seriestype--labelsappearance

http://screencast.com/t/M4FK0kA5是我從

<telerik:RadHtmlChart runat="server" ID="rhc1" Width="500px" Height="500px"> 
    <PlotArea> 
     <Series> 
      <telerik:DonutSeries Name="Transactions" DataFieldY="Transactions" 
       NameField="Name"> 
       <LabelsAppearance Visible="true" DataFormatString="{0}%" Position="OutsideEnd"> 
       </LabelsAppearance> 
      </telerik:DonutSeries> 
     </Series> 
    </PlotArea> 
</telerik:RadHtmlChart>