rao.sripathi Posted June 26, 2008 Report Share Posted June 26, 2008 Hi, I am using Bar Chart of ChartFX with VS.Net 2005. I am not able to display the X-Axis labels on top of each bar. The snapshot is attached for your reference. In that I want the labels to be shown on top as marked with Oval Marker. Any help will be highly appreciated. Thanks, Sripathi WindowsApplication1.zip Quote Link to comment Share on other sites More sharing options...
Frank Posted June 26, 2008 Report Share Posted June 26, 2008 We call those "Point Labels". To make them show: chart.AllSeries.PointLabels.Visible = true; To customize what's display in them (by thefault the point value is displayed buy you can display any information for that point): chart.AllSeries.PointLabels.Format = "%l"; Also, if you want to hide the X-Axis (at the bottom of your chart) you can do it: chart.AxisX.Visible = false; Quote Link to comment Share on other sites More sharing options...
rao.sripathi Posted June 26, 2008 Author Report Share Posted June 26, 2008 Thanks Frank, It is displaying now, but it is displaying at the end of the bar, but not above the bar. I want to display exactly above the bar as shown in my last mail. Can you please let me know how to proceed on that. Thanks, Sripathi Quote Link to comment Share on other sites More sharing options...
Frank Posted June 26, 2008 Report Share Posted June 26, 2008 You may want to have a look at the API. In the PointLabelAttributes class you have several properties includding: chart.AllSeries.PointLabels.LineAlingment = StringAlignment.Far; 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.