This is a migrated thread and some comments may be shown as answers.

Radchart Custom figure for PointMark

3 Answers 127 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
sharanya
Top achievements
Rank 1
sharanya asked on 24 Feb 2011, 01:49 AM
Hi,

I need to represent a point on my chart with a "arrow" mark. I looked into Appearance.Figure.defaultfigures. How do i assign an image to Appearance.Figure property or Appearance.Pointshape.

thanks & regards,
Sharanya

3 Answers, 1 is accepted

Sort by
0
Missing User
answered on 02 Mar 2011, 09:10 AM
Hello sharanya,

You can use Appearance.PointMark.FillStyle to set a custom image as a point. Here is a sample code how to achieve that:

<telerik:RadChart ID="chart1" runat="server">
    <Series>
        <telerik:ChartSeries Type="Line">
            <Appearance>
                <PointMark Visible="true" Dimensions-AutoSize="false" Dimensions-Height="40" Dimensions-Width="40">
                    <FillStyle FillType="Image" FillSettings-BackgroundImage="icon.png" />
                </PointMark>
            </Appearance>
            <Items>
                <telerik:ChartSeriesItem YValue="21" />
                <telerik:ChartSeriesItem YValue="11" />
                <telerik:ChartSeriesItem YValue="5" />
                <telerik:ChartSeriesItem YValue="3" />
                <telerik:ChartSeriesItem YValue="31" />
            </Items>
        </telerik:ChartSeries>
    </Series>
</telerik:RadChart>

Hope this helps.

Greetings,
Polina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
sharanya
Top achievements
Rank 1
answered on 03 Mar 2011, 01:19 AM
Hi Polina,

I tried the below code and the point mark appears as a circle irrespective of what background image i specify.

Please let me know what i am missing.

Thanks & Regards,
Sharanya
0
Accepted
Missing User
answered on 08 Mar 2011, 09:31 AM
Hello sharanya,

I prepared a sample project in which I'm setting a custom icon to PointMark.FillStyle.FillSettings-BackgroundImage. You can find it in the attached file.

Let me know whether this helps.

Kind regards,
Polina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Chart (Obsolete)
Asked by
sharanya
Top achievements
Rank 1
Answers by
Missing User
sharanya
Top achievements
Rank 1
Share this question
or