Class RadChart
The class represents the base functionality of the RadChart.
Inheritance
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadChart.dll
Syntax
[Obsolete("RadChart is obsolete. Please use RadChartView instead.")]
public class RadChart : UserControl, ISupportInitialize, IExtenderProvider, IChartComponent, IComponent, IDisposable
Constructors
RadChart()
Creates a new instance of RadChart.
Declaration
public RadChart()
Properties
Appearance
AutoLayout
Specifies AutoLayout mode to all items on the chart control.
Declaration
public bool AutoLayout { get; set; }
Property Value
System.Boolean
|
AutoScroll
Declaration
public override bool AutoScroll { get; set; }
Property Value
System.Boolean
|
AutoScrollMargin
Declaration
public Size AutoScrollMargin { get; set; }
Property Value
System.Drawing.Size
|
AutoScrollMinSize
Declaration
public Size AutoScrollMinSize { get; set; }
Property Value
System.Drawing.Size
|
AutoSize
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
AutoSizeMode
Declaration
public AutoSizeMode AutoSizeMode { get; set; }
Property Value
System.Windows.Forms.AutoSizeMode
|
AutoTextWrap
Specifies AutoLayout mode to all items on the chart control.
Declaration
public bool AutoTextWrap { get; set; }
Property Value
System.Boolean
|
BackColor
Declaration
public override Color BackColor { get; }
Property Value
System.Drawing.Color
|
BackgroundImage
Declaration
public override Image BackgroundImage { get; set; }
Property Value
System.Drawing.Image
|
BackgroundImageLayout
Declaration
public override ImageLayout BackgroundImageLayout { get; set; }
Property Value
System.Windows.Forms.ImageLayout
|
BorderColor
Declaration
public Color BorderColor { get; }
Property Value
System.Drawing.Color
|
Chart
ChartImageFormat
Specifies the image format for export
Declaration
public ImageFormat ChartImageFormat { get; set; }
Property Value
System.Drawing.Imaging.ImageFormat
|
ChartTitle
The chart title message.
Declaration
public ChartTitle ChartTitle { get; }
Property Value
ChartTitle
|
CustomFigures
Specifies the custom palettes for chart
Declaration
public CustomFiguresCollection CustomFigures { get; }
Property Value
CustomFiguresCollection
|
CustomPalettes
Specifies the custom palettes for chart
Declaration
public CustomPalettesCollection CustomPalettes { get; }
Property Value
CustomPalettesCollection
|
DataGroupColumn
Gets or sets the name of the DataSource column (member) that will be used to split one column data into several chart Series
Declaration
public string DataGroupColumn { get; set; }
Property Value
System.String
|
DataManager
Data management support object
Declaration
public DataManager DataManager { get; }
Property Value
DataManager
|
DataMember
Gets or sets the name of the list of data that the data-bound control binds to, in cases where the data source contains more than one distinct list of data items.
Declaration
public string DataMember { get; set; }
Property Value
System.String
|
DataSource
The DataSource object
Declaration
public object DataSource { get; set; }
Property Value
System.Object
|
Remarks
Gets or sets the object from which the chart control retrieves its list of data items
DefaultType
Font
Declaration
public override Font Font { get; }
Property Value
System.Drawing.Font
|
ForeColor
Declaration
public override Color ForeColor { get; }
Property Value
System.Drawing.Color
|
Height
Chart height in pixels
Declaration
public int Height { get; set; }
Property Value
System.Int32
|
IntelligentLabelsEnabled
Enables / disables Intelligent labels logic for series items labels in all plot areas.
Declaration
public bool IntelligentLabelsEnabled { get; set; }
Property Value
System.Boolean
|
Legend
Gets or sets RadChart's legend object.
Declaration
public ChartLegend Legend { get; }
Property Value
ChartLegend
|
MaximumSize
Declaration
public override Size MaximumSize { get; set; }
Property Value
System.Drawing.Size
|
MinimumSize
Declaration
public override Size MinimumSize { get; set; }
Property Value
System.Drawing.Size
|
PlotArea
Specifies the chart's plot area.
Declaration
public ChartPlotArea PlotArea { get; }
Property Value
ChartPlotArea
|
Printing
RightToLeft
Declaration
public override RightToLeft RightToLeft { get; set; }
Property Value
System.Windows.Forms.RightToLeft
|
Series
Collection of the chart's data series.
Declaration
public ChartSeriesCollection Series { get; }
Property Value
ChartSeriesCollection
|
SeriesOrientation
Specifies the orientation of chart series on the plot area.
Declaration
public ChartSeriesOrientation SeriesOrientation { get; set; }
Property Value
ChartSeriesOrientation
|
SeriesPalette
Specifies the series palette
Declaration
public string SeriesPalette { get; set; }
Property Value
System.String
|
Skin
Declaration
public string Skin { get; set; }
Property Value
System.String
|
SkinsOverrideStyles
Should skin override user setting or not
Declaration
public bool SkinsOverrideStyles { get; set; }
Property Value
System.Boolean
|
TempImagesFolder
Declaration
public string TempImagesFolder { get; set; }
Property Value
System.String
|
Implements
TextQuality
Specifies the quality at which the text is rendered.
Declaration
public TextQuality TextQuality { get; set; }
Property Value
TextQuality
|
Width
Chart width in pixels
Declaration
public int Width { get; set; }
Property Value
System.Int32
|
Methods
AddChartSeries(ChartSeries)
Adds a new data series to the RadChart's series collection.
Declaration
public void AddChartSeries(ChartSeries chartSeries)
Parameters
ChartSeries
chartSeries
|
BeginInit()
Declaration
public void BeginInit()
CanExtend(Object)
Declaration
public bool CanExtend(object extendee)
Parameters
System.Object
extendee
|
Returns
System.Boolean
|
Clear()
Removes chart's data series and axis items.
Declaration
public void Clear()
ClearSkin()
Resets current chart's skin to default
Declaration
public void ClearSkin()
Clone()
Clone RadChart object
Declaration
public object Clone()
Returns
System.Object
New instance of RadChart |
Implements
CreateSeries(String, Color, Color, ChartSeriesType)
Creates a new chart series and adds it to the series collection.
Declaration
public ChartSeries CreateSeries(string seriesName, Color mainColor, Color secondColor, ChartSeriesType chartSeriesType)
Parameters
System.String
seriesName
|
System.Drawing.Color
mainColor
|
System.Drawing.Color
secondColor
|
ChartSeriesType
chartSeriesType
|
Returns
ChartSeries
|
DataBind()
Binds a data source to the invoked control
Declaration
public void DataBind()
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources. |
EndInit()
Declaration
public void EndInit()
GetBitmap()
Get chart as bitmap
Declaration
public Image GetBitmap()
Returns
System.Drawing.Image
Chart bitmap |
GetSeries(Color)
Gets a reference to the data series object with the specified color.
Declaration
public ChartSeries GetSeries(Color seriesColor)
Parameters
System.Drawing.Color
seriesColor
|
Returns
ChartSeries
|
GetSeries(Int32)
Declaration
public ChartSeries GetSeries(int seriesIndex)
Parameters
System.Int32
seriesIndex
|
Returns
ChartSeries
|
GetSeries(String)
Declaration
public ChartSeries GetSeries(string seriesName)
Parameters
System.String
seriesName
|
Returns
ChartSeries
|
LoadFromXml(TextReader)
Loads entire chart settings from a TextWriter object
Declaration
public void LoadFromXml(TextReader reader)
Parameters
System.IO.TextReader
reader
|
LoadFromXml(String)
Loads RadChart's settings and data from external XML file.
Declaration
public void LoadFromXml(string relativeFileName)
Parameters
System.String
relativeFileName
|
LoadSkin(TextWriter)
Loads user skin from a TextWriter object
Declaration
public void LoadSkin(TextWriter text)
Parameters
System.IO.TextWriter
text
TextWriter object |
MapPath(String)
Declaration
public string MapPath(string filePath)
Parameters
System.String
filePath
|
Returns
System.String
|
Implements
OnClick(EventArgs)
Declaration
protected override void OnClick(EventArgs e)
Parameters
System.EventArgs
e
|
OnLoad(EventArgs)
Declaration
protected override void OnLoad(EventArgs e)
Parameters
System.EventArgs
e
|
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
System.Windows.Forms.PaintEventArgs
e
|
RemoveAllSeries()
Declaration
public void RemoveAllSeries()
RemoveSeriesAt(Int32)
Declaration
public void RemoveSeriesAt(int seriesIndex)
Parameters
System.Int32
seriesIndex
|
Save(Stream, ImageFormat)
Saves the chart with the specified file name.
Declaration
public void Save(Stream stream, ImageFormat imageFormat)
Parameters
System.IO.Stream
stream
Stream object |
System.Drawing.Imaging.ImageFormat
imageFormat
Image format |
Save(String)
Saves the chart with the specified file name.
Declaration
public void Save(string filename)
Parameters
System.String
filename
|
Save(String, ImageFormat)
Declaration
public void Save(string filename, ImageFormat imageFormat)
Parameters
System.String
filename
|
System.Drawing.Imaging.ImageFormat
imageFormat
|
SaveSkin()
Exports current chart's skin into TextWriter object
Declaration
public TextWriter SaveSkin()
Returns
System.IO.TextWriter
|
SaveToXml()
Exports current chart's settings into TextWriter object
Declaration
public TextWriter SaveToXml()
Returns
System.IO.TextWriter
|
SaveToXml(String)
Saves the chart's state into XML file in the specified by fileName location.
Declaration
public void SaveToXml(string fileName)
Parameters
System.String
fileName
Path to the file |
UpdateGraphics()
Declaration
public void UpdateGraphics()
Events
BeforeLayout
Declaration
public event EventHandler<EventArgs> BeforeLayout
Event Type
System.EventHandler<System.EventArgs>
|
Click
Declaration
public event RadChart.ChartClickEventHandler Click
Event Type
RadChart.ChartClickEventHandler
|
DataBinding
Declaration
public event EventHandler<EventArgs> DataBinding
Event Type
System.EventHandler<System.EventArgs>
|
DataBound
Declaration
public event EventHandler<EventArgs> DataBound
Event Type
System.EventHandler<System.EventArgs>
|
ItemDataBound
Declaration
public event EventHandler<ChartItemDataBoundEventArgs> ItemDataBound
Event Type
System.EventHandler<ChartItemDataBoundEventArgs>
|
PrePaint
Declaration
public event EventHandler<EventArgs> PrePaint
Event Type
System.EventHandler<System.EventArgs>
|