Surface Axis in WPF Surface Chart (SfSurfaceChart)
23 Oct 2019 / 1 minute to read
SurfaceAxis is used to locate a data point inside the surface area. In surface, you require three axis to locate data points, such as X-Axis, Y-Axis and Z-Axis. You can define axis in surface using the following code example. If you do not define the axis, then it automatically takes the default axis with default properties values.
XAML:
<chart:SfSurfaceChart>
<chart:SfSurfaceChart.XAxis>
<chart:SurfaceAxis />
</chart:SfSurfaceChart.XAxis>
<chart:SfSurfaceChart.YAxis>
<chart:SurfaceAxis />
</chart:SfSurfaceChart.YAxis>
<chart:SfSurfaceChart.ZAxis>
<chart:SurfaceAxis />
</chart:SfSurfaceChart.ZAxis>
<chart:SfSurfaceChart />
SfSurfaceChart surface = new SfSurfaceChart();
surface.XAxis = new SurfaceAxis();
surface.YAxis = new SurfaceAxis();
surface.ZAxis = new SurfaceAxis();
The following APIs are used to customize the surface axis.
Properties
Name | Definition |
---|---|
Header |
Gets or sets the object that represents the content of a surface axis header. This property is used to specify any object as Header for surface axis. |
HeaderTemplate |
Gets or sets template for surface axis header. |
LabelTemplate |
Gets or sets template for surface axis label. |
LabelFormat |
Gets or sets format for surface axis label. |
Minimum |
Gets or sets the double that represents the minimum value for the axis. |
Maximum |
Gets or sets the double that represents the maximum value for the axis. |
RangePadding |
Gets or sets NumericalPadding that specifies how to render the surface in surface area. |
EdgeLabelsDrawingMode |
Gets or sets EdgeLabelsDrawingMode that specifies how to place edge axis label. |
Interval |
Gets or sets the double that represents the interval between labels. |
SmallTicksPerInterval |
Gets or sets the double that represents the small ticks per interval. |
TickLineSize |
Gets or sets the double that represents the axis tick line size. |
ShowGridLines |
Gets or sets bool that represent whether displaying the axis grid lines. |
GridLineStroke |
Gets or sets the brush for grid line stroke. |
GridLineThickness |
Gets or sets the double for grid line thickness. |
AxisLineStyle |
Gets or sets the style for axis line. |
MajorTickLineStyle |
Gets or sets the style for axis major tick lines. |
MinorTickLineStyle |
Gets or sets the style for axis minor tick lines. |
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page