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

html in axislabel textblock-text

1 Answer 41 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
EanX
Top achievements
Rank 1
EanX asked on 27 May 2013, 09:41 AM
I'm trying to show y-axis title in html as I want to show a character as apex or subscript.
The following code does not work.
  <YAxis     >
                 
                 <Appearance Color="134, 134, 134" MajorTick-Color="196, 196, 196" MinorTick-Color="196, 196, 196">
                     <LabelAppearance Visible="true"  >
                         
                     </LabelAppearance>
                     <MajorGridLines Color="196, 196, 196" />
                     <MinorGridLines Color="196, 196, 196" Width="0" />
                     <TextAppearance TextProperties-Color="89, 89, 89"  >
                         
                     </TextAppearance>
                 </Appearance>
                 <AxisLabel TextBlock-Visible="true" Visible="true" TextBlock-Text="kWh/<sup>m2</sup>">
                     <TextBlock  >
                         <Appearance TextProperties-Color="220, 158, 119"  TextProperties-Font="18px">
                         </Appearance>
                     </TextBlock>
                 </AxisLabel>
             </YAxis>

I suppose that html is not supported in axislabel textblock-text property. Does exist any workaround?
Best regards!

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 29 May 2013, 07:02 PM
Hi EanX,

RadChart renders its image entirely on the server-side using GDI+. Unfortunately it does not support rich text formatting, HTML markup or CSS stylization of its elements. If you want to display formatted text for the chart title or axis titles you will need to add this text as html content to your web page and use css to position it above the control.

We are sorry for the inconvenience. 
 
Regards,
Petar Kirov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
EanX
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or