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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

To Place Axis Header above Multi Level Labels

Thread ID:

Created:

Updated:

Platform:

Replies:

145645 Jul 2,2019 09:49 AM UTC Jul 6,2019 05:38 AM UTC WPF 5
loading
Tags: SfChart
Xamarin Hunter
Asked On July 2, 2019 09:49 AM UTC

Is there anyway to place SfChart axis header above multi-level labels?  Like this:




And is it possible to show start end values of multi level labels?

Thanks for your responses.

Muneesh Kumar G [Syncfusion]
Replied On July 3, 2019 09:59 AM UTC

Hi Utemar, 
 
Greetings from Syncfusion.  
 
Query 1: Is there any way to place SfChart axis header above multi-level labels? 
 
We have analyzed your requirements, currently we don’t have direct support to achieve this requirement, but you can achieve this by setting axis header in 0th level multi-level labels and other labels in 1st level labels as per the below code snippet.  
 
Code snippet 
 
<chart:NumericalAxis Minimum="0" Maximum="5" MultiLevelLabelsBorderType="WithoutTopAndBottomBorder"> 
                     
                    <chart:NumericalAxis.MultiLevelLabels> 
 
                        <chart:ChartMultiLevelLabel Start="0" End="5"  Text="X-Axis" /> 
                         
                        <chart:ChartMultiLevelLabel Start="0" End="1"  Text="Quarter 1" Level="1"/> 
 
                        <chart:ChartMultiLevelLabel Start="1" End="2" Text="Quarter 2" Level="1"/> 
 
                        <chart:ChartMultiLevelLabel Start="2" End="3" Text="Quarter 3" Level="1"/> 
 
                        <chart:ChartMultiLevelLabel Start="3" End="4" Text="Quarter 4" Level="1"/> 
                        <chart:ChartMultiLevelLabel Start="4" End="5" Text="Quarter 5" Level="1"/> 
 
                    </chart:NumericalAxis.MultiLevelLabels> 
                </chart:NumericalAxis> 
 
 
 
 
Query 2: Is it possible to show start end values of multi level labels? 
 
We have analyzed this requirement with our source, and we would like to inform you that we don’t have support for this requirement.  
 
Regards,
Muneesh Kumar G.  
 


Xamarin Hunter
Replied On July 4, 2019 07:57 AM UTC

Hi Utemar, 
 
Greetings from Syncfusion.  
 
Query 1: Is there any way to place SfChart axis header above multi-level labels? 
 
We have analyzed your requirements, currently we don’t have direct support to achieve this requirement, but you can achieve this by setting axis header in 0th level multi-level labels and other labels in 1st level labels as per the below code snippet.  
 
Code snippet 
 
<chart:NumericalAxis Minimum="0" Maximum="5" MultiLevelLabelsBorderType="WithoutTopAndBottomBorder"> 
                     
                    <chart:NumericalAxis.MultiLevelLabels> 
 
                        <chart:ChartMultiLevelLabel Start="0" End="5"  Text="X-Axis" /> 
                         
                        <chart:ChartMultiLevelLabel Start="0" End="1"  Text="Quarter 1" Level="1"/> 
 
                        <chart:ChartMultiLevelLabel Start="1" End="2" Text="Quarter 2" Level="1"/> 
 
                        <chart:ChartMultiLevelLabel Start="2" End="3" Text="Quarter 3" Level="1"/> 
 
                        <chart:ChartMultiLevelLabel Start="3" End="4" Text="Quarter 4" Level="1"/> 
                        <chart:ChartMultiLevelLabel Start="4" End="5" Text="Quarter 5" Level="1"/> 
 
                    </chart:NumericalAxis.MultiLevelLabels> 
                </chart:NumericalAxis> 
 
 
 
 
Query 2: Is it possible to show start end values of multi level labels? 
 
We have analyzed this requirement with our source, and we would like to inform you that we don’t have support for this requirement.  
 
Regards,
Muneesh Kumar G.  
 


Great solution. In addition, I want to ask one more question.
Is it possible to set the same process on chart series legend checkbox and chart header? In other words, can chart series legend checkbox be placed above the chart header? 

Muneesh Kumar G [Syncfusion]
Replied On July 4, 2019 10:42 AM UTC

Hi Utemar,   
 
We have analyzed your requirement and you can achieve by customizing SfChart’s Header and Legend position as per the below code snippet.  
 
Code snippet 
 
<chart:SfChart  Grid.Row="1"  x:Name="chart"  > 
            
            <chart:SfChart.Header> 
                <TextBlock Text="SfChart" Margin="0,50,0,-30"/> 
            </chart:SfChart.Header> 
           
            <chart:SfChart.Legend> 
                <chart:ChartLegend Margin="0,-30,0,40"/> 
            </chart:SfChart.Legend> 
.. 
 
 
 
 
Please let us know if you have any other queries.  
 
Regards,  
Muneesh Kumar G.  
 


Xamarin Hunter
Replied On July 5, 2019 12:55 PM UTC

Hi Utemar,   
 
We have analyzed your requirement and you can achieve by customizing SfChart’s Header and Legend position as per the below code snippet.  
 
Code snippet 
 
<chart:SfChart  Grid.Row="1"  x:Name="chart"  > 
            
            <chart:SfChart.Header> 
                <TextBlock Text="SfChart" Margin="0,50,0,-30"/> 
            </chart:SfChart.Header> 
           
            <chart:SfChart.Legend> 
                <chart:ChartLegend Margin="0,-30,0,40"/> 
            </chart:SfChart.Legend> 
.. 
 
 
 
 
Please let us know if you have any other queries.  
 
Regards,  
Muneesh Kumar G.  
 


The great solution again. Lastly, which Syncfusion class can be used for determining the height of multi-level labels?

Muneesh Kumar G [Syncfusion]
Replied On July 6, 2019 05:38 AM UTC

Hi Utemar, 
 
We have analyzed your requirement and we don’t have direct support to increase the multi-level labels in axis.  
 
However, you can increase the multi-level labels height by increasing labels font size as per the below code snippet.  
 
Code snippet 
 
<chart:NumericalAxis.MultiLevelLabels> 
 
       <chart:ChartMultiLevelLabel Start="0" End="5" FontSize="28" Text="X-Axis"/> 
 
   .. 
 
 
Please let us know if you have any other queries.
 
 
Thanks,   
Muneesh Kumar G.   


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon