[CLOSED] Chart CategoryAxis

  1. #1

    [CLOSED] Chart CategoryAxis

    Hi,

    is it possible to use image instead text to render X Axe Labels or to render html

    i tried to use the renderer but the html is encoded
                        <ext:CategoryAxis Position="Bottom" Fields="Name" Title="Month of the Year" >
                            <Label>
                                <Renderer Handler="return '<p>MyLabel</p>';" /  >
                            </Label>
                        </ext:CategoryAxis>
    Thx
    Last edited by Daniil; Mar 22, 2012 at 7:27 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please ensure the code is wrapped in [CODE ] tags, see:
    Forum Guidelines For Posting New Topics
  3. #3

    Re:

    Hi,

    That's ok.
  4. #4
    Hi,

    I don't think that SVG/VML support it, you casn use sprite attributes only
    For example,
    <Label Font="bold 16px Arial" Fill="#F00">
                                    <Renderer Handler="return Ext.util.Format.number(value, '0,0');" />
                                </Label>
    Vladimir Shcheglov
    Sr. Developer
  5. #5
    Thanks for editing.


    Quote Originally Posted by ddslogistics View Post
    is it possible to use image instead text to render X Axe Labels or to render html

    i tried to use the renderer but the html is encoded
                        <ext:CategoryAxis Position="Bottom" Fields="Name" Title="Month of the Year" >
                            <Label>
                                <Renderer Handler="return '<p>MyLabel</p>';" /  >
                            </Label>
                        </ext:CategoryAxis>
    Unfortunately, no, HTML tags are not supported.

    Generally, a Chart is an SVG image. And Label is a piece of that SVG image. SVG can't contain common HTML inside.

    An Axis Label is a Ext.draw.Sprite instance with the "text" type.
    http://docs.sencha.com/ext-js/4-0/#!...xt.draw.Sprite
  6. #6
    Quote Originally Posted by Vladimir View Post
    you can use sprite attributes only
    Here is the list of supported attributes.
    http://docs.sencha.com/ext-js/4-0/#!...abel-cfg-label

Similar Threads

  1. Replies: 2
    Last Post: Aug 13, 2012, 3:12 PM
  2. [CLOSED] export chart to SVG
    By CarpFisher in forum 2.x Premium Help
    Replies: 30
    Last Post: Jun 07, 2012, 8:49 AM
  3. Replies: 1
    Last Post: Jun 02, 2012, 8:12 AM
  4. [CLOSED] Chart Control with Ext.Net
    By rnachman in forum 1.x Premium Help
    Replies: 4
    Last Post: Jan 12, 2012, 5:11 PM
  5. [CLOSED] Chart Ext.Net
    By Jurke in forum 1.x Premium Help
    Replies: 4
    Last Post: Mar 01, 2011, 8:02 AM

Posting Permissions