ActiveReports Developers 7 Now Available in Beta!! (click for details)

ActiveReports for .NET 2.0 Support

Started by PainessProd at 02-19-2010 1:22 PM. Topic has 3 replies.

Print Search Rate
Sort Posts:    
   02-19-2010, 1:22 PM
PainessProd is not online. Last active: 10/20/2010 7:51:43 PM PainessProd

Top 500 Posts
Joined on 11-10-2005
Posts 31
Pie Graphs
i think i may be slow but cant figuire this out

i have a pie chart which i am binding xy
with

chartControl.Series[0].Points.DataBindXY(xValues, yValues);
where X is:
[0] "Sample Item1" string
[1] "sample item 2" string
[2] "sample item 3" string
[3] "sample item 4" string
[4] "sample item 5" string
[5] "sample item 6" string
[6] "sample item 7" string
[7] "sample item 8" string
[8] "sample item 9" string
[9] "sample item 10" string
[10] "8436 Others" string


and Y is:
[0] 57677956.35 decimal
[1] 23691513.65 decimal
[2] 16845637.64 decimal
[3] 14792748.71 decimal
[4] 14562095 decimal
[5] 8971601.25 decimal
[6] 8734187.645 decimal
[7] 7234266 decimal
[8] 7221381.68 decimal
[9] 7047940.8 decimal
[10] 589534836.856890992192 decimal


when i get the report my legend just show numbers and i cant seem to format them either
   Report 
   02-19-2010, 1:35 PM
PainessProd is not online. Last active: 10/20/2010 7:51:43 PM PainessProd

Top 500 Posts
Joined on 11-10-2005
Posts 31
Re: Pie Graphs
I would expect to see a legend with both the strings and the numbers together or a line off the pie chart itself with the number and the strings in the legend
   Report 
   02-22-2010, 12:07 AM
SankalpS is not online. Last active: 3/30/2012 11:17:34 PM SankalpS

Top 10 Posts
Joined on 12-11-2008
Posts 2,587

DDStaff
Re: Pie Graphs

Attachment: PieChart_legend.zip
PainessProd,

In order to display both the strings and the numbers together on the legend, you will need to set the LegendText property for the DataPoint in the legend. I have attached a sample application created in ActiveReports for .NET 3.0 which demonstrates how you may display the number and the string in the Pie chart legend. I have used a sample database for this sample. Please go through the sample application and let me know if it works for you.

Regards,
Sankalp

Sankalp Sen
GrapeCity- DataDynamics
   Report 
   02-22-2010, 1:13 PM
PainessProd is not online. Last active: 10/20/2010 7:51:43 PM PainessProd

Top 500 Posts
Joined on 11-10-2005
Posts 31
Re: Pie Graphs
thank you that did the job, was hoping for it to be a lil more hands off but alas it works and im happy
   Report 
GrapeCity » Product Support » ActiveReports f... » Re: Pie Graphs

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.