This project has moved and is read-only. For the latest updates, please go here.

Create VectorBarChart from database

May 14, 2014 at 8:30 PM
Can someone help me to create a vectorbarchart collecting data from a database. I have seen the example which uses var items = new[] { add item1, add item2};
But I have to replace this somehow with the while ( { add item}

Thanks in advance.
May 14, 2014 at 8:55 PM
Just replace that new[] with new List<BarChartItem>.
var items = new List<BarChartItem>();
while (
  items.Add(new BarChartItem(value, caption,  color));
May 14, 2014 at 9:08 PM
Great. Thanks it works.