Hello, Michael,
If the maximum value of the axis overlaps with the value of one of the data points the point is clipped. By default, the axis is adjusted to include some bigger values in order to avoid such trimming. However, it seems that you limit the available maximum to the maximum value for the data points. The
LinearAxis offers the
ClipLabels property in order to avoid trimming. As to the data points, I can suggest you specify the maximum of the axis to a value slightly greater than the maximum data value. Here is a sample code snippet and a screenshot for better illustration:
public
RadForm1()
{
InitializeComponent();
ScatterSeries scatterSeries =
new
ScatterSeries();
scatterSeries.Name =
""
;
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(15, 19));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(18, 10));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(13, 15));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(10, 8));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(5, 12));
scatterSeries.PointSize =
new
SizeF(8, 8);
this
.radChartView1.Series.Add(scatterSeries);
ScatterSeries scatterSeries2 =
new
ScatterSeries();
scatterSeries2.Name =
""
;
scatterSeries2.DataPoints.Add(
new
ScatterDataPoint(20, 20));
scatterSeries2.DataPoints.Add(
new
ScatterDataPoint(15, 10));
scatterSeries2.DataPoints.Add(
new
ScatterDataPoint(7, 6));
scatterSeries2.DataPoints.Add(
new
ScatterDataPoint(18, 25));
scatterSeries2.DataPoints.Add(
new
ScatterDataPoint(10, 10));
scatterSeries2.PointSize =
new
SizeF(8, 8);
scatterSeries.Shape =
new
RoundRectShape(0);
this
.radChartView1.Series.Add(scatterSeries2);
LinearAxis verticalAxis = scatterSeries.VerticalAxis
as
LinearAxis;
if
(verticalAxis !=
null
)
{
verticalAxis.Maximum = 26;
verticalAxis.ClipLabels =
false
;
}
}
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Progress Telerik