Add Margin between ChartTitle and PlotArea

Hi, forum!

I was wondering if it's possible to add a Margin/Spacing/Padding between the ChartTitle and the PlotArea.
I tried with margin property but it applies to whole graph.

I selected SFCartesianChart as Control for this thread but it applies to all widgets I can see in the Demo Page.

This is what I see in the demos:


This is what I'd like to achieve:


Regards!


3 Replies 1 reply marked as answer

YG Yuvaraj Gajaraj Syncfusion Team November 15, 2021 12:21 PM UTC

Hi Joaquin, 
 
Greetings from Syncfusion. We have analyzed your query, and we would like to let you know that currently we don’t have the margin support chart title to add space between chart title and plot area. However, your requirement can be achieved by adding ‘\n’ at the end of the chart title to add space between the chart title and plot area. 
 
Code snippet: 
SfCartesianChart( 
                  title: ChartTitle(text: 'Chart title \n'), 
                  //Other configuration 
                ) 
 
 
Hope, this will help you to achieve your requirement. 
 
Regards, 
Yuvaraj. 


Marked as answer

JO Joaquin replied to Yuvaraj Gajaraj November 15, 2021 12:53 PM UTC

Thanks!

The intendedly-added line break will make the trick :D



YG Yuvaraj Gajaraj Syncfusion Team November 16, 2021 03:14 PM UTC

Hi Joaquin, 
 
Most welcome. Please get back to us if you require further assistance. We are always happy in assisting you. 
 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon