set bar width for rad chart

Thread is closed for posting
9 posts, 0 answers
  1. Yosief
    Yosief avatar
    26 posts
    Member since:
    Mar 2008

    Posted 25 Jul 2008 Link to this post


    Hi All

    I want to set the width of bars in a rad chart in run time.

    I need help as soon as possible please.

    Yosief Kesete

  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 25 Jul 2008 Link to this post

    Hi Yosief,

    We would suggest you to review this help article here that describes how to use the relevant BarOverLapPercent and BarWidthPercent properties of RadChart.


    Greetings,
    Manuel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yosief
    Yosief avatar
    26 posts
    Member since:
    Mar 2008

    Posted 25 Jul 2008 Link to this post

    Hi Manuel

    The info in the link does not help. Let me give you some more info.

    My X-Column is a string data type and my Y-column is integer.

    Yosief
  5. Yosief
    Yosief avatar
    26 posts
    Member since:
    Mar 2008

    Posted 25 Jul 2008 Link to this post

    Hi Manuel

    The info in the link does not help. Let me give you some more info.

    My X-Column is a string data type and my Y-column is integer. And I have only one series.

    Yosief
  6. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 28 Jul 2008 Link to this post

    Hi Yosief,

    We are unsure why your specific project cannot take benefit from the BarWidthPercent property -- please review the attached sample application and let us know how it goes.


    Kind regards,
    Manuel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Yosief
    Yosief avatar
    26 posts
    Member since:
    Mar 2008

    Posted 28 Jul 2008 Link to this post


    Hi Manuel

    Thanks. It worked great once I did the following

        .DataGroupColumn = ""
        .PlotArea.XAxis.Appearance.Visible = Auto

    Yosief
  8. Mohammed
    Mohammed avatar
    9 posts
    Member since:
    Jun 2009

    Posted 02 Feb 2011 Link to this post

    Dear Telerik Team,

    I think you should work more on the RadChart control, I do not care about how much beautiful it is, what am care about it is to deal with this control as it is in excel. I spend more than 10 hours trying to change the colomn width into fixed, but I could not do so, could you please help.

    Regards,

  9. Mohammed
    Mohammed avatar
    9 posts
    Member since:
    Jun 2009

    Posted 02 Feb 2011 Link to this post

    What I have done:
    Set Xaxis.autoscale=False
    Set the Xaxis Minvalue=1   ---Through Propertires window
    Set the Xaxis Maxvalue=3   ---Through Propertires window

    set the Xaxis items(2).visible=false ---Through Propertires window
    set the Xaxis items(3).visible=false ---Through Propertires window


    Regards

  10. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 07 Feb 2011 Link to this post

    Hello Yosief,

    Unfortunately it is not possible to set explicit static pixel width for the Bar series type -- you can achieve similar effect by setting manually static range for the XAxis like this (you can combine it with BarWidthPercent if appropriate):

    RadChart1.PlotArea.XAxis.AutoScale = false;
    RadChart1.PlotArea.XAxis.MinValue = 1;
    RadChart1.PlotArea.XAxis.MaxValue = 10;
    RadChart1.PlotArea.XAxis.Step = 1;
     
    RadChart1.DataSource = new int[] { 1, 10, 5, 2, 11 };
    RadChart1.DataBind();



    All the best,
    Giuseppe
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017