We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bind Chart to DataSet

Thread ID:





15627 Jun 23,2004 04:25 PM UTC Jun 25,2004 02:30 PM UTC WinForms 3
Tags: Chart
kevin musters
Asked On June 23, 2004 04:25 PM UTC

Can the Chart control be bound to any sort of datasource?? I am trying my best to figure this out but I have been unsucessful. The only examples I can find use the method Series.Points.Add(DateTime, Double). Also, when using the Series.Points.Add, what exactly is the purpose of the DateTime?? Thanks, sorry I hassled you so much today!

kevin musters
Replied On June 24, 2004 12:40 PM UTC

I settled for using a ListArray, loading in my data using a "for" statement. It works, not what I wanted though.

Davis Jebaraj [Syncfusion]
Replied On June 25, 2004 12:16 PM UTC

Hi Kevin, The ChartControl can be used with a data source by implementing the IChartSerieModel interface. I will create a sample and put it up for download at the earliest. The Points.Add method has the following overloads: public void Add(double x, params double[] yValues) public void Add(double x, double y) public void Add(double x, params DateTime[] dates) public void Add(double x, DateTime date) public void Add(ChartPoint cp) public void Add(DateTime date, params double[] yValues) public void Add(DateTime date, double y) As you can see, the DateTime values are used when needed. The most common overload would be the public void Add(double x, double y) with a single double value for the x and y axes. Regards, Davis

kevin musters
Replied On June 25, 2004 02:30 PM UTC

Thanks a ton!!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon