Class BarSeries
Represents a bar chart series that visualizes data points as rectangular bars where the height represents the magnitude of each value.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.ChartView.dll
Syntax
public class BarSeries : CartesianSeries, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IChartSeries, IChartElementPresenter, IAxisProvider
Constructors
BarSeries()
BarSeries(String)
Initializes a new instance of the BarSeries class with the specified value member.
Declaration
public BarSeries(string valueMember)
Parameters
System.String
valueMember
The name of the property that contains the data values for the bars. |
BarSeries(String, String)
Initializes a new instance of the BarSeries class with the specified value and category members.
Declaration
public BarSeries(string valueMember, string categoryMember)
Parameters
System.String
valueMember
The name of the property that contains the data values for the bars. |
System.String
categoryMember
The name of the property that contains the category values for the bars. |
Fields
LabelModeProperty
Identifies the LabelMode dependency property.
Declaration
public static readonly RadProperty LabelModeProperty
Field Value
RadProperty
|
Properties
LabelMode
Gets or sets the positioning mode for bar labels.
Declaration
public BarLabelModes LabelMode { get; set; }
Property Value
BarLabelModes
|
Model
Gets the data model that represents the bar series structure and behavior.
Declaration
public override ChartSeriesModel Model { get; }
Property Value
ChartSeriesModel
|
Overrides
Methods
CreateModel()
Creates the data model for the bar series and initializes the data point collection.
Declaration
protected override ChartDataPointCollection CreateModel()
Returns
ChartDataPointCollection
A ChartDataPointCollection containing the bar data points. |
Overrides
CreatePointElement(DataPoint)
Creates a visual element for the specified bar data point.
Declaration
protected override DataPointElement CreatePointElement(DataPoint point)
Parameters
DataPoint
point
The data point for which to create the visual element. |
Returns
DataPointElement
A DataPointElement representing the bar. |
Overrides
GetDefaultTrackballTextForPoint(DataPoint)
Gets the default trackball text for the specified data point.
Declaration
protected override string GetDefaultTrackballTextForPoint(DataPoint point)
Parameters
DataPoint
point
The data point for which to generate trackball text. |
Returns
System.String
A string containing the formatted trackball text. |
Overrides
OnApplyPalette()
Applies the current palette to all bar point elements, setting their background and border colors.
Declaration
protected override void OnApplyPalette()
Overrides
ValidatePoint(DataPoint)
Validates that the specified data point is compatible with this bar series.
Declaration
protected override void ValidatePoint(DataPoint item)
Parameters
DataPoint
item
The data point to validate. |