This is a migrated thread and some comments may be shown as answers.

how to wrap the text of axis in code behind of RAD HTML CHART

1 Answer 166 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
avinash
Top achievements
Rank 1
avinash asked on 12 May 2014, 05:38 AM
hi, i have dynamically creted a radhtmlchart in code behind , now i want to wrap the text of chart tiltle or axis title using C#

i have tried like this

// ChartTitle.TextBlock.Appearance.AutoTextWrap
         // Axis.Appearance.TextAppearance.AutoTextWrap
         // RadHtmlChart1.PlotArea.YAxis.TitleAppearance = Telerik.Charting.Styles.AutoTextWrap.True;
         // RadHtmlChart1.ChartTitle.Appearance.Align = Telerik.Charting.Styles.AutoTextWrap.True;
        // RadHtmlChart1.PlotArea.YAxis.TitleAppearance.tex = Telerik.Charting.Styles.AutoTextWrap.True;
         // RadHtmlChart1.PlotArea.YAxis.TitleAppearance.TextStyle=Telerik.Web.UI.HtmlCha
       // RadHtmlChart1.ChartTitle.Appearance.TextStyle=Telerik.Web.UI.HtmlChart.TextStyles.

but none of them work .

any help ?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 May 2014, 08:43 AM
Hi avinash,

Text wrapping is not available in RadHtmlChart because SVG itself does not support line breaks in text elements. As a work around please have a look into this thread.

Thanks,
Shinu.
Tags
Chart (Obsolete)
Asked by
avinash
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or