Class
ChartView

Represents the core chart view element that manages chart areas, series, data binding, and visualization rendering within a chart control.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

cs-api-definition
public class ChartView : UIChartElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IChartView, IChartElementPresenter

Inheritance: objectDisposableObjectRadObjectUIChartElementChartView

Implements: IBorderElementIBoxElementIBoxStyleIChartElementPresenterIChartViewICustomTypeDescriptorIDisposableIFillElementINotifyPropertyChangedIShapedElementIStylableElementIStylableNode

Inherited Members UIChartElement.IsVisiblePropertyUIChartElement.ClassPropertyUIChartElement.VisualStatePropertyUIChartElement.IsMouseDownPropertyUIChartElement.IsMouseOverPropertyUIChartElement.FontPropertyUIChartElement.CustomFontPropertyUIChartElement.CustomFontSizePropertyUIChartElement.CustomFontStylePropertyUIChartElement.ForeColorPropertyUIChartElement.BackColorPropertyUIChartElement.BackColor2PropertyUIChartElement.BackColor3PropertyUIChartElement.BackColor4PropertyUIChartElement.NumberOfColorsPropertyUIChartElement.GradientStylePropertyUIChartElement.GradientAnglePropertyUIChartElement.GradientPercentagePropertyUIChartElement.GradientPercentage2PropertyUIChartElement.BorderBoxStylePropertyUIChartElement.BorderDrawModePropertyUIChartElement.BorderWidthPropertyUIChartElement.BorderLeftWidthPropertyUIChartElement.BorderRightWidthPropertyUIChartElement.BorderTopWidthPropertyUIChartElement.BorderBottomWidthPropertyUIChartElement.BorderGradientAnglePropertyUIChartElement.BorderGradientStylePropertyUIChartElement.BorderColorPropertyUIChartElement.BorderColor2PropertyUIChartElement.BorderColor3PropertyUIChartElement.BorderColor4PropertyUIChartElement.BorderInnerColorPropertyUIChartElement.BorderInnerColor2PropertyUIChartElement.BorderInnerColor3PropertyUIChartElement.BorderInnerColor4PropertyUIChartElement.BorderLeftColorPropertyUIChartElement.BorderTopColorPropertyUIChartElement.BorderRightColorPropertyUIChartElement.BorderBottomColorPropertyUIChartElement.BorderLeftShadowColorPropertyUIChartElement.BorderTopShadowColorPropertyUIChartElement.BorderRightShadowColorPropertyUIChartElement.BorderBottomShadowColorPropertyUIChartElement.BackgroundShapePropertyUIChartElement.BorderDashStylePropertyUIChartElement.BorderDashPatternPropertyUIChartElement.BorderCornerRadiusPropertyUIChartElement.ShapePropertyUIChartElement.PaddingPropertyUIChartElement.SmoothingModePropertyUIChartElement.GetValue(RadProperty)UIChartElement.Attach(UIChartElement)UIChartElement.Dettach()UIChartElement.OnDettached()UIChartElement.Refresh()UIChartElement.Invalidate()UIChartElement.MeasureContentOverride(ChartNode, object)UIChartElement.DpiScaleChanged(SizeF)UIChartElement.GetScaledFont(float)UIChartElement.GetCurrentShape()UIChartElement.GetThemeEffectiveType()UIChartElement.ApplyStyleSettingsCore(PropertySettingGroup)UIChartElement.ApplyStyle()UIChartElement.BuildVisualState()UIChartElement.AddStylePropertySetting(IPropertySetting)UIChartElement.ApplyStyleByIndex(PropertySettingGroup, int)UIChartElement.ParentUIChartElement.LevelUIChartElement.ChildrenUIChartElement.IsMouseDownUIChartElement.IsMouseOverUIChartElement.ViewUIChartElement.IsVisibleUIChartElement.ForeColorUIChartElement.FontUIChartElement.BackColorUIChartElement.BackColor2UIChartElement.BackColor3UIChartElement.BackColor4UIChartElement.GradientStyleUIChartElement.GradientAngleUIChartElement.GradientPercentageUIChartElement.GradientPercentage2UIChartElement.NumberOfColorsUIChartElement.BorderLeftColorUIChartElement.BorderTopColorUIChartElement.BorderRightColorUIChartElement.BorderBottomColorUIChartElement.BorderLeftShadowColorUIChartElement.BorderTopShadowColorUIChartElement.BorderRightShadowColorUIChartElement.BorderBottomShadowColorUIChartElement.BorderBoxStyleUIChartElement.BorderDrawModeUIChartElement.BorderWidthUIChartElement.BorderLeftWidthUIChartElement.BorderTopWidthUIChartElement.BorderRightWidthUIChartElement.BorderBottomWidthUIChartElement.BorderGradientAngleUIChartElement.BorderGradientStyleUIChartElement.BorderColorUIChartElement.BorderColor2UIChartElement.BorderColor3UIChartElement.BorderColor4UIChartElement.BorderInnerColorUIChartElement.BorderInnerColor2UIChartElement.BorderInnerColor3UIChartElement.BorderInnerColor4UIChartElement.BorderDashStyleUIChartElement.BorderDashPatternUIChartElement.BorderCornerRadiusUIChartElement.SizeUIChartElement.ShapeUIChartElement.BackgroundShapeUIChartElement.PaddingUIChartElement.SmoothingModeUIChartElement.IsAttachedUIChartElement.DpiScaleFactorUIChartElement.ClassUIChartElement.VisualStateUIChartElement.ThemeRoleUIChartElement.ChildrenHierarchyUIChartElement.StyleUIChartElement.StateManagerUIChartElement.FallbackToDefaultThemeRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

ChartView(IChartViewHost)

Initializes a new instance of the ChartView class with the specified chart view host and creates a default Cartesian area.

Declaration

cs-api-definition
public ChartView(IChartViewHost owner)

Parameters

owner

IChartViewHost

The IChartViewHost that will host this chart view.

ChartView(RadChartElement)

Initializes a new instance of the ChartView class using the wrapper from the specified RadChartElement.

Declaration

cs-api-definition
public ChartView(RadChartElement owner)

Parameters

owner

RadChartElement

The RadChartElement that will own this chart view.

ChartView(RadChartView)

Initializes a new instance of the ChartView class using the chart element wrapper from the specified RadChartView control.

Declaration

cs-api-definition
public ChartView(RadChartView owner)

Parameters

owner

RadChartView

The RadChartView control that will own this chart view.

Fields

MarginProperty

Identifies the Margin dependency property that defines the spacing between the chart view and its container.

Declaration

cs-api-definition
public static RadProperty MarginProperty

Field Value

RadProperty

MinSizeProperty

Identifies the MinSize dependency property that defines the minimum size constraints for the chart view.

Declaration

cs-api-definition
public static RadProperty MinSizeProperty

Field Value

RadProperty

Properties

Annotations

Gets the collection of chart annotations that provide additional visual elements overlaid on the chart.

Declaration

cs-api-definition
public ChartAnnotationCollection Annotations { get; }

Property Value

ChartAnnotationCollection

Area

Gets the current ChartArea that defines the plotting region and coordinate system for data visualization.

Declaration

cs-api-definition
[Browsable(false)]
public ChartArea Area { get; }

Property Value

ChartArea

AreaType

Gets or sets the chart area type that determines the coordinate system and layout for data visualization (Cartesian, Pie, Polar, or Funnel).

Declaration

cs-api-definition
public ChartAreaType AreaType { get; set; }

Property Value

ChartAreaType

Axes

Gets the collection of chart axes that define the coordinate system and scaling for the chart area.

Declaration

cs-api-definition
public ChartAxisCollection Axes { get; }

Property Value

ChartAxisCollection

ClientRectangle

Gets the client rectangle that defines the available drawing area for the chart.

Declaration

cs-api-definition
public RectangleF ClientRectangle { get; }

Property Value

RectangleF

Controllers

Gets the collection of chart view controllers that handle user interaction and chart behavior.

Declaration

cs-api-definition
public ChartViewControllerCollection Controllers { get; }

Property Value

ChartViewControllerCollection

DataMember

Gets or sets the name of the list or table in the data source for which the ChartSeries is bound.

Declaration

cs-api-definition
[Browsable(true)]
public string DataMember { get; set; }

Property Value

string

DataSource

Gets or sets the data source of the ChartSeries.

Declaration

cs-api-definition
public object DataSource { get; set; }

Property Value

object

Margin

Gets or sets the margin around the chart area within the view boundaries.

Declaration

cs-api-definition
public Padding Margin { get; set; }

Property Value

Padding

MinSize

Gets or sets the minimum size constraints for the chart view.

Declaration

cs-api-definition
public SizeF MinSize { get; set; }

Property Value

SizeF

Owner

Gets or sets the chart view host that owns and manages this chart view instance.

Declaration

cs-api-definition
public IChartViewHost Owner { get; set; }

Property Value

IChartViewHost

Palette

Gets or sets the color palette used to automatically assign colors to chart series elements.

Declaration

cs-api-definition
[Browsable(false)]
public ChartPalette Palette { get; set; }

Property Value

ChartPalette

Renderer

Gets the chart renderer responsible for drawing and visualizing chart elements within the current chart area.

Declaration

cs-api-definition
public IChartRenderer Renderer { get; }

Property Value

IChartRenderer

SelectionMode

Gets or sets the selection mode that determines how chart elements can be selected by the user.

Declaration

cs-api-definition
public ChartSelectionMode SelectionMode { get; set; }

Property Value

ChartSelectionMode

Series

Gets the collection of chart series that contain the data points and visualization settings for the chart.

Declaration

cs-api-definition
public ChartSeriesCollection Series { get; }

Property Value

ChartSeriesCollection

ShowPanZoom

Gets or sets a value indicating whether the pan and zoom controller is activated for chart navigation.

Declaration

cs-api-definition
public bool ShowPanZoom { get; set; }

Property Value

bool

ShowSmartLabels

Gets or sets a value indicating whether smart labels are enabled to prevent overlapping of chart labels.

Declaration

cs-api-definition
public bool ShowSmartLabels { get; set; }

Property Value

bool

ShowStillIndicators

Gets or sets a value indicating whether still indicators are displayed for static chart elements.

Declaration

cs-api-definition
public bool ShowStillIndicators { get; set; }

Property Value

bool

ShowToolTip

Gets or sets a value indicating whether tooltips are displayed when hovering over chart elements.

Declaration

cs-api-definition
public bool ShowToolTip { get; set; }

Property Value

bool

ShowTrackBall

Gets or sets a value indicating whether the track ball controller is shown for data point tracking.

Declaration

cs-api-definition
public bool ShowTrackBall { get; set; }

Property Value

bool

UseDataSource

Gets or sets a value indicating whether to automatically configure the DataSource of each ChartSeries when null.

Declaration

cs-api-definition
[Browsable(true)]
public bool UseDataSource { get; set; }

Property Value

bool

ViewName

Gets or sets the name identifier for this chart view, useful for drill-down navigation and view management.

Declaration

cs-api-definition
public virtual string ViewName { get; set; }

Property Value

string

ViewResult

Gets or sets the view result that contains information about the chart view's rendering and data processing state.

Declaration

cs-api-definition
public ViewResult ViewResult { get; set; }

Property Value

ViewResult

Viewport

Gets or sets the viewport rectangle that defines the visible chart area.

Declaration

cs-api-definition
public RadRect Viewport { get; set; }

Property Value

RadRect

Methods

DeferRefresh()

Defers chart refresh operations until the returned IDisposable is disposed.

Declaration

cs-api-definition
public virtual IDisposable DeferRefresh()

Returns

IDisposable

An IDisposable that resumes refresh when disposed.

Draw(object)

Draws the chart view using the specified rendering context.

Declaration

cs-api-definition
public virtual void Draw(object context)

Parameters

context

object

The rendering context used for drawing operations.

GetArea<T>()

Gets the chart area cast to the specified type.

Declaration

cs-api-definition
public T GetArea<T>() where T : ChartArea

Returns

T

The chart area as the specified type, or null if the cast is invalid.

Layout()

Performs a layout pass to arrange chart elements and invalidates the display.

Declaration

cs-api-definition
public void Layout()

Layout(RadRect)

Performs a layout pass to arrange chart elements within the specified rectangle.

Declaration

cs-api-definition
public void Layout(RadRect rect)

Parameters

rect

RadRect

The rectangle defining the viewport for layout arrangement.

Layout(bool)

Performs a layout pass to arrange chart elements with optional invalidation.

Declaration

cs-api-definition
public void Layout(bool redraw)

Parameters

redraw

bool

A value indicating whether to invalidate and trigger a redraw after layout.

OnAttached(UIChartElement)

Called when the chart view is attached to a parent chart element.

Declaration

cs-api-definition
protected override void OnAttached(UIChartElement parent)

Parameters

parent

UIChartElement

The parent chart element to which this view is being attached.

Overrides UIChartElement.OnAttached(UIChartElement)

OnAxisLabelFormatting(object, ChartAxisLabelFormattingEventArgs)

Raises the AxisLabelFormatting event.

Declaration

cs-api-definition
protected virtual void OnAxisLabelFormatting(object sender, ChartAxisLabelFormattingEventArgs e)

Parameters

sender

object

The label element that triggered the event.

e

ChartAxisLabelFormattingEventArgs

The ChartAxisLabelFormattingEventArgs containing the event data.

OnCreatePoint(ChartViewCreatePointEventArgs)

Raises the CreatePoint event.

Declaration

cs-api-definition
protected virtual void OnCreatePoint(ChartViewCreatePointEventArgs e)

Parameters

e

ChartViewCreatePointEventArgs

The ChartViewCreatePointEventArgs containing the event data.

OnCreatePointElement(ChartViewCreatePointElementEventArgs)

Raises the CreatePointElement event.

Declaration

cs-api-definition
protected virtual void OnCreatePointElement(ChartViewCreatePointElementEventArgs e)

Parameters

e

ChartViewCreatePointElementEventArgs

The ChartViewCreatePointElementEventArgs containing the event data.

OnCreateRenderer(object, ChartViewCreateRendererEventArgs)

Raises the CreateRenderer event.

Declaration

cs-api-definition
protected virtual void OnCreateRenderer(object sender, ChartViewCreateRendererEventArgs e)

Parameters

sender

object

The sender of the event.

e

ChartViewCreateRendererEventArgs

The ChartViewCreateRendererEventArgs containing the event data.

OnDataError(Exception)

Raises the DataError event when a data exception occurs.

Declaration

cs-api-definition
protected virtual void OnDataError(Exception exception)

Parameters

exception

Exception

The exception that caused the data error.

OnGesture(GestureEventArgs)

Raises the gesture event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnGesture(GestureEventArgs e)

Parameters

e

GestureEventArgs

The GestureEventArgs containing the event data.

OnKeyDown(KeyEventArgs)

Raises the key down event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

The KeyEventArgs containing the event data.

OnKeyPress(KeyPressEventArgs)

Raises the key press event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnKeyPress(KeyPressEventArgs e)

Parameters

e

KeyPressEventArgs

The KeyPressEventArgs containing the event data.

OnKeyUp(KeyEventArgs)

Raises the key up event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnKeyUp(KeyEventArgs e)

Parameters

e

KeyEventArgs

The KeyEventArgs containing the event data.

OnLabelFormatting(object, ChartViewLabelFormattingEventArgs)

Raises the LabelFormatting event.

Declaration

cs-api-definition
protected virtual void OnLabelFormatting(object sender, ChartViewLabelFormattingEventArgs e)

Parameters

sender

object

The sender of the event.

e

ChartViewLabelFormattingEventArgs

The ChartViewLabelFormattingEventArgs containing the event data.

OnMouseCaptureChanged(EventArgs)

Raises the mouse capture changed event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseCaptureChanged(EventArgs e)

Parameters

e

EventArgs

The EventArgs containing the event data.

OnMouseClick(MouseEventArgs)

Raises the mouse click event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseClick(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing the event data.

OnMouseDoubleClick(MouseEventArgs)

Raises the mouse double click event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseDoubleClick(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing the event data.

OnMouseDown(MouseEventArgs)

Raises the mouse down event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing the event data.

OnMouseEnter(EventArgs)

Raises the mouse enter event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseEnter(EventArgs e)

Parameters

e

EventArgs

The EventArgs containing the event data.

OnMouseHover(EventArgs)

Raises the mouse hover event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseHover(EventArgs e)

Parameters

e

EventArgs

The EventArgs containing the event data.

OnMouseLeave(EventArgs)

Raises the mouse leave event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseLeave(EventArgs e)

Parameters

e

EventArgs

The EventArgs containing the event data.

OnMouseMove(MouseEventArgs)

Raises the mouse move event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing the event data.

OnMouseUp(MouseEventArgs)

Raises the mouse up event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing the event data.

OnMouseWheel(MouseEventArgs)

Raises the mouse wheel event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs containing the event data.

OnPanChanged(EventArgs)

Raises the PanChanged event.

Declaration

cs-api-definition
public virtual void OnPanChanged(EventArgs e)

Parameters

e

EventArgs

The EventArgs containing the event data.

OnPanChanging(PanChangingEventArgs)

Raises the PanChanging event.

Declaration

cs-api-definition
public virtual void OnPanChanging(PanChangingEventArgs e)

Parameters

e

PanChangingEventArgs

The PanChangingEventArgs containing the event data.

OnPanGesture(PanGestureEventArgs)

Raises the pan gesture event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnPanGesture(PanGestureEventArgs e)

Parameters

e

PanGestureEventArgs

The PanGestureEventArgs containing the event data.

OnPressAndTapGesture(PressAndTapGestureEventArgs)

Raises the press and tap gesture event and processes it through all chart controllers.

Declaration

cs-api-definition
protected void OnPressAndTapGesture(PressAndTapGestureEventArgs e)

Parameters

e

PressAndTapGestureEventArgs

The PressAndTapGestureEventArgs containing the event data.

OnPropertyChanged(RadPropertyChangedEventArgs)

Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides UIChartElement.OnPropertyChanged(RadPropertyChangedEventArgs)

OnRotateGesture(RotateGestureEventArgs)

Raises the rotate gesture event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnRotateGesture(RotateGestureEventArgs e)

Parameters

e

RotateGestureEventArgs

The RotateGestureEventArgs containing the event data.

OnSelectedPointChanged(ChartViewSelectedPointChangedEventArgs)

Raises the SelectedPointChanged event.

Declaration

cs-api-definition
protected virtual void OnSelectedPointChanged(ChartViewSelectedPointChangedEventArgs e)

Parameters

e

ChartViewSelectedPointChangedEventArgs

The ChartViewSelectedPointChangedEventArgs containing the event data.

OnSelectedPointChanging(ChartViewSelectedPointChangingEventArgs)

Raises the SelectedPointChanging event.

Declaration

cs-api-definition
protected virtual void OnSelectedPointChanging(ChartViewSelectedPointChangingEventArgs e)

Parameters

e

ChartViewSelectedPointChangingEventArgs

The ChartViewSelectedPointChangingEventArgs containing the event data.

OnTwoFingerTapGesture(GestureEventArgs)

Raises the two finger tap gesture event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnTwoFingerTapGesture(GestureEventArgs e)

Parameters

e

GestureEventArgs

The GestureEventArgs containing the event data.

OnZoomChanged(EventArgs)

Raises the ZoomChanged event.

Declaration

cs-api-definition
public virtual void OnZoomChanged(EventArgs e)

Parameters

e

EventArgs

The EventArgs containing the event data.

OnZoomChanging(ZoomChangingEventArgs)

Raises the ZoomChanging event.

Declaration

cs-api-definition
public virtual void OnZoomChanging(ZoomChangingEventArgs e)

Parameters

e

ZoomChangingEventArgs

The ZoomChangingEventArgs containing the event data.

OnZoomGesture(ZoomGestureEventArgs)

Raises the zoom gesture event and processes it through all chart controllers.

Declaration

cs-api-definition
protected virtual void OnZoomGesture(ZoomGestureEventArgs e)

Parameters

e

ZoomGestureEventArgs

The ZoomGestureEventArgs containing the event data.

Pan(double, double)

Pans the chart view by the specified offset values.

Declaration

cs-api-definition
public void Pan(double offsetX, double offsetY)

Parameters

offsetX

double

The horizontal offset for panning.

offsetY

double

The vertical offset for panning.

PerformRefresh(UIChartElement, bool)

Performs a refresh operation on the chart view for the specified element.

Declaration

cs-api-definition
public void PerformRefresh(UIChartElement element, bool updateLayout)

Parameters

element

UIChartElement

The chart element that triggered the refresh request.

updateLayout

bool

A value indicating whether to perform a full layout update.

ProcessResult(ActionResult)

Processes the action result returned by chart controllers.

Declaration

cs-api-definition
protected virtual bool ProcessResult(ActionResult actionResult)

Parameters

actionResult

ActionResult

The action result to process.

Returns

bool

A value indicating whether the result was successfully processed.

Reset()

Resets the chart view by clearing axis states and performing a layout update.

Declaration

cs-api-definition
public void Reset()

ResumeRefresh()

Resumes chart refresh operations and triggers a refresh if needed.

Declaration

cs-api-definition
public void ResumeRefresh()

SuspendRefresh()

Suspends chart refresh operations to improve performance during multiple updates.

Declaration

cs-api-definition
public void SuspendRefresh()

UpdatePanOnZoom(double, double)

Updates the pan offset when zoom changes to maintain proper chart positioning.

Declaration

cs-api-definition
protected virtual void UpdatePanOnZoom(double horizontalScaleFactor, double verticalScaleFactor)

Parameters

horizontalScaleFactor

double

The new horizontal scale factor.

verticalScaleFactor

double

The new vertical scale factor.

Zoom(double, double)

Zooms the chart view using the specified horizontal and vertical scale factors.

Declaration

cs-api-definition
public void Zoom(double horizontalScaleFactor, double verticalScaleFactor)

Parameters

horizontalScaleFactor

double

The horizontal scale factor (between 1 and 100).

verticalScaleFactor

double

The vertical scale factor (between 1 and 100).

Events

AxisLabelFormatting

Occurs when the content of a axis label needs to be formatted for display.

Declaration

cs-api-definition
[Browsable(true)]
public event ChartAxisLabelFormattingEventHandler AxisLabelFormatting

Event Value

ChartAxisLabelFormattingEventHandler

CreatePoint

Occurs when a new data point is created, allowing customization of data points.

Declaration

cs-api-definition
public event ChartViewCreatePointEventHandler CreatePoint

Event Value

ChartViewCreatePointEventHandler

CreatePointElement

Occurs when a new data point element is created, allowing customization of point elements.

Declaration

cs-api-definition
public event ChartViewCreatePointElementEventHandler CreatePointElement

Event Value

ChartViewCreatePointElementEventHandler

CreateRenderer

Occurs when the chart area requires a renderer for the first time, allowing custom renderer creation.

Declaration

cs-api-definition
public event ChartViewCreateRendererEventHandler CreateRenderer

Event Value

ChartViewCreateRendererEventHandler

DataError

Occurs when a data error is detected during chart operations.

Declaration

cs-api-definition
public event ChartViewDataErrorEventHandler DataError

Event Value

ChartViewDataErrorEventHandler

LabelFormatting

Occurs when the content of a point label needs to be formatted for display.

Declaration

cs-api-definition
[Browsable(true)]
public event ChartViewLabelFormattingEventHandler LabelFormatting

Event Value

ChartViewLabelFormattingEventHandler

PanChanged

Occurs when the pan position has changed.

Declaration

cs-api-definition
public event EventHandler PanChanged

Event Value

EventHandler

PanChanging

Occurs when the pan position is about to change, allowing cancellation of the pan operation.

Declaration

cs-api-definition
public event PanChangingEventHandler PanChanging

Event Value

PanChangingEventHandler

SelectedPointChanged

Occurs when the selected point has changed.

Declaration

cs-api-definition
public event ChartViewSelectedChangedEventHandler SelectedPointChanged

Event Value

ChartViewSelectedChangedEventHandler

SelectedPointChanging

Occurs when the selected point is about to change, allowing cancellation of the selection.

Declaration

cs-api-definition
public event ChartViewSelectedChangingEventHandler SelectedPointChanging

Event Value

ChartViewSelectedChangingEventHandler

ZoomChanged

Occurs when the zoom level has changed.

Declaration

cs-api-definition
public event EventHandler ZoomChanged

Event Value

EventHandler

ZoomChanging

Occurs when the zoom level is about to change, allowing cancellation of the zoom operation.

Declaration

cs-api-definition
public event ZoomChangingEventHandler ZoomChanging

Event Value

ZoomChangingEventHandler

In this article
DefinitionConstructorsChartView(IChartViewHost)ChartView(RadChartElement)ChartView(RadChartView)FieldsMarginPropertyMinSizePropertyPropertiesAnnotationsAreaAreaTypeAxesClientRectangleControllersDataMemberDataSourceMarginMinSizeOwnerPaletteRendererSelectionModeSeriesShowPanZoomShowSmartLabelsShowStillIndicatorsShowToolTipShowTrackBallUseDataSourceViewNameViewResultViewportMethodsDeferRefresh()Draw(object)GetArea<T>()Layout()Layout(RadRect)Layout(bool)OnAttached(UIChartElement)OnAxisLabelFormatting(object, ChartAxisLabelFormattingEventArgs)OnCreatePoint(ChartViewCreatePointEventArgs)OnCreatePointElement(ChartViewCreatePointElementEventArgs)OnCreateRenderer(object, ChartViewCreateRendererEventArgs)OnDataError(Exception)OnGesture(GestureEventArgs)OnKeyDown(KeyEventArgs)OnKeyPress(KeyPressEventArgs)OnKeyUp(KeyEventArgs)OnLabelFormatting(object, ChartViewLabelFormattingEventArgs)OnMouseCaptureChanged(EventArgs)OnMouseClick(MouseEventArgs)OnMouseDoubleClick(MouseEventArgs)OnMouseDown(MouseEventArgs)OnMouseEnter(EventArgs)OnMouseHover(EventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnPanChanged(EventArgs)OnPanChanging(PanChangingEventArgs)OnPanGesture(PanGestureEventArgs)OnPressAndTapGesture(PressAndTapGestureEventArgs)OnPropertyChanged(RadPropertyChangedEventArgs)OnRotateGesture(RotateGestureEventArgs)OnSelectedPointChanged(ChartViewSelectedPointChangedEventArgs)OnSelectedPointChanging(ChartViewSelectedPointChangingEventArgs)OnTwoFingerTapGesture(GestureEventArgs)OnZoomChanged(EventArgs)OnZoomChanging(ZoomChangingEventArgs)OnZoomGesture(ZoomGestureEventArgs)Pan(double, double)PerformRefresh(UIChartElement, bool)ProcessResult(ActionResult)Reset()ResumeRefresh()SuspendRefresh()UpdatePanOnZoom(double, double)Zoom(double, double)EventsAxisLabelFormattingCreatePointCreatePointElementCreateRendererDataErrorLabelFormattingPanChangedPanChangingSelectedPointChangedSelectedPointChangingZoomChangedZoomChanging
Not finding the help you need?
Contact Support