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.
Unfortunately, activation email could not send to your email. Please try again.

Binding DataSet / DataTable to Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

33891 Aug 29,2005 07:13 AM Aug 31,2005 03:02 AM Windows Forms 3
loading
Tags: Chart
Vinay
Asked On August 29, 2005 07:13 AM

Hello All, My requirement is to assign datasource to a chart at run time. My datasource is set of items[ on X axis] and prices[ on Yaxis]. But when I try to assign any string to X axis or Y axis it does not allow me to do that. Only datatypes I could find is double & dateTime, but in my case this will not work. Please give me suggestions on how to solve this. Thanks Vinay

Geetha M [Syncfusion]
Replied On August 30, 2005 07:18 AM

Hello Vinay, To work with string datatype, you can have the ChartValueType property set to Custom. This property helps in implementing user-defined datatypes. The code snippet for the same is shown below: this.chartControl1.PrimaryXAxis.ValueType = ChartValueType.Custom; Please refer to the sample attached below and let me know if you have any questions. sample_8698.zip Thanks, Geetha.

Vinay
Replied On August 30, 2005 09:50 AM

Hello Geetha, I could not find the mdb file in the attached Zip . Could you please attach it again. Thanks Vinay >Hello Vinay, > >To work with string datatype, you can have the ChartValueType property set to Custom. This property helps in implementing user-defined datatypes. The code snippet for the same is shown below: > >this.chartControl1.PrimaryXAxis.ValueType = ChartValueType.Custom; > >Please refer to the sample attached below and let me know if you have any questions. > >sample_8698.zip > > >Thanks, > >Geetha. > > > >

Geetha M [Syncfusion]
Replied On August 31, 2005 03:02 AM

Hello Vinay, Sorry for the inconvenience caused. Please refer the sample attached below and let me know if you have any questions. DataBind_5990.zip Thanks, Geetha.

CONFIRMATION

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.

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.

;