How to get PointMarks to show on a line graph

Thread is closed for posting
4 posts, 0 answers
  1. Mark
    Mark avatar
    2 posts
    Member since:
    Sep 2010

    Posted 30 Sep 2010 Link to this post

    When the complaint came in that my line graph didn't have visible points at the values, I thought it would be an easy fix.

    Somehow, I can't seem to make it happen.

    The meat of the code is here:

    'Create a series
    Dim oSeries As Telerik.Charting.ChartSeries = New Telerik.Charting.ChartSeries()
    radChart.Series.Add(oSeries)
     
    'make it a line
    oSeries.Type = ChartSeriesType.Line
    radChart.Series(0).Appearance.FillStyle.MainColor = Color.Red

    'add some data
    radChart.Series(0).AddItem(3.5)
    radChart.Series(0).AddItem(4.5)
    radChart.Series(0).AddItem(6.5)
    radChart.Series(0).AddItem(8.5)

    ' try everything and anything to get the points to show up
    radChart.Series(0).Appearance.PointMark.Visible = True
    radChart.Series(0).Appearance.PointMark.Dimensions.AutoSize = False
    radChart.Series(0).Appearance.PointMark.Dimensions.Width.Value = 20
    radChart.Series(0).Appearance.PointMark.Dimensions.Height.Value = 20
    radChart.Series(0).Appearance.PointMark.FillStyle.FillType = Styles.FillType.Solid
    radChart.Series(0).Appearance.PointMark.Figure = Styles.DefaultFigures.Diamond


    I'm using the 4.1.6 version of the dll date 3/10/09

    I've been searching the Forum for a mention of a similar problem - how bad is your problem when nobody on the internet has ever had it before?

    I've attached a jpg of the output.

    Please let me know what add't information would be helpful.

    Thank you in advance for the help. 

    Mark

     

     

  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 01 Oct 2010 Link to this post

    Hello Mark,

    As I inspected your code snippet I saw that you are doing everything right to show the PointMark. There is one thing that you need to know - PointMarks of Lines are unvisible and transparent by default. What you need to add is some Color for your PointMarks:

    RadChart1.Series[0].Appearance.PointMark.FillStyle.MainColor = Color.Red;

    Hope this helps.

    Best wishes,
    Evgenia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark
    Mark avatar
    2 posts
    Member since:
    Sep 2010

    Posted 01 Oct 2010 Link to this post

    Well done.

    Thank you.
  5. Rebecca
    Rebecca avatar
    2 posts
    Member since:
    Sep 2011

    Posted 30 Dec 2011 Link to this post

    The documentation mentions that visible = false by default, but says NOTHING about transparency or color required. Would have been nice to know this before I wasted an hour trying every property before finding this post.
    I guess I should consider myself lucky I only lost an hour this time. Wish you guys would improve your documentation.
Back to Top