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
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.
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.