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

Thread is closed for posting
2 posts, 0 answers
  1. MARK
    MARK avatar
    7 posts
    Member since:
    Dec 2011

    Posted 28 Jan 2012 Link to this post

    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"

  2. MARK
    MARK avatar
    7 posts
    Member since:
    Dec 2011

    Posted 30 Jan 2012 Link to this post

    I solved the issue, I needed to put in a line in for PlotArea.XAxis.AddRange.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top