Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Chart > Rad Chart - bar width questions
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Answered Rad Chart - bar width questions

Feed from this thread
  • Lucian Duma avatar

    Posted on Jul 14, 2008 (permalink)

    Hello,

    RadChart is a great control, with many cool features.

    However, I have a couple of questions when using it with the Bar Type:

    1. Is there any possibility to remove the space that exists between the bars? (I would like to have the bars attached one to another).

    2. Can I affect the width of the bars, without using the Width property of the RadChart control? (now I'm adding the item bars programmatically and I'm re-dimensioning the entire chart by multiplying the no. of items by 10px (assuming I want that I want to give a bar the width of 10px)).

    Thanks.

  • Answer Ves Ves admin's avatar

    Posted on Jul 15, 2008 (permalink)

    Hi Lucian,

    Onto your questions:
    1. You can use series.Appearance.BarWidthPercent property to control this. Here is an example:
      <telerik:RadChart ID="RadChart1" runat='server'
          <Series> 
              <telerik:ChartSeries Name="Series 1"
                  <Appearance BarWidthPercent="100"></Appearance> 
                  <Items> 
      ................... 
       
    2. Unfortunately, there is no other way to fix the bar width. It is calculated according to the plot area width and the number of X axis items (this corresponds to the number of bars if zero values are considered an empty bar). You can use values in pixels for the plot area Margins, so adding 10 px to the chart width for each item will actually increase the PlotArea width with 10 px, and this will keep the bars with the same width.
    Hope this helps.

    Sincerely yours,
    Ves
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • vipin vishwakarma avatar

    Posted on Sep 8, 2010 (permalink)

    Hi Telerik Team,

    I have two problems,one is that the bars are getting overlapped on eachother and  second one is that the item label text is too getting overlapped on the bar.i am using asp.net chart control and report's oriantation is horizontle.
    please provide me the any possible solutions as soon as possible.i am also attaching the screen shot of problem.

    Regards
    vipin kumar

  • Ves Ves admin's avatar

    Posted on Sep 13, 2010 (permalink)

    Hi vipin vishwakarma,

    I am afraid the attachment did not make it for some reason. Can you please try to attach the screenshot again as well as any markup and/or code-behind used to configure the chart. Thank you.

    Regards,
    Ves
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • Code avatar

    Posted on Jun 2, 2011 (permalink)

    I have a similar problem with overlapping stacked columns.
    I tried settings values for mySeries.Appearance.BarWidthPercent  from 1 to 100.
    I causes no effect on the column widths.

    I would like to widths of the columns to reduce as the series data increases.

    Please help
    Thanks
    - Guru

     

    Attached files

  • Ves Ves admin's avatar

    Posted on Jun 8, 2011 (permalink)

    Hello,

    Please, set the RadChart.Appearance.BarWidthPercent property in this case.

    Best regards,
    Ves
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Chart > Rad Chart - bar width questions