This is a migrated thread and some comments may be shown as answers.

How do you place the series name at bottom of bar?

1 Answer 37 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
MARK
Top achievements
Rank 1
MARK asked on 28 Jan 2012, 03:42 PM
I have a simple bar chart that I created programmatically that is not data bound.  The label on each series bar item is showing the Y-value and I want to keep that label as-is.  I do not want to show the legend for space reasons and have turned its visibility off.  Instead of a legend I would like to have the series name to appear at the bottom of the series bar where the x-axis is.  I have tried the code below on the first series and get an "index out of range" error and actually don't know if this is the way to accomplish what I want. How do I accomplish what I want programmatically?

       Dim chartSeries1 As ChartSeries = Radchart1.CreateSeries("Identified", System.Drawing.Color.Blue, System.Drawing.Color.Blue, ChartSeriesType.Bar)
       chartSeries1.AddItem(45)
       chartSeries1.PlotArea.XAxis.AutoScale = False
       chartSeries1.PlotArea.XAxis.Items(0).TextBlock.Text = "Identified"

1 Answer, 1 is accepted

Sort by
0
MARK
Top achievements
Rank 1
answered on 30 Jan 2012, 02:41 PM
I solved the issue, I needed to put in a line in for PlotArea.XAxis.AddRange.
Tags
Chart (Obsolete)
Asked by
MARK
Top achievements
Rank 1
Answers by
MARK
Top achievements
Rank 1
Share this question
or