how to hide the starting (x,y) position in the chart

I have the following,

this.chartControl1.PrimaryXAxis.Range = new MinMaxInfo(0, 120, 10);
this.chartControl1.PrimaryYAxis.Range = new MinMaxInfo(-100, 50, 20);

But I dont want to see the values -100(along Y axis) and 0(along X axis).Similary the end values, 50(along Y axis) and 120(along Xaxis)should not be visible.But the chart should start from the initial value(0,-100) and shold have the end value (120,50)but the value should not be visible in the graph.But all the other ranges should be visible.


3 Replies

BP Bhuvaneswari P Syncfusion Team May 15, 2008 09:43 AM UTC

Hi Neethu,

Thank you for your interest in Syncfusion products.

If you want to hide starting and ending (x,y) position, then please use the HidePartialLabels PrimaryXaxis and PrimaryYAxis or ChartControl. By default the value is set to false.

Code Snippet:


this.chartControl1.PrimaryXAxis.HidePartialLabels = true;
this.chartControl1.PrimaryYAxis.HidePartialLabels = true;
or
this.chartControl1.HidePartialLabels = true;



Please try this and let me know if this helps you.

Best Regards,
Bhuvana




NM Neethu Mol May 15, 2008 09:57 AM UTC

Thanks a lot!!!

Please find the attached chart.Here the topmost coordinate is (5,50). But i dont want to display the gridline for the 50(along Y axis) I just want the grid till 40 only.Rest should be left blank without showing the coordinate value, but the point should be plotted in the chart.



BP Bhuvaneswari P Syncfusion Team May 23, 2008 06:15 AM UTC

Hi Neethu,

I couldn't find any attachment in your last post. Could you please resend it again.

Best Regards,
Bhuvana


Loader.
Up arrow icon