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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Axis problems ...

Thread ID:





69917 Nov 16,2007 05:23 PM UTC Dec 6,2007 04:09 AM UTC ASP.NET Web Forms (Classic) 3
Tags: Chart
Pierre-Alain Galtier
Asked On November 16, 2007 05:23 PM UTC

Since several hours, i am trying to center Axis without success. So, i have drawn some graphic objects (lines and polygons) on the chart. does a better issue exist ?

What's more, i wish removing X and Y primary axis. How can i do ?

Best Regards,

SCHAEFFER Christophe


Rajarajeswari S [Syncfusion]
Replied On November 20, 2007 02:11 PM UTC


Thanks for using Syncfusion products.

There is no direct way to remove the primary X-Axis and y-Axis, but you can hide it by setting the color for the axis lines using the below code snippet:

this.ChartWebControl1.PrimaryXAxis.LineType.ForeColor = Color.Gray;
this.ChartWebControl1.PrimaryXAxis.LineType.BackColor = Color.Gray;
this.ChartWebControl1.PrimaryYAxis.LineType.ForeColor = Color.DarkGray;
this.ChartWebControl1.PrimaryYAxis.LineType.BackColor = Color.DarkGray;

And also instead of having Graphics objects like line and polygons you can have secondary axis property like below:

private ChartAxis secXAxis = new ChartAxis();
this.secXAxis.Range = new MinMaxInfo(0, 15, 3);
this.secXAxis.LocationType = ChartAxisLocationType.Set;
this.secXAxis.Location = new PointF(100, 200);
this.ChartWebControl1.Model.Series[1].XAxis = this.secXAxis;

The above code creates a secondary axis and also you can mention the Location for the axis.

You can also refer the sample browser sample for Multiple axis from the below link:

C:\Documents and Settings\User Name\My Documents\Syncfusion\EssentialStudio\\Web\chart.web\Samples\2.0\Chart Axes\ChartMultipleAxesSample\CS

Please try the above and let me know if this helps you out.


Pierre-Alain Galtier
Replied On November 29, 2007 10:45 AM UTC

Thanks for your reply,

I have an other problem :

I would like to "extract" Symbols of my Chart to put them in a separate Legend, why ? because, in a next release of our software, we would like to use a "Treeview" to show (or to hide) details about series. How can i proceed ?

Best regards,

SCHAEFFER Christophe


Rajarajeswari S [Syncfusion]
Replied On December 6, 2007 04:09 AM UTC


Thanks for using Syncfusion products.

Your direct trac incident has been updated please followup with that incident # 39461.



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