Hi
I want to create monthly , quaterly and yearly chart for sale
Any sample please ?
You can show this type of data in a bar chart:DataTable dt = new DataTable();dt.Columns.Add("year", typeof(string));dt.Columns.Add("numUsers", typeof(int));dt.Rows.Add(new object[] { "2005", 100 });dt.Rows.Add(new object[] { "2006", 160 });dt.Rows.Add(new object[] { "2007", 250 });dt.Rows.Add(new object[] { "2008", 500 });dt.Rows.Add(new object[] { "2009", 860 });dt.Rows.Add(new object[] { "2010", 600 });
ultraChart1.Data.DataSource = dt;ultraChart1.ChartType = ChartType.BarChart;ultraChart1.Data.DataBind();
Hi,
Thanks for reply
i am having uset table which is having user details
which month i have max number of user
so my x axis values is the user and y xais value is month
similar way i want to create a chart for year Here my x axis values is the user and y xais value is Year
Thanks in advance
Sunil,
Let us know if you need further assistance with this.
Thanks
Can you provide a bit more information about what kind of chart you want to create? Is this a financial type chart? I think a screenshot should be helpful here. I think a good first step is to look through the chart samples online to see if there's something similar to what you need.http://samples.infragistics.com/2010.2/WebFeatureBrowser/Default.aspx