Articles in this section
Category / Section

How can I hide an axis?

1 min read

Description

In some cases the axis size can make the plot area smaller, especially on phones. This article describes how to remove axis from the SfChart to have a clear view on plot.

Solution

The chart axis is hidden by setting the Visibility property of the axis to Collapsed.

The Visibility property of the primary axis is set “Collapsed” by using XAML.

XAML

<syncfusion:SfChart.PrimaryAxis >
        <syncfusion:CategoryAxis Header="Product" Visibility="Collapsed"/>
  </syncfusion:SfChart.PrimaryAxis>

The Visibility property of the primary axis is set “Collapsed” by using code behind.

C#

this.axisChart.PrimaryAxis.Visibility = Visibility.Collapsed;

The following screenshot illustrates the output for the hidden primary axis.

F:\Issue Files Chart\Issue File -10 Knowledge Base\WP_ScreenShot\New Second TIme\wp_ss_20150210_0022.png

Figure 1: Chart with Hidden Primary Axis

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied