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.
Unfortunately, activation email could not send to your email. Please try again.

Hide Axis Labels

Thread ID:

Created:

Updated:

Platform:

Replies:

117975 Jan 15,2015 08:43 AM Apr 10,2015 04:36 AM Xamarin.Forms 5
loading
Tags: SfChart
Markus Demmler
Asked On January 15, 2015 08:43 AM

I can set MaximumLabels="but a label for lowest and highest value is still shown.
How can I hide all labels of an axis?

Magesh Kumar Krishnan [Syncfusion]
Replied On January 15, 2015 01:49 PM

Hi Markus,

Thanks for using Syncfusion products.

We have analysed your requirement and we can hide the chart axis labels by using label font size as in below code snippet.

Code snippet:

[C#]
Axis.LabelStyle.Font = Font.SystemFontOfSize(0.01d);

[XAML]
<chart:NumericalAxis>
   <chart:NumericalAxis.LabelStyle>
       <chart:ChartAxisLabelStyle Font="0.01"/>
   </chart:NumericalAxis.LabelStyle>
</chart:NumericalAxis>

Please let us know if you need any further assistance on this.

Thanks,
Magesh Kumar K


Markus Demmler
Replied On January 16, 2015 01:49 AM

It works. Thanks.
Is it also possible to not just hide the labels but also the whole line and the label ticks?

Rajasekar B [Syncfusion]
Replied On January 16, 2015 02:12 AM

Hi Markus,

You can collapse entire axis including ticks, title and labels by setting IsVisible property of axis to false.

For example,

[c#]
Axis.IsVisible = false;

[XAML]
<chart:NumericalAxis IsVisible = false/>

Thanks,
Rajasekar

Jono
Replied On April 9, 2015 08:04 PM

Is there a way to hide the axis labels etc but keep any striplines contained in the axis? Or perhaps set a stripline outside of the axis?

Any help is appreciated.

Cheers,
Jono

Magesh Kumar Krishnan [Syncfusion]
Replied On April 10, 2015 04:36 AM

Hi Jono,

We suspect that you are telling TickLine as StripLine and we can hide the axis labels alone (without hiding TickLine) by setting FontSize to 0.01 as shown in the below code snippet.


Code snippet:

[C#]
Axis.LabelStyle.Font = Font.SystemFontOfSize(0.01d);

[XAML]
<chart:NumericalAxis>
<chart:NumericalAxis.LabelStyle>
<chart:ChartAxisLabelStyle Font="0.01"/>
</chart:NumericalAxis.LabelStyle>
</chart:NumericalAxis>


Note: If this is not your requirement please provide us more information regarding your requirement.

Please let us know if you need any further assistance on this.

Thanks,
Magesh Kumar K

CONFIRMATION

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.

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.

;