Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > How do you place the series name at bottom of bar?

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

Feed from this thread
  • MARK avatar

    Posted on Jan 28, 2012 (permalink)

    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"

    Reply

  • MARK avatar

    Posted on Jan 30, 2012 (permalink)

    I solved the issue, I needed to put in a line in for PlotArea.XAxis.AddRange.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > How do you place the series name at bottom of bar?
Related resources for "How do you place the series name at bottom of bar?"

ASP.NET Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]