User (Legacy) Posted September 8, 2005 Report Share Posted September 8, 2005 I have some very simple data for a pie chart and cannot figure out how to get the legend to display appropriately. I have the data below in a DataTable that I am binding to the charts DataSource property. The DataTable ------------------------------------------ Outcome NumberOfApplications ------------------------------------------ Declined 51 Auto Decline 12 90 co-signer 9 2 Months Rent 17 Lacks Info 6 1 Month Dep 15 Approved 167 3X Liquid Assets 5 I want a pie chart where the legend displays right of the chart (see attachment). The legend should be the Outcome data elements (Declined, Auto Declined, etc...). When I display the lengend if gives me a single item labeled NumberOfApplications. How do I get the Outcome(s) to display as the legend items? Additionally, is there a facility to sort the legend items based on the NumberOfApplications values? Thanks in advance, Kent Bejcek Sample Link to comment Share on other sites More sharing options...
Software FX Posted September 13, 2005 Report Share Posted September 13, 2005 You are displaying the Series legend but what you want is to display the Values legend: chart.LegendBox = true; As for the sorting of the data, you need to sort your Result-Set before handing it over to Chart FX. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.