Rad Chart Bar graph not occupying full height

Thread is closed for posting
4 posts, 0 answers
  1. Sanchit
    Sanchit avatar
    2 posts
    Member since:
    May 2013

    Posted 28 Jun 2013 Link to this post

    I have a rad chart showing bar graph. If max values on the Y-axis are 1 or 2, the bar does not occupy full height as shown in attached image (img2.png). Otherwise the bar is seen correctly as shown in image (img1.png). Is there a solution related to this behavior of chart?
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 02 Jul 2013 Link to this post

    Hi Sanchit,

    Could you please try to upload the images again, because I am not sure what exactly is the problem you are experiencing? Additionally, it would be very helpful if you could provide a sample project or the code that generates the chart (.aspx and/or code-behind).
     
    Regards,
    Petar Kirov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sanchit
    Sanchit avatar
    2 posts
    Member since:
    May 2013

    Posted 10 Jul 2013 Link to this post

    Hi Petar,
                Thanks for your response. Sorry to delay mine. I got solution from one of your forums. I set the maximum and minimum vales, autoscale property and could resolve the point.
               However, the bar chart is occupying full height of the chart and I would like to leave some margin at top. Please check attached image.  Is it possible to do that by setting properties of graph? Please let me know.

    Regards.
  5. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 12 Jul 2013 Link to this post

    Hi Sanchit,

    If you are referring to the PlotArea ("s." in this help topic), you can set its top margin like this, after turning off the AutoLayout feature:
    radChart1.AutoLayout = false;
    radChart1.PlotArea.Appearance.Dimensions.Margins.Top = new Unit(100, UnitType.Pixel);

    I hope this helps.

    Regards,
    Petar Kirov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top