SeriesMarks AutoPosition cuts off marks on top
Posted: Wed Jun 22, 2016 1:35 pm
Hi,
In our project, we are using SeriesMarks.AutoPosition, since this option makes sure series marks are put at an optimal position and we don't have to bother about putting marks at custom positions.
However, we bumped into the following situation, where the series mark is cut off at the top of the chart: (left: 2 values of 500, no cutoff - right: 1 value of 500, 1 value of 501, cutoff) The code to produce the right image:
It seems strange that in the right image, the 2nd series mark is placed above the 1st series mark, causing it to be cut off, while there is plenty of space below the 1st series mark, so it should not be cut off. (as is done in the left image)
Is it possible to make sure the series mark is not cutoff in the right image without using custom series marks positions?
Best Regards,
Steven
In our project, we are using SeriesMarks.AutoPosition, since this option makes sure series marks are put at an optimal position and we don't have to bother about putting marks at custom positions.
However, we bumped into the following situation, where the series mark is cut off at the top of the chart: (left: 2 values of 500, no cutoff - right: 1 value of 500, 1 value of 501, cutoff) The code to produce the right image:
Code: Select all
Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line.Add(0, 0);
line.Add(1, 0);
line.Add(2, 500);
line.Add(3, 501);
line.Add(4, 0);
line.Add(5, 0);
line.Add(6, 0);
line.Marks.Visible = true;
line.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelPercentTotal;
line.Marks.AutoPosition = true;
Is it possible to make sure the series mark is not cutoff in the right image without using custom series marks positions?
Best Regards,
Steven