How do i keep width independent of no. of items

Thread is closed for posting
2 posts, 0 answers
  1. Amol
    Amol avatar
    57 posts
    Member since:
    Apr 2008

    Posted 06 Mar 2009 Link to this post

    Hi All,

    how do i keep width of the bar same independent of no. of items in the series of the chart.

    So width will remain same for any no. of items.
    because i think width of chart varies depending upon no. of items.


    Thanks,
    Amol

  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 09 Mar 2009 Link to this post

    Hello Amol,

    The RadChart control utilizes the whole available space, thus creating bars with different with, depending on the range of the X-axis. By default the X-axis is in auto-scale mode, but you can switch it off and set your own range, which will fix the size of the bars:
    this.radChart1.PlotArea.XAxis.AutoScale = false
    this.radChart1.PlotArea.XAxis.IsZeroBased = false
    this.radChart1.PlotArea.XAxis.AddRange(5, 25, 1); 

    Regards,
    Evtim
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top