Solved

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

Posted on 2009-04-07
2
474 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now