[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 493
  • Last Modified:

How do I make my pie labels white on asp:chart?

I have the code below for a pie chart.  I am just learning about the asp:chart control.  How do I set the labels of the pie chart to be white?  
<asp:Chart ID="Chart1" runat="server" Height="400px" Width="400px">
            <Series>
                <asp:Series Name="Series1" Font="Trebuchet MS, 11pt, style=Bold">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>

Open in new window

0
mrcoulson
Asked:
mrcoulson
1 Solution
 
madhevan_pillaiCommented:
Hi

Select properties->Series->LabelAppearance->LabelForeColor="White"


full markup below

<asp:Series ChartArea="Area1" XValueType="Double" Name="Series1"
                                    ChartType="Pie" Font="Trebuchet MS, 8.25pt, style=Bold"
                                    CustomProperties="DoughnutRadius=25, PieDrawingStyle=Concave, CollectedLabel=Other, MinimumRelativePieSize=20"
                                    MarkerStyle="Circle" BorderColor="64, 64, 64, 64" Color="180, 65, 140, 240"
                                    YValueType="Double" Label="#PERCENT{P1}" LabelForeColor="White">
0
 
mrcoulsonAuthor Commented:
Excellent!  Thanks!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now