This topic explains how to configure the axis label font settings in the XamScatterSurface3D™ control.
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
Use the SurfaceChartAxis LabelFontFamily, LabelFontSize and LabelFontWeight properties to set font family, size and weight to the axis label text.
The following table maps the desired configuration to the property settings that manage it.
The screenshot below demonstrates how the axis label looks as a result of the following settings:
Following is the code that implements this example.
In XAML:
<ig:XamScatterSurface3D Name="SurfaceChart"
ItemsSource="{Binding Path=DataCollection}">
<ig:XamScatterSurface3D.XAxis>
<ig:LinearAxis
LabelFontFamily="Calibri"
LabelFontSize="16"
LabelFontWeight="Bold" />
</ig:XamScatterSurface3D.XAxis>
</ig:XamScatterSurface3D>
In C#:
…
var linearAxis = new LinearAxis()
{
LabelFontFamily = new FontFamily("Calibri"),
LabelFontSize = 16,
LabelFontWeight = FontWeights.Bold
};
SurfaceChart.XAxis = linearAxis;
In Visual Basic:
…
Dim linearAxis = New LinearAxis()
linearAxis.LabelFontFamily = New FontFamily("Calibri")
linearAxis.LabelFontSize = 16
linearAxis.LabelFontWeight = FontWeights.Bold
SurfaceChart.XAxis = linearAxis
The following topics provide additional information related to this topic.