473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to create Dynamic Height of legend in chart.

When the title of legend is more then the chart becomes smaller. How can we increase the height of legend without affecting the chart. Here is my Code.

Expand|Select|Wrap|Line Numbers
  1. <asp:Chart ID="Chart2" runat="server" Width="420" Height="300" ImageStorageMode="UseImageLocation">
  2.   <Series>
  3.     <asp:Series Name="Series1" 
  4.         ChartType="Pie" 
  5.         XValueMember="ControlType"
  6.         ValueMembers="ControlAmount"
  7.         ToolTip="#PERCENT" 
  8.         Label="#PERCENT" 
  9.         LegendText="#AXISLABEL">
  10.     </asp:Series>
  11.   </Series>
  12.   <ChartAreas>
  13.     <asp:ChartArea Name="ChartArea1" 
  14.         Area3DStyle-Enable3D="true"
  15.         Area3DStyle-IsClustered="true"
  16.         Area3DStyle-Perspective="10" 
  17.         Area3DStyle-PointGapDepth="900" 
  18.         Area3DStyle-IsRightAngleAxes="false"
  19.         Area3DStyle-WallWidth="25" 
  20.         Area3DStyle-Rotation="50" 
  21.         Area3DStyle-Inclination="35"
  22.         BackColor="Transparent" 
  23.         BackSecondaryColor="Transparent">
  24.     </asp:ChartArea>
  25.   </ChartAreas>
  26.   <Legends>
  27.     <asp:Legend Name="statuslegend" 
  28.         Alignment="Near" 
  29.         TitleAlignment="Near" 
  30.         InterlacedRows="true" 
  31.         LegendItemOrder="Auto" 
  32.         Docking="Right"  
  33.         IsTextAutoFit="false"
  34.         LegendStyle="Table" 
  35.         Font="Tahoma, 8.60pt">
  36.     </asp:Legend>
  37.   </Legends>
  38.   <BorderSkin SkinStyle="Emboss" />
  39.   <Titles>
  40.     <asp:Title Name="Title1" 
  41.         Font="Times New Roman, 13pt" 
  42.         Text="<%$ Resources:Resource, Incidentssortedbytype %>"
  43.         ForeColor="#324A70" 
  44.         ShadowOffset="3" 
  45.         ShadowColor="32, 0, 0, 0">
  46.     </asp:Title>
  47.   </Titles>
  48. </asp:Chart>
Jun 5 '12 #1
0 2176

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Cindy | last post by:
hi, Can someone point me to a website where I can find a "create dynamic rows" javascript that work for IE, NS6 & NS7? Thank You. regards, Cindy
7
by: Cindy | last post by:
"kaeli" <infinite.possibilities@NOSPAMatt.net> wrote in message news:MPG.197482677bbc284b989702@nntp.lucent.com... > In article <bed8e3$m6r$1@mawar.singnet.com.sg>, stayhardsg@yahoo.com.sg >...
0
by: PughDR | last post by:
As the subject of this topic suggestions I am trying to find a way to use ASP, SQL Server, Com+ and Crystal Reports 8.5 to Create Dynamic PDF Reports Over The Web, but the only article I found that...
2
by: hans.kindberg | last post by:
I have a page with a content-div that scrolls and has a dynamic height. I do this with position absolute, top and bottom. I can do this if the other parts (divs) in the page over the scrolling part...
5
by: plsHelpMe | last post by:
How to create dynamic javascript arrays using dojo toolkits Hello frens, I am in a big trouble. My objective is: I am having some categories shown by differnent radio buttons, on the click of...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
4
by: Michael Munch | last post by:
Hi I want to read the value of af text-field, create dynamic, in a form. Se below a small test-site to do that (but readning fails): I use the function Test_Read for reading the value from the...
1
by: Sundhas | last post by:
Hey! I am working on jrxml to create dynamic re0ports. I have parameterized the columns i.e. the jrxml for that report can be used to generate other reports as well. However, i have not managed...
8
by: remya1000 | last post by:
i'm using VB \ ASP.NET. i'm trying to display some values in Gridview. but i don't know how many columns i need to display. at run time only i will come to know how many columns i need to...
1
by: buntyindia | last post by:
Hi, How can we achieve dynamic height for IFRAME on the base of it's content height. I want to remove the scrollbars. Thanks,
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.