Articles in this section
Category / Section

How can I display the chart area alone?

1 min read

Description

This article describes how to display the Chart area in the SfChart.

Solution

The chart area alone can be displayed by changing the Visibility property as Collapsed in the axes.

XAML

<syncfusion:SfChart x:Name="areaChart" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16">
            <syncfusion:SfChart.PrimaryAxis >
                <syncfusion:CategoryAxis Header="Computer sales" Visibility="Collapsed"/>
            </syncfusion:SfChart.PrimaryAxis>
            <syncfusion:SfChart.SecondaryAxis>
                <syncfusion:NumericalAxis Header="Quantity Sold" Visibility="Collapsed"/>
            </syncfusion:SfChart.SecondaryAxis>
            <syncfusion:ColumnSeries Label="2014"
                                         ItemsSource="{Binding Computers}"
                                         XBindingPath="Computer"
                                         YBindingPath="Year2014"
                                         />
</syncfusion:SfChart>

 

C#

this.areaChart.PrimaryAxis.Visibility = Visibility.Collapsed;
this.areaChart.SecondaryAxis.Visibility = Visibility.Collapsed;     

 

Output

The following screenshot illustrates the output for the chart displayed with its area alone.

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

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