Page 1 of 1

AutoAdjustMargins ignores some texts

Posted: Mon Sep 19, 2016 8:30 am
by matus
Hello,
when ViewXY.AxisLayout.AutoAdjustMargins = true, some labels are cut off.

Namely axis title, some vertical axis labels and x-axis maximum label.
cut off left axis title and last x-axis label
cut off left axis title and last x-axis label
title and x-label.PNG (46.77 KiB) Viewed 16668 times
cut off y-axis labels
cut off y-axis labels
y-axis labels.PNG (5.98 KiB) Viewed 16668 times
for the right axis, this is the setting:

Code: Select all

            rightAxis.LabelTicksGap = 0;
            rightAxis.MajorDivTickStyle.Alignment = Alignment.Far;
if I set the Alignment to Near, the labels are cut off completely, so that does not help
increasing the gap has the same effect, setting it to negative number is ignored

Is it possible to have automatic margins respect all chart elements?

Re: AutoAdjustMargins ignores some texts

Posted: Wed Sep 21, 2016 9:07 am
by ArctionPasi
Hi Matus,

please ensure you are running with 7.1.3.6 assemblies. In some older versions LabelsTicksGap didn't apply correctly.

I made tests with 7.1.3.6 and I wasn't able to reporoduce the problems your are encountering. The axis titles are not cut, nor axis numeric labels.

Automatic margins are best used with ViewXY.AxisLayout.YAxisAutoplacement enabled, and ViewXY.AxisLayout.YAxisTitleAutoPlacement enabled.