By Anupama Vadla - Tuesday, October 5, 2010
I am using sample Northwind database my data is present in datatable which has "CategoryName" and "Tot price" columns. I tried binding this dt to my chart using NChartControl1.DataBindingManager.AddBinding(0, 0, "Values", dt, "Tot Price"); NChartControl1.DataBindingManager.AddBinding(0, 0, "XValues", dt, "CategoryName"); but the chart is empty. I need CategoryName on x-axis and TotPrice on Y-axis. I am following the documentation. But not able to make it. Can any one pls give me the code how to start building a simple bar chart. Also How can I bind sqldatasource or object datasource to chart.
I am very new to Nevron.
Thanks in advance. Urgent please.
|
|