This is a migrated thread and some comments may be shown as answers.
Need to add only 12 labels to a graph
1 Answer 10 Views
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 08 Mar 2012, 08:05 PM
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

1 Answer, 1 is accepted

Sort by
0
Web Services
Top achievements
Rank 2
answered on 09 Mar 2012, 06:24 PM
I got this by checking when a month changed, and adding that label, then hiding the other labels until the next month.
Asked by
Web Services
Top achievements
Rank 2
Answers by
Web Services
Top achievements
Rank 2
Share this question
or