Class RadChartView
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.ChartView.dll
Syntax
[TelerikToolboxCategory("Data Controls")]
public class RadChartView : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider, IRangeSelectorControl, IPrintable
Constructors
RadChartView()
Declaration
public RadChartView()
Properties
Annotations
Collection of the ChartAnnotations
Declaration
public ChartAnnotationCollection Annotations { get; }
Property Value
ChartAnnotationCollection
|
Area
Returns the current visible area.
Declaration
public ChartArea Area { get; }
Property Value
ChartArea
|
AreaDesign
AreaType
Set the desired area type. Available options are - Cartesian, Pie and Polar
Declaration
public ChartAreaType AreaType { get; set; }
Property Value
ChartAreaType
|
AutoSize
Gets or sets whether the edit control is auto-sized
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
Axes
Collection of the Axes
Declaration
public ChartAxisCollection Axes { get; }
Property Value
ChartAxisCollection
|
ChartElement
Gets the chart element.
Declaration
public RadChartElement ChartElement { get; }
Property Value
RadChartElement
|
Controllers
Collection of the Controllers
Declaration
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
public string DataMember { get; set; }
Property Value
System.String
|
DataSource
Gets or sets the data source of the ChartSeries.
Declaration
public object DataSource { get; set; }
Property Value
System.Object
|
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
DrillNavigationMode
LegendItemsLayout
Declaration
public LegendItemsLayout LegendItemsLayout { get; set; }
Property Value
LegendItemsLayout
|
LegendItemsOrientation
Gets or sets the orientation of the legend items. The possible values are System.Windows.Forms.Orientation.Horizontal and System.Windows.Forms.Orientation.Vertical.
Declaration
public Orientation LegendItemsOrientation { get; set; }
Property Value
System.Windows.Forms.Orientation
|
LegendPosition
Determines the position of the legend element.
Declaration
public LegendPosition LegendPosition { get; set; }
Property Value
LegendPosition
|
LegendTitle
Gets or sets the legend title.
Declaration
public string LegendTitle { get; set; }
Property Value
System.String
|
SelectionMode
Set the selection mode in the control. Available options are None, SingleDataPoint or MultipleDataPoints
Declaration
public ChartSelectionMode SelectionMode { get; set; }
Property Value
ChartSelectionMode
|
Series
Collection of the ChartSeries
Declaration
public ChartSeriesCollection Series { get; }
Property Value
ChartSeriesCollection
|
ShowDrillNavigation
ShowGrid
Gets or sets a value indicating whether chart grid should be shown.
Declaration
public bool ShowGrid { get; set; }
Property Value
System.Boolean
|
ShowItemToolTips
Gets or sets a value indicating whether ToolTips are shown for the RadItem objects contained in the RadControl.
Declaration
public override bool ShowItemToolTips { get; set; }
Property Value
System.Boolean
|
Overrides
ShowLegend
Gets or sets a value indicating whether legend is shown.
Declaration
public bool ShowLegend { get; set; }
Property Value
System.Boolean
|
ShowPanZoom
Show or hide PanZoom controller in RadChartView.
Declaration
public bool ShowPanZoom { get; set; }
Property Value
System.Boolean
|
ShowSmartLabels
Show or hide Smart labels controller in RadChartView.
Declaration
public bool ShowSmartLabels { get; set; }
Property Value
System.Boolean
|
ShowStillIndicators
Show or hide chart still indicators controller in RadChartView.
Declaration
public bool ShowStillIndicators { get; set; }
Property Value
System.Boolean
|
ShowTitle
Gets or sets a value indicating whether chart title is shown.
Declaration
public bool ShowTitle { get; set; }
Property Value
System.Boolean
|
ShowToolTip
Show or hide ToolTip controller in RadChartView.
Declaration
public bool ShowToolTip { get; set; }
Property Value
System.Boolean
|
ShowTrackBall
Show or hide TrackBall controller in RadChartView.
Declaration
public bool ShowTrackBall { get; set; }
Property Value
System.Boolean
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
Title
Gets or sets the chart title.
Declaration
public string Title { get; set; }
Property Value
System.String
|
UseDataSource
Automatically setup DataSource of ChartSeries on attaching using this DataSource only when DataSource property of ChartSeries is null.
Declaration
public bool UseDataSource { get; set; }
Property Value
System.Boolean
|
View
Gets the ChartView associated with the chart element.
Declaration
public ChartView View { get; }
Property Value
ChartView
|
Views
Gets the collection ofChartView associated with the chart element.
Declaration
public ChartViewCollection Views { get; }
Property Value
ChartViewCollection
|
Methods
BeginPrint(RadPrintDocument, PrintEventArgs)
Declaration
public int BeginPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters
RadPrintDocument
sender
|
System.Drawing.Printing.PrintEventArgs
args
|
Returns
System.Int32
|
Implements
CreateChartElement()
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
DeferRefresh()
Declaration
public IDisposable DeferRefresh()
Returns
System.IDisposable
|
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
DrillDown(DataPoint)
Drill to next Chart View
Declaration
public virtual bool DrillDown(DataPoint point)
Parameters
DataPoint
point
Entry point for Drill operation |
Returns
System.Boolean
|
DrillToTop()
Drill to the first Chart View
Declaration
public virtual bool DrillToTop()
Returns
System.Boolean
|
DrillUp()
Drill to previous Chart View
Declaration
public virtual bool DrillUp()
Returns
System.Boolean
|
EndPrint(RadPrintDocument, PrintEventArgs)
Declaration
public bool EndPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters
RadPrintDocument
sender
|
System.Drawing.Printing.PrintEventArgs
args
|
Returns
System.Boolean
|
Implements
ExportToImage(Stream, Size)
Exports the chart view into the specified stream using the PNG image format.
Declaration
public void ExportToImage(Stream stream, Size size)
Parameters
System.IO.Stream
stream
The stream to which to write the chart image |
System.Drawing.Size
size
The size of the exported image. |
ExportToImage(Stream, Size, ImageFormat)
Exports the chart view into the specified stream.
Declaration
public void ExportToImage(Stream stream, Size size, ImageFormat imageFormat)
Parameters
System.IO.Stream
stream
The stream to which to write the chart image |
System.Drawing.Size
size
The size of the exported image. |
System.Drawing.Imaging.ImageFormat
imageFormat
The image format in which to export the chart. |
ExportToImage(String, Size)
Exports the chart view into the specified file using the PNG image format.
Declaration
public void ExportToImage(string filePath, Size size)
Parameters
System.String
filePath
The file to which the chart will be exported. |
System.Drawing.Size
size
The size of the exported file. |
ExportToImage(String, Size, ImageFormat)
Exports the chart view into the specified file.
Declaration
public void ExportToImage(string filePath, Size size, ImageFormat imageFormat)
Parameters
System.String
filePath
The file to which the chart will be exported. |
System.Drawing.Size
size
The size of the exported file. |
System.Drawing.Imaging.ImageFormat
imageFormat
The image format in which to export the chart. |
GetArea<T>()
Returns an area of the desired type.
Declaration
public T GetArea<T>()
where T : ChartArea
Returns
T
|
Type Parameters
T
|
GetSeries<T>(Int32)
Returns a seria of the desired type, at specified index.
Declaration
public T GetSeries<T>(int index)
where T : ChartSeries
Parameters
System.Int32
index
|
Returns
T
|
Type Parameters
T
|
GetSettingsDialog(RadPrintDocument)
Declaration
public Form GetSettingsDialog(RadPrintDocument document)
Parameters
RadPrintDocument
document
|
Returns
System.Windows.Forms.Form
|
Implements
GetViewElement()
OnLoad(Size)
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
System.Drawing.Size
desiredSize
|
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnThemeChanged()
Called when the theme is changed.
Declaration
protected override void OnThemeChanged()
Overrides
Pan(Double, Double)
Pans with the specific x and y values
Declaration
public void Pan(double x, double y)
Parameters
System.Double
x
|
System.Double
y
|
Print()
Print(Boolean)
Directly prints the RadChartView to the default printer or shows printer settings and then prints the RadChartView.
Declaration
public virtual void Print(bool showPrinterSettings)
Parameters
System.Boolean
showPrinterSettings
Indicates whether printer settings dialog should be shown. |
Print(Boolean, RadPrintDocument)
Directly prints the RadChartView to the default printer or shows printer settings and then prints the RadChartView.
Declaration
public virtual void Print(bool showPrinterSettings, RadPrintDocument document)
Parameters
System.Boolean
showPrinterSettings
Indicates whether printer settings dialog should be shown. |
RadPrintDocument
document
As instance of RadPrintDocument used to control the print process. |
PrintPage(Int32, RadPrintDocument, PrintPageEventArgs)
Declaration
public bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)
Parameters
System.Int32
pageNumber
|
RadPrintDocument
sender
|
System.Drawing.Printing.PrintPageEventArgs
args
|
Returns
System.Boolean
|
Implements
PrintPreview()
Shows a RadPrintPreviewDialog for editing print settings.
Declaration
public virtual void PrintPreview()
PrintPreview(RadPrintDocument)
Shows a RadPrintPreviewDialog for editing print settings.
Declaration
public virtual void PrintPreview(RadPrintDocument document)
Parameters
RadPrintDocument
document
As instance of RadPrintDocument used to control the print process. |
Refresh()
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
ResumeRefresh()
Declaration
public void ResumeRefresh()
ScaleControl(SizeF, BoundsSpecified)
Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
System.Drawing.SizeF
factor
|
System.Windows.Forms.BoundsSpecified
specified
|
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
SuspendRefresh()
Declaration
public void SuspendRefresh()
Zoom(Double, Double)
Zoom by a specified horizontal and vertical factor
Declaration
public void Zoom(double horizontalScaleFactor, double verticalScaleFactor)
Parameters
System.Double
horizontalScaleFactor
|
System.Double
verticalScaleFactor
|
Events
ContextMenuOpening
Occurs when context menu is opening.
Declaration
public event ChartViewContextMenuOpeningEventHandler ContextMenuOpening
Event Type
ChartViewContextMenuOpeningEventHandler
|
CreatePoint
Occurs when a new DataPoint is created.
Declaration
public event ChartViewCreatePointEventHandler CreatePoint
Event Type
ChartViewCreatePointEventHandler
|
CreatePointElement
Occurs when a new DataPointElement is created.
Declaration
public event ChartViewCreatePointElementEventHandler CreatePointElement
Event Type
ChartViewCreatePointElementEventHandler
|
CreateRenderer
Fires when the area requies a renderer for the first time.
Declaration
public event ChartViewCreateRendererEventHandler CreateRenderer
Event Type
ChartViewCreateRendererEventHandler
|
Drill
Fires when started Drill operation.
Declaration
public event DrillEventHandler Drill
Event Type
DrillEventHandler
|
LabelFormatting
Fires when the content of a point label needs to be formatted for display.
Declaration
public event ChartViewLabelFormattingEventHandler LabelFormatting
Event Type
ChartViewLabelFormattingEventHandler
|
SelectedPointChanged
Occurs when the value of the IsSelected property of a DataPoint is changed.
Declaration
public event ChartViewSelectedChangedEventHandler SelectedPointChanged
Event Type
ChartViewSelectedChangedEventHandler
|
SelectedPointChanging
Occurs when the value of the IsSelected property of a DataPoint is changing.
Declaration
public event ChartViewSelectedChangingEventHandler SelectedPointChanging
Event Type
ChartViewSelectedChangingEventHandler
|