This is a migrated thread and some comments may be shown as answers.

Rad Chart Bar graph not occupying full height

3 Answers 34 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sanchit
Top achievements
Rank 1
Sanchit asked on 28 Jun 2013, 08:28 AM
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?

3 Answers, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 02 Jul 2013, 01:08 PM
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.
0
Sanchit
Top achievements
Rank 1
answered on 10 Jul 2013, 09:23 AM
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.
0
Petar Kirov
Telerik team
answered on 12 Jul 2013, 09:26 PM
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.
Tags
Chart (Obsolete)
Asked by
Sanchit
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Sanchit
Top achievements
Rank 1
Share this question
or