patelajk Posted July 24, 2008 Report Share Posted July 24, 2008 Hi Does anyone know how to display text on each bar in a bar chart. So if I have a bar chart I want to display "xyz" on each bar Thanks Quote Link to comment Share on other sites More sharing options...
Frank Posted July 24, 2008 Report Share Posted July 24, 2008 chart.AllSeries.PointLabels.Format = "%L"; // Shows point text in point label instead of value. See docs. for more options. foreach point in the chart chart.Point[i,j].Text = "xyz"; Quote Link to comment Share on other sites More sharing options...
patelajk Posted July 24, 2008 Author Report Share Posted July 24, 2008 do i have to create a loop that goes through each point if so how would i do this Quote Link to comment Share on other sites More sharing options...
Frank Posted July 25, 2008 Report Share Posted July 25, 2008 If the text is different for each bar, then indeed you need to do a loop. If it is the same for every point: chart.AllSeries.PointLabels.Format = "xyz"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.