Hii
I am binding common datset to diffrent chartTypes which is of the form
Commercial Resedential
--------------------------------------------
1 1
I am rendering between diffrent chartTypes via combobox.
When i am selecting Bar Chart(2d)..it only displays one bar with single color
see snap
But when my datset modifies to following
2 1
Bar chart is shown with two colors with proper width of bars.
I am using ColorModel as Customskin and assigning colors like red,green yellow ,blue etc..
so, how should i manage this??
that's interesting, I don't see that result when I use this code:
DataTable table = new DataTable(); table.Columns.Add("Commercial", typeof(int)); table.Columns.Add("Residential", typeof(int)); table.Rows.Add(new object[ { 1, 1 }); DataSet set = new DataSet(); set.Tables.Add(table); this.ultraChart1.Data.ZeroAligned = true; this.ultraChart1.Data.DataSource = set; this.ultraChart1.Data.DataBind(); this.ultraChart1.ChartType = ChartType.BarChart;
does that work for you?