[]
        
(Showing Draft Content)

C1.WPF.C1Chart.ChartView

ChartView Class

Represents class view object that contains all visual plot elements: axes, visualized data.

Namespace: C1.WPF.C1Chart
Assembly: C1.WPF.C1Chart.4.6.2.dll
Syntax
public class ChartView : FrameworkContentElement, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
ChartView()

Initialize an instance of ChartView class.

Fields

Name Description
AttachedToCameraProperty

Identifies the AttachedToCamera attached dependency property.

AxisSizeProperty

Identifies the AxisSize dependency property.

AxisXProperty

Identifies the AxisX dependency property.

AxisYProperty

Identifies the AxisY dependency property.

AxisZProperty

Identifies the AxisZ dependency property.

BackgroundProperty

Identifies the Background dependency property.

ForegroundProperty

Identifies the Foreground dependency property.

InvertedProperty

Identifies the Inverted dependency property.

LightsProperty

Identifies the Lights dependency property.

MarginProperty

Identifies the Margin dependency property.

PerspectiveProperty

Identifies the Perspective dependency property.

PlotBackgroundProperty

Identifies the PlotBackground dependency property.

RatioProperty

Identifies the Ratio dependency property.

TransformProperty

Identifies the Transform dependency property.

Properties

Name Description
Axes

Gets the axis collection.

AxisSize

Gets or sets the relative size of axis area comparing with the whole plot cube.

AxisX

Gets or sets X axis.

AxisY

Gets or sets Y axis.

AxisZ

Gets or sets Z axis.

Background

Gets or sets the background brush for view.

CacheMode

Gets or sets the cache mode of chart view.

Camera

Gets or sets camera(3D only).

Foreground

Gets or sets the foreground brush for view.

Inverted

Gets or sets whether the direction of plotting is inverted.

Layers

Gets the collection of layers.

Lights

Gets or sets the collection of lights(3D only).

Margin

Gets or sets the margin of the plot area from the control edges.

Perspective

Gets or sets the value of perspective transformation(3D only).

PlotAreaColumnDefinitions

Gets the collection of plot area column definitions.

PlotAreaRowDefinitions

Gets the collection of plot area row definitions.

PlotAreas

Gets the plot area collection.

PlotBackground

Gets or sets the background brush for plot area.

PlotRect

Gets the plot rectangle (area inside axes).

PlotShape

Gets or sets the shape that should be rendered on the plot background.

Ratio

Gets or sets ratio of axes in plot cube(3D only).

Transform

Gets or sets 3D transformation of view(3D only).

Methods

Name Description
DataIndexFromPoint(Point, int, MeasureOption, out double)

Get the index of closest data point that corresponds to the specified point.

DataIndexToPoint(int, int)

Returns the point that corresponds to the specified data point. The data point is specified by its series and point indices.

GetAttachedToCamera(DependencyObject)

Sets the value of AttachedToCamera property for the element.

GetPosition(MouseEventArgs)

Returns coordinates of the mouse pointer in the ChartView space.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked when dependency property was changed.

PointFromData(Point)

Transforms the point from data coordinates to control coordinates.

PointToData(Point)

Transforms the point from control coordinates to data coordinates.

Reset()

Resets view to default settings.

SetAttachedToCamera(DependencyObject, bool)

Gets the value of AttachedToCamera property for the element.