how to give margin right to chart subtitle in kendo react ?

1 Answer 114 Views
Charts
samir
Top achievements
Rank 1
samir asked on 25 Jan 2023, 11:36 AM
<ChartSubtitle
text='some text'
color='black'
padding={0}
margin={10}
align='right'

/>

 

here margin gives for all direction. how can i give margin or padding on right side only ?

 

1 Answer, 1 is accepted

Sort by
0
Hetali
Telerik team
answered on 25 Jan 2023, 02:54 PM

Hi Samir,

In order to apply margin or padding to the right side of the ChartSubtitle, use the Margin and Padding configuration of the ChartSubtitleProps. For example:

<ChartSubtitle 
  text='some text'
  color='black'
  margin={{
    right: 100
  }}
  padding={{
    right: 100
  }}
  align='right'
/>

In this StackBlitz example, I have added margin and padding to the right side of the ChartSubtitle.

I hope this solution helps. Please let me know if you have further questions pertaining to the styling of the ChartSubtitle.

Regards,
Hetali
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Charts
Asked by
samir
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Share this question
or