html in axislabel textblock-text

Thread is closed for posting
2 posts, 0 answers
  1. EanX
    EanX avatar
    4 posts
    Member since:
    May 2013

    Posted 27 May 2013 Link to this post

    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!
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 29 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top