Solved

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

Posted on 2009-04-07
2
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp.net repeater 2 33
What are MicroServices? 4 67
What!!!??? 5 59
jquery autocomplete forcing the user to select an item from the list 7 63
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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