Chart3D
public static class Chart3DFluent entry point for declarative 3D chart construction. Mirrors Apple's
Chart3D SwiftUI container.
Chart3D.Create()
.Add(new PointMark3D(180f, 3.2f, 42f)
.ForegroundStyle(Color.cyan)
.Symbol(Symbol3D.Sphere))
.Add(new SurfacePlotMark("X","Y","Z",
(x, z) => Mathf.Sin(x) * Mathf.Cos(z))
.ForegroundStyle(SurfaceStyle.HeightBased))
.ChartXAxis(a => a.Label("Flipper Length"))
.ChartYAxis(a => a.Label("Weight"))
.ChartZAxis(a => a.Label("Beak Length"))
.ChartXScaleDomain(-0.5f, 0.5f)
.Chart3DPose(global::ChartGuru.Chart3DPose.Default)
.Chart3DCameraProjection(global::ChartGuru.Chart3DCameraProjection.Perspective)
.Build();
Methods
Section titled “Methods”
Create()
Section titled “Create()”public static Chart3DBuilder Create()Start a new 3D chart builder.
Returns
ChartGuru.Chart3DBuilder
Create(IEnumerable, Func<T, IChartMark>)
Section titled “Create(IEnumerable, Func<T, IChartMark>)”public static Chart3DBuilder Create<T>(IEnumerable<T> data, Func<T, IChartMark> markFactory)Build a 3D chart from a data collection + mark factory, mirroring the
2D overload Chart.Create<T>(IEnumerable<T>, Func<T, IChartMark>).
Parameters
| Name | Type |
|---|---|
data | System.Collections.Generic.IEnumerable{{T}} |
markFactory | System.Func{{T},ChartGuru.IChartMark} |
Returns
ChartGuru.Chart3DBuilder