Multiple series in column graph

Nov 12, 2012 at 1:55 PM
Edited Nov 12, 2012 at 2:01 PM

Hi, 
My question si, how can i add another column (another series) to my column graph?
So far i have this code, which is WebMethod returning string and then used to create one serie.




.SetSeries(new Series {
 	Data = new Data(new object[] {FrequencyAnalysisWS.Calculate(TextBox1.Text)})
})

and it looks like this: http://postimage.org/image/8ydmck507/
But what i want is to have multiple (two) columns, for every letter, similiar to this graph: http://www.highcharts.com/demo/column-basic


Thanks in advance! 

 
Nov 28, 2012 at 4:43 AM
Edited Nov 28, 2012 at 4:43 AM

Hi, you can do it as below

.SetSeries(new[]   {  new Series { Name = "Facebook", Data = new Data(new object[] { 10, 20, 15, 11, 25 }) },                               new Series { Name = "Twitter", Data = new Data(new object[] { 2, -10, -15, 20, 15 }) }, new Series { Name = "LinkedIn", Data = new Data(new object[] { 3, 4, 4, -2, 5 }) }                           })