Adding bigger padding to SfChart scale

Hello,

we're trying to add more padding to our SfChart to be able to correctly show the TrackBallLabel above
the StackingColumnSeries. Setting the RangePadding option to "Normal" or "Additional" for the SecondaryAxis wasn't quite enough. 
The TrackBallLabel always appears in front of the bigger StackingColumnSeries, but we would like to 
always have enough place to display it above.

Is there a way to add padding to the secondary Axis, thus allowing for the TrackBallLabel
to be always displayed on top? 


Attachment: Syncfusion_StackingColumnSeries_a557f1db.zip

3 Replies

DS Durgadevi Selvaraj Syncfusion Team January 15, 2018 03:27 PM UTC

Hi Alexis, 
 
Thanks for contacting Syncfusion Support. 
 
We have analyzed your requirement (Add padding to the secondary axis) and it can be achieved by setting plot offset to the chart axis as like in below code, 
 
Code Snippet[C#] 
  <chart:SfChart.SecondaryAxis> 
                <chart:NumericalAxis PlotOffset="50"/> 
  </chart:SfChart.SecondaryAxis> 
 
You can refer our UG documentation link to know more about this property, 
 
Please let us know if you have any concerns. 
 
Regards,  
Durgadevi S 



AT Alexis Tousignant January 15, 2018 04:07 PM UTC

Hi,

PlotOffset also adds equal padding to the bottom of the Chart which sadly doesn't look good.
Is there a possibility to only add Padding to the top?

Greetings
Alexis Tousignant 


MK Muneesh Kumar G Syncfusion Team January 16, 2018 12:58 PM UTC

Hi Alexis,  
 
Thanks for your update.   
 
This requirement can be achieved by setting Maximum property in axis as per the below code snippet.  
 
Code Snippet [XAML] 
 
 
<syncfusion:SfChart.SecondaryAxis> 
<syncfusion:NumericalAxis Maximum="1800">  
</syncfusion:NumericalAxis> </syncfusion:SfChart.SecondaryAxis> 
 
 
You can refer our UG documentation link to know more about this property,  
 
Link: https://help.syncfusion.com/wpf/sfchart/axis#types-of-axis -> NumericalAxis - > Customizing the NumericalAxis Range 
  
Please let us know if you have any concerns.  
  
Regards,   
Muneesh Kumar G.  
 


Loader.
Up arrow icon