Not able to bind the datatable to bar chart


Author
Message
Anupama Vadla
Anupama Vadla
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search