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

Point Shapes in Line Chart

7 Answers 331 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 07 May 2008, 10:13 AM
Hi, is it possible to change the shape of the points in a line chart, so that for example we could have a star instead of a circle, if so how is this achieved ?

Thanks a lot,

Pete.

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 May 2008, 12:22 PM
Hi Pete,

Go through the following forum links.

Styling Chart Elements
Custom Appearance Properties

Shinu.
0
Pete
Top achievements
Rank 1
answered on 13 May 2008, 01:15 PM
Hi, these forums don't show me how to change an individual point depending on a value, is this possible

ie ,

if (double.Parse(results.Rows[i]["ObservationValue"].ToString()) > 2)

{

RRChartSeries1.Items[i].ActiveRegion.Tooltip =

"Too HIGH";
RRChartSeries1.Items[i].Appearance.FillStyle.MainColor = System.Drawing.
Color.Red;

}

and I want to set a different point shape depending on this value being true ?

0
Giuseppe
Telerik team
answered on 14 May 2008, 07:28 AM
Hello Pete,

Unfortunately you cannot set different point marks for the line series items depending on their value -- you can choose a point mark figure for the whole series from the predefined values (Cross, Diamond, Circle, Rectangle, Star3, Star4, Star5, Star6) and set it like this:

<rad:RadChart ID="RadChart1" runat="server"
    <Series> 
        <rad:ChartSeries DataYColumn="Value" Type="Line"
            <Appearance> 
                <PointMark Figure="Cross" Visible="True"
                    <FillStyle FillType="Solid" MainColor="Yellow"
                    </FillStyle> 
                </PointMark> 
            </Appearance> 
        </rad:ChartSeries> 
    </Series> 
    <PlotArea> 
        <YAxis AxisMode="extended"
        </YAxis> 
    </PlotArea> 
</rad:RadChart> 



Regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Pete
Top achievements
Rank 1
answered on 14 May 2008, 02:42 PM
Thanks for the fast reply. I will find another way of doing this.
0
Chris
Top achievements
Rank 1
answered on 08 Mar 2009, 10:09 AM
How i can activate the predefined point shapes using vb.net code? In the manual i cannot find any informations ...

thanks chris
0
Chris
Top achievements
Rank 1
answered on 08 Mar 2009, 10:11 AM

0
Giuseppe
Telerik team
answered on 10 Mar 2009, 11:06 AM
Hello Chris,

Here is a sample VB.NET code snippet to get you started:

    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load 
 
        Dim series As New ChartSeries() 
 
        series.Type = ChartSeriesType.Line 
 
        series.AddItem(5) 
        series.AddItem(11) 
        series.AddItem(15) 
        series.AddItem(11) 
 
        series.Appearance.PointMark.Figure = Telerik.Charting.Styles.DefaultFigures.Diamond 
        series.Appearance.PointMark.Visible = True 
        series.Appearance.PointMark.FillStyle.MainColor = Drawing.Color.Red 
        series.Appearance.PointMark.FillStyle.FillType = Styles.FillType.Solid 
 
        RadChart1.Series.Add(series) 
    End Sub 


Hope this helps.


Sincerely yours,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
Pete
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Pete
Top achievements
Rank 1
Giuseppe
Telerik team
Chris
Top achievements
Rank 1
Share this question
or