No effect with Axes.Bottom.Labels.Separation = 0;
Posted: Thu Aug 29, 2013 6:29 am
Dear all,
Version: TeeChartNET2013_4.1.2013.07300
Visual Studio 2012
Windows 7 32 bit
We have a chart with bottom axis as follows:
tChart1.Aspect.ClipPoints = true; //Cut values that are outside ChartRect
tChart1.Aspect.View3D = false;
tChart1.AutoRepaint = false;
tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Labels.DateTimeFormat = "HH:mm:ss";
tChart1.Axes.Bottom.Labels.Font.Name = "Arial";
tChart1.Axes.Bottom.Labels.Font.Size = 10;
tChart1.Axes.Bottom.Labels.RoundFirstLabel = false;
tChart1.Axes.Bottom.Labels.Separation = 0; //Disable automatic control of the increment factor
tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.Value; //Labels display axis scales
tChart1.Axes.Bottom.Title.Font.Name = "Arial";
tChart1.Axes.Bottom.Title.Font.Size = 12;
tChart1.Axes.Depth.Visible = false;
tChart1.Axes.DepthTop.Visible = false;
tChart1.Axes.Left.Visible = false;
tChart1.Axes.Right.Visible = false;
tChart1.Axes.Top.Visible = false;
Even though tChart1.Axes.Bottom.Labels.Separation = 0 the labels with grid lines are changed automatically
as seen on the enclosed screen dumps.
The increment of the bottom axis of the chart shown on the screen dumps is set like this:
tChart1.Axes.Bottom.Increment = Utils.DateTimeStep[(int)DateTimeSteps.OneHour];
The difference between the two screen dumps is that another Y-axis was added,
and thereby the width of the chart was reduced a litte (on purpose).
In this case the labels should simply overlap, as I then intend to hide every other label in the "tChart1_GetAxisLabel" event.
How can it be that the labels and grid lines are still automatically adjusted, and how can this mechanism be turned off,
if not by setting tChart1.Axes.Bottom.Labels.Separation to 0?
Thanks in advance!
Version: TeeChartNET2013_4.1.2013.07300
Visual Studio 2012
Windows 7 32 bit
We have a chart with bottom axis as follows:
tChart1.Aspect.ClipPoints = true; //Cut values that are outside ChartRect
tChart1.Aspect.View3D = false;
tChart1.AutoRepaint = false;
tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Labels.DateTimeFormat = "HH:mm:ss";
tChart1.Axes.Bottom.Labels.Font.Name = "Arial";
tChart1.Axes.Bottom.Labels.Font.Size = 10;
tChart1.Axes.Bottom.Labels.RoundFirstLabel = false;
tChart1.Axes.Bottom.Labels.Separation = 0; //Disable automatic control of the increment factor
tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.Value; //Labels display axis scales
tChart1.Axes.Bottom.Title.Font.Name = "Arial";
tChart1.Axes.Bottom.Title.Font.Size = 12;
tChart1.Axes.Depth.Visible = false;
tChart1.Axes.DepthTop.Visible = false;
tChart1.Axes.Left.Visible = false;
tChart1.Axes.Right.Visible = false;
tChart1.Axes.Top.Visible = false;
Even though tChart1.Axes.Bottom.Labels.Separation = 0 the labels with grid lines are changed automatically
as seen on the enclosed screen dumps.
The increment of the bottom axis of the chart shown on the screen dumps is set like this:
tChart1.Axes.Bottom.Increment = Utils.DateTimeStep[(int)DateTimeSteps.OneHour];
The difference between the two screen dumps is that another Y-axis was added,
and thereby the width of the chart was reduced a litte (on purpose).
In this case the labels should simply overlap, as I then intend to hide every other label in the "tChart1_GetAxisLabel" event.
How can it be that the labels and grid lines are still automatically adjusted, and how can this mechanism be turned off,
if not by setting tChart1.Axes.Bottom.Labels.Separation to 0?
Thanks in advance!