Hi All,
I have been trying to get this to work with little to no success. I have had mixed failed results sometimes showing numerous (3 bars for each value returned)
The linq query above returns a count for each item (MajorCount, MinorCount, NonCount). In a nutshell, I want to show 3 bars (MajorCount, MinorCount, NonCount) vertically along the X Axis. And numbers (1, 2, 3, 4, etc) on the Y Axis.
I did not paste my bar chart in this post... because it is already a lost cause. Any simple solutions that someone has would be greatly appreciated.
I have been trying to get this to work with little to no success. I have had mixed failed results sometimes showing numerous (3 bars for each value returned)
| //Get Counts and Bind to Bar Chart |
| var itemdata = from x in Data.Items |
| join r in Data.SubItems on x.ItemID equals r.ItemID |
| join d in Data.Documents on r.DocID equals d.DocID |
| where d.DocID == documentID |
| select new |
| { |
| MajorCount = getCount(x.ItemID, r.Lookup1.Value, "Major"), |
| MinorCount = getCount(x.ItemID, r.Lookup1.Value, "Minor"), |
| NonCount = getCount(x.ItemID, r.Lookup1.Value, "Non") |
| }; |
| //Bar Chart |
| PerformanceChart.DataSource = itemdata; |
| PerformanceChart.DataBind(); |
The linq query above returns a count for each item (MajorCount, MinorCount, NonCount). In a nutshell, I want to show 3 bars (MajorCount, MinorCount, NonCount) vertically along the X Axis. And numbers (1, 2, 3, 4, etc) on the Y Axis.
I did not paste my bar chart in this post... because it is already a lost cause. Any simple solutions that someone has would be greatly appreciated.