Axis problems ...

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



syncfusion_generate.zip

3 Replies

RS Rajarajeswari S Syncfusion Team November 20, 2007 02:11 PM UTC


Hi,

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\5.2.0.25\Web\chart.web\Samples\2.0\Chart Axes\ChartMultipleAxesSample\CS

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

Regards,
Raji





PG Pierre-Alain Galtier 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



Symbols.zip


RS Rajarajeswari S Syncfusion Team December 6, 2007 04:09 AM UTC


Hi,

Thanks for using Syncfusion products.

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

Regards,
Raji



Loader.
Up arrow icon