Need to add only 12 labels to a graph

Thread is closed for posting
2 posts, 0 answers
  1. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 08 Mar 2012 Link to this post

    I have a graph that I'm dynamically creating. You can see it here http://www.cnppid.com/Assets/McConaughy_One-Year.jpg . How I'm building it is each day has a point. So this graph has an x range from 0 to 365. The problem is, I don't know how to add the labels so it only shows the month. Right now I have a data table with the y value, the x value, and what month it falls under. How do I make it so it shows the month label, but only once per month? Here's how I'm adding points to my graph.

    For Each i As DataRow In rangeTable.Rows
                myPoint.XValue = i("Count")
                myPoint.YValue = i("Value")
                myPoint.Label.Visible = False
                mySeries.AddItem(myPoint)
    Next

  2. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 09 Mar 2012 Link to this post

    I got this by checking when a month changed, and adding that label, then hiding the other labels until the next month.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top