New to Telerik ReportingStart a free 30-day trial

Represents a series of data points with labels in the Graph and Map report items.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public abstract class GraphSeriesBase : Component

Inheritance: objectMarshalByRefObjectComponentGraphSeriesBase

Derived Classes: GraphSeriesMapSeriesBase

Constructors

TODO: Add documentation.

C#
protected GraphSeriesBase()

Properties

Gets or sets the color palette used for graph series.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public IColorPalette ColorPalette { get; set; }
Property Value:

A IColorPalette implementation representing color palette used for graph series.

Gets the ConditionalFormatting applied on the data points.

C#
public ConditionalFormatting DataPointConditionalFormatting { get; }

Data point label.

C#
[AIAssistantDescription("The expression used as label each data point in the series. Example: =Sum(Fields.Amount) or =Fields.Category  . To instead display the amount as percentage of the group total, use complex expression like = Sum(Fields.Amount) / CDbl(Exec('graph1', Sum(Fields.Amount))) where graph1 is the name of the graph. ")]
public string DataPointLabel { get; set; }
Property Value:

A string started with "=" is interpreted as an expression to calculate the real data, otherwise - literal string. Supports embedded expressions also.

The angle in degrees at which the data point labels are rotated.

C#
public int DataPointLabelAngle { get; set; }

Gets the ConditionalFormatting to applied on the data points' labels.

C#
public ConditionalFormatting DataPointLabelConditionalFormatting { get; }

Data point label format.

C#
[AIAssistantDescription("The format string applied to the DataPointLabel. Example: {0:C} to format the label as currency. {0:P} or {0:0.0%} to format the label as percentage.")]
public string DataPointLabelFormat { get; set; }

Gets the style for the labels of the data points.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public Style DataPointLabelStyle { get; }

Gets the default style of a data point.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[AIAssistantDescription("The style applied to every data point in this series. Key properties: BackgroundColor (bar/area fill color, overrides the ColorPalette. Prefer altering the color palette for consistent coloring), Color (line or text color), LineColor (border color), LineWidth (border width), Visible. ")]
public Style DataPointStyle { get; }

Legend

string

Gets or sets an expression or a text which is displayed in the legend.

C#
[Browsable(false)]
[Obsolete("Telerik.Reporting.GraphSeries.Legend property is now obsolete. Please use Telerik.Reporting.GraphSeries.LegendItem.Value property.")]
public string Legend { get; set; }
Property Value:

A string started with "=" is interpreted as an expression to calculate the real data, otherwise - literal string. Supports embedded expressions also.

Gets or sets the number format for the legend value.

C#
[Browsable(false)]
[Obsolete("Telerik.Reporting.GraphSeries.LegendFormat property is now obsolete. Please use Telerik.Reporting.GraphSeries.LegendItem.Format property.")]
public string LegendFormat { get; set; }

Gets or sets the LegendItem for the current GraphSeries

C#
[AIAssistantDescription("Use LegendItem to configure the legend entries for this series.The LegendItem.Value is used as the text in the legend for this series.Usually LegendItem is configured when the respective series group has a dynamic grouping expression, i.e., it would spawn multiple instances, hence color mapping is needed.NOTE: Omitting the LegendItem would not remove the legend entry: If the whole Legend is visible, use the LegendItem.Style.Visible property to control the visibility of the legend entries for this series.")]
public LegendItem LegendItem { get; }

Name

string

Gets or sets the name of the graph series.

C#
public string Name { get; set; }
Property Value:

The name of the graph series.

Gets the ToolTip instance associated with the data points.

C#
public ToolTip ToolTip { get; }

Methods

TODO: Add documentation.

C#
public override string ToString()
Returns:

string

Overrides: Component.ToString()