Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Chart > Can't figure out a couple BarChart issues (?)
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.

Not answered Can't figure out a couple BarChart issues (?)

Feed from this thread
  • Rich avatar

    Posted on Jun 14, 2011 (permalink)

    I have made good progress on finishing off implementation of a bar chart, but cannot seem to figure out a couple of the last issues. Any help on this is greatly appreciated!

    Chart Description
    A BarChart with 1..10 series + 1 datapoint per series. Legend to the right, binding list of custom objects. See attached for example.

    Issue #1
    Since I only have 1 data point, I want to use as much of the plot area as possible. The attached example has a wide gap to the right and left of the bars. How do I reduce/eliminate that gap?

    FYI: I have already tried setting ItemWidthPercent (as mentioned in this forum), with no success.

    Issue #2
    After 6 bars the series color repeats. How do I make sure that each series uses a unique color?

    FYI: I have already tried  the approach described in this article. No success.
    Attached files

  • Evgenia Evgenia admin's avatar

    Posted on Jun 17, 2011 (permalink)

    Hello Rich,

    Before answering your questions there is something I need to know - why are you using different bar series each containing a single bar? Why don't you just use single Series with many bars?
     
    Issue #1: You can try changing the Margins and Paddings of the PlotArea. This can be done from the Properties Window as shown in the picture attached.

    Issue#2:  Your bars will have as many colors as you have set in the Palette of colors so you should extend the Palette colors so that each Bar has different color.

    Kind regards,
    Evgenia
    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.

    Attached files

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Chart > Can't figure out a couple BarChart issues (?)