Rad Chart AxisLabel

Thread is closed for posting
2 posts, 0 answers
  1. Ugur
    Ugur avatar
    7 posts
    Member since:
    Jul 2010

    Posted 11 Feb 2011 Link to this post

    Hi,
    Is it possible to put an image instead of Axislabel in radchart ?
    Thank you very much...
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 16 Feb 2011 Link to this post

    Hello Ugur,

    Here is how to set an image as X axis label background:

    <XAxis>
                        <AxisLabel Visible="True">
                            <Appearance Visible="True">
                                <FillStyle FillType="Image" FillSettings-BackgroundImage="~/img.jpg">
                                    <FillSettings BackgroundImage="~/img.jpg">
                                    </FillSettings>
                                </FillStyle>
                            </Appearance>
                        </AxisLabel>
                    </XAxis>


    Note, that this sets the background of the X axis label. If you need to set the background of the X axis item label you can use the following markup:

    <XAxis AutoScale="false">
                        <Items>
                            <telerik:ChartAxisItem Value="1">
                                <Appearance FillStyle-FillType="Image" FillStyle-FillSettings-BackgroundImage="img.jpg" />
                            </telerik:ChartAxisItem>
    ............................
                        </Items>
                    </XAxis>


    All the best,
    Evgenia
    the Telerik team
Back to Top