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

Removing extra whitespace under x-axis of reporting graph

2 Answers 287 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 22 Apr 2020, 04:02 PM

Using the Telerik.Reporting.Graph, how can I remove extra whitespace under the x-axis?

I am trying to make the x-axis not have any space underneath it, in the attached screenshot I have the border on the Graph set to green. I have turned off as many labels that I could find, and all the Padding I could find is set to 0. Any idea what would be causing the extra space between the x-axis and the green border?

 

Thank you,

 

 

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 24 Apr 2020, 01:28 PM

I can find examples of what I want using the older "Chart" control, but not the new "Graph". 

Looks like the old way was changing the "Chart.PlotArea.Appearance.Dimensions.Margins" property. But I do not see anything similar for the newer Graph control.

https://www.telerik.com/forums/how-to-set-y-axis-label-width

https://www.telerik.com/forums/decrease-margin-padding-in-between-chart-border-and-plot-area

 

0
Accepted
Todor
Telerik team
answered on 27 Apr 2020, 09:34 AM

Hi David,

It seems that when the LabelPlacement of the Axis is NonŠµ, there is still a place left for the Labels. We consider this as a bug and I have logged it in our feedback portal on your behalf - Graph Axes preserve space for labels even though LabelPlacement is set to None. We have updated your Telerik points as a token of gratitude.

As a workaround, if you use Category X-axis, you may set LabelPlacement to AtMaximum and the empty space will shrink.

As another alternative. The default Graph padding is '10px'. You may set it to a negative value, for example '-10px', to reduce the empty space below the axis.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Todor
Telerik team
Share this question
or