Hi!
I'm trying to create a 2D bar graph that will show values for each year.
2001 - 10
2002 - 2
2003 - 24
However I don't get it to work like I want to. I manage to get the values out correctly, but instead it says 1, 2, 3, 4 under.
I was trying to accomplish this by doing the same way that the standard chart works like -
but that didn't work out as I said.
What kind of data can I assign to the graph to display the information I want to?
I've also tried to do this:
I'm trying to create a 2D bar graph that will show values for each year.
2001 - 10
2002 - 2
2003 - 24
However I don't get it to work like I want to. I manage to get the values out correctly, but instead it says 1, 2, 3, 4 under.
I was trying to accomplish this by doing the same way that the standard chart works like -
List<KeyValuePair<
string
,
int
>>();
but that didn't work out as I said.
What kind of data can I assign to the graph to display the information I want to?
I've also tried to do this:
DataSeries dataSeries =
new
DataSeries();
foreach
(var pair
in
retVal)
{
var dp =
new
DataPoint {XCategory = pair.Key, YValue = pair.Value, IsDateTime =
true
};
dataSeries.Add(dp);
}
InvoiceData = dataSeries;