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

Multiple Axis Chart

Hi,
Please find attached a sample app.. Here I am trying to create a chart with 2 Y axis and common X Axis.

I want series 1&2 use the 1st Y axis and series 3 to use 2nd Y axis.. But I am not able to create this secondary Y axis.. Please have a look at this sample app and tell me what I am doing wrong..

Thanks
Navaneeth

Syncfusion_Charts0.zip

5 Replies

RF Rashidha F Syncfusion Team July 13, 2007 07:08 AM UTC

Hi Navaneeth ,

Thanks for using Syncfusion Products.

If your intention is to create a multiple Y-Axis feature means, please set secondary axes orientation property to Vertical in your application.

The following code snippet which illustrates how to set the orientation of the secondary Axes.

secXAxis.Orientation = ChartOrientation.Vertical;

I have modified your sample. Please refer the attached sample.

http://websamples.syncfusion.com/samples/Chart.Windows/F64019/main.htm

Please let me know if this helps.

Thanks and Regards,
Rashidha.


NR Navaneeth Rajkumar July 13, 2007 02:18 PM UTC

Rashidha,
Thanks for your reply. In your example, the Sec Y axis is stacked over the primary Y Axis.. But I want the primary Y axis start from the X Axis min and the secondary Y Axis to start from the X axis Max.

Thanks


RF Rashidha F Syncfusion Team July 16, 2007 03:54 AM UTC

Hi Navaneeth,

Thanks for the update.

You can achieve your requirements using Opposed position and YAxesLayoutMode properties in ChartControl.

The following code snippet which illustrates how to arrange the Sexondary Y-Axis in chartControl.

this.chartControl1.ChartArea.YAxesLayoutMode = Syncfusion.Windows.Forms.Chart.ChartAxesLayoutMode.Stacking;
secXAxis.OpposedPosition = true;

Please refer the attached sample.

http://websamples.syncfusion.com/samples/Chart.Windows/F64019_1/main.htm

Please let me know if this helps.

Thanks and Regards,
Rashidha.


NR Navaneeth Rajkumar July 16, 2007 02:00 PM UTC

Looks like you are using 5.1 to achieve this.. but I am still using 4.4. Is there a way I can get this feature working in 4.4?

Thanks
Navaneeth


RF Rashidha F Syncfusion Team July 17, 2007 04:40 AM UTC

Hi Navaneeth,

Thanks for the update.

I have modified the sample using 4.4 Syncfusion chart version.

Please refer the attached sample.

http://websamples.syncfusion.com/samples/Chart.Windows/F64019_2/main.htm

Please let me know if this helps.

Regards,
Rashidha.

Loader.
Live Chat Icon For mobile
Up arrow icon