Table of Contents

Class Axis3DBase

Namespace
LightningChartLib.WinForms.Charting.Axes
Assembly
LightningChart.WinForms.Charting.NET4.dll

3D axis base class.

[TypeConverter(typeof(ExpandableObjectConverter))]
public class Axis3DBase : AxisBase, IChartNode, IDisposable, IHighlightingItem
Inheritance
Axis3DBase
Implements
Derived
Inherited Members

Constructors

Axis3DBase()

LightningChartLib.WinForms.Charting.Axes.Axis3DBase
public Axis3DBase()

Properties

AllowScaling

Axis min and max values adjust by user. Draws scale nibs in the ends of the axis.

public bool AllowScaling { get; set; }

Property Value

bool

AllowScrolling

Axis scrolling by user. Drag from axis line.

public bool AllowScrolling { get; set; }

Property Value

bool

CornerAlignment

Alignment in the corner of 3D chart space.

public AxisAlignment3D CornerAlignment { get; set; }

Property Value

AxisAlignment3D

DragSnapToDiv

Axis scrolling or scaling snaps to divisions.

public bool DragSnapToDiv { get; set; }

Property Value

bool

LabelTicksGap

Gap between labels and ticks. Value is in pixels.

public double LabelTicksGap { get; set; }

Property Value

double

Material

Axis material.

public Material3D Material { get; set; }

Property Value

Material3D

OwnerView

Owner view.

[Browsable(false)]
public View3DBase OwnerView { get; }

Property Value

View3DBase

Reversed

Set true if you want to have low values higher and the high values lower on the graph.

public bool Reversed { get; set; }

Property Value

bool

ScaleNibs

Scale nib appearance.

public AxisDragNib3D ScaleNibs { get; set; }

Property Value

AxisDragNib3D

Title

Axis title.

public AxisTitle3D Title { get; set; }

Property Value

AxisTitle3D

Units

Axis units.

public AxisTitle3D Units { get; set; }

Property Value

AxisTitle3D

Methods

Construct()

Initialize members.

protected override void Construct()

CreateDragNib()

Create drag nib.

protected void CreateDragNib()

CreateMajorGrid()

Create major grid.

protected override void CreateMajorGrid()

CreateMajorTickStyle()

Create major grid style.

protected override void CreateMajorTickStyle()

CreateMinorGrid()

Create minor grid.

protected override void CreateMinorGrid()

CreateMinorTickStyle()

Create minor tick style.

protected override void CreateMinorTickStyle()

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed, otherwise false.

GetGridWalls()

Get list of walls where grid is drawn using this axis.

public List<WallBase> GetGridWalls()

Returns

List<WallBase>

List of walls.

GetMajorTicks()

Get major tick values.

public double[] GetMajorTicks()

Returns

double[]

Array of major tick values.

IsPositionOver(int, int, bool)

Is mouse over a series.

public override bool IsPositionOver(int x, int y, bool useDIP = false)

Parameters

x int

Mouse X-coordinate.

y int

Mouse Y-coordinate.

useDIP bool

Use DIP instead of pixels as parameters.

Returns

bool

True if mouse is over a series. Otherwise false.

OnDeserialized(StreamingContext)

OnDeserialized is called just after the object has been deserialized.

[OnDeserialized]
protected void OnDeserialized(StreamingContext context)

Parameters

context StreamingContext

Context.

SetProperCursor()

Set proper drag cursor. Default is hand.

public override void SetProperCursor()

ValueTo3DWorldCoord(double)

Convert axis value into respective coordinate in 3D world space. Takes View.Dimensions into account.

public float ValueTo3DWorldCoord(double value)

Parameters

value double

Value to convert.

Returns

float

3D world coordinate. If view or dimensions can't be solved, returns NaN.

World3DCoordToValue(float)

Convert 3D world coordinate into respective axis value. Takes View.Dimensions into account.

public double World3DCoordToValue(float coord)

Parameters

coord float

3D world coordinate.

Returns

double

Axis values. If view or dimensions can't be solved, returns NaN.