Chart subtitle width not to follow Title width

Hi,
I have a chart with a short title but very long subtitle which make the subtitle to wrap. How to set subtitle width as long as the chart width?


1 Reply 1 reply marked as answer

SB Sridevi Bharathi Manohar Syncfusion Team October 20, 2021 04:21 PM UTC

Hi RWEM, 

Greetings from Syncfusion. 

We suggest you to use subTitleStyle property to achieve your requirement. By setting textOverflow property to none chart subtitle can display entirely regardless of chart title length. Please check with the below snippet and sample. 

<ejs-chart title="A very short title" subTitle="This chart subtitle is going to be much larger than the chart title."> 
        <e-chart-subtitlestyle textOverflow="None"></e-chart-subtitlestyle> 
</ejs-chart> 

 



Kindly revert us if you have any concerns. 

Regards, 
Sridevi Bharathi. 


Marked as answer
Loader.
Up arrow icon