Solved

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

Posted on 2009-04-07
2
479 Views
Last Modified: 2013-11-08
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
Comment
Question by:mrcoulson
2 Comments
 
LVL 12

Accepted Solution

by:
madhevan_pillai earned 500 total points
ID: 24094480
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
 

Author Comment

by:mrcoulson
ID: 24096419
Excellent!  Thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question