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?