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"  >
                         <MajorGridLines Color="196, 196, 196" />
                         <MinorGridLines Color="196, 196, 196" Width="0" />
                         <TextAppearance TextProperties-Color="89, 89, 89"  >
                     <AxisLabel TextBlock-Visible="true" Visible="true" TextBlock-Text="kWh/<sup>m2</sup>">
                         <TextBlock  >
                             <Appearance TextProperties-Color="220, 158, 119"  TextProperties-Font="18px">

    I suppose that html is not supported in axislabel textblock-text property. Does exist any workaround?
    Best regards!
  2. Petar Kirov
    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. 
    Petar Kirov
    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.
Back to Top