Alignment of axis is not perfect

Hi Rashid
i'm using Syncfusion Chart control V4.4 and i have a issue in proper alignment of axis. pl'z suggest us better way to align axis. Refer screenshot for clear understanding.

Thanks in Advance
Gourav

axis-alignment.zip

3 Replies

RF Rashidha F Syncfusion Team June 20, 2007 12:26 PM UTC

Hi Gourav,

Thanks for your screen shots.

Please have a look at the attached sample.

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

The above sample show how to align the secondary Y-axes in chartControl.

Please let me know if this helps.

Regards,
Rashidha.


GN Gourav Nayyar June 21, 2007 09:22 AM UTC

Hi rashid i got your sample but in my case the axis are dynamically generated and it changes after getting highest values . so in this case some times it allign proper but in some time it somes over chart area. pl'z suggest me according to this scenario.

Thanks in Advance
Gourav.

>Hi Gourav,

Thanks for your screen shots.

Please have a look at the attached sample.

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

The above sample show how to align the secondary Y-axes in chartControl.

Please let me know if this helps.

Regards,
Rashidha.

axis-alignment0.zip


RF Rashidha F Syncfusion Team June 22, 2007 08:49 AM UTC

Hi Gourav,

Thanks for your screen shot.

If your intention is to align the axes means, please use the Axes Location property in chartControl.

The following code snippet which illustrates how to align the axes in chartcontrol.

axis1.LocationType = ChartAxisLocationType.Set;
axis1.Location = new PointF(this.chartControl1.PrimaryXAxis.Location.X, (this.chartControl1.ChartArea.RenderBounds.Bottom - this.chartControl1.ChartArea.RenderBounds.Height / 5));

Please have a look at the attached sample.

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

The above sample which illustrates how to align the axes in chartcontrol.

Please let me know if this helps.

Regards,
Rashidha.

Loader.
Up arrow icon