This is a migrated thread and some comments may be shown as answers.
Rad Chart AxisLabel
1 Answer 21 Views
This is a migrated thread and some comments may be shown as answers.
Ugur
Top achievements
Rank 1
Ugur asked on 11 Feb 2011, 08:13 AM
Hi,
Is it possible to put an image instead of Axislabel in radchart ?
Thank you very much...

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 16 Feb 2011, 06:32 PM
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
Asked by
Ugur
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or