New to Telerik ReportingStart a free 30-day trial

Graph

Class

AI JSON Schema annotations for Graph. Properties in this partial class exist solely to guide JSON Schema generation for the AI assistant PoC. They are NOT usable at runtime and throw if called.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[ToolboxBitmap(typeof(Graph), "Resources.Graph.bmp")]
public class Graph : DataItem, IToggleVisibilityTarget, IActionTarget, IDataItem, IDataFlow, IDataSourceContainer

Inheritance: objectReportObjectReportItemBaseReportItemDataItemGraph...

Implements: IActionTargetIDataFlowIDataItemIDataSourceContainerIToggleVisibilityTarget

Inherited Members DataItem.OnNeedDataSource(object, EventArgs)DataItem.NeedDataSourceMethodNameDataItem.DataSourceDataItem.FiltersDataItem.NoDataMessageDataItem.NoDataStyleDataItem.SortingsDataItem.SortingDataItem.NeedDataSourceReportItem.SizeReportItem.LocationReportItem.AnchoringReportItem.DockingReportItem.BoundsReportItem.LeftReportItem.RightReportItem.TopReportItem.BottomReportItem.WidthReportItem.HeightReportItemBase.Dispose()ReportItemBase.Dispose(bool)ReportItemBase.ToString()ReportItemBase.Contains(ReportItemBase)ReportItemBase.GetEventHandlers(EventHandler)ReportItemBase.OnItemValidate(ReportItemBase)ReportItemBase.ClearGlobalDependencies()ReportItemBase.ContainerReportItemBase.DesignModeReportItemBase.SiteReportItemBase.NameReportItemBase.ItemDataBindingMethodNameReportItemBase.ItemDataBoundMethodNameReportItemBase.VisibleReportItemBase.StyleNameReportItemBase.StyleReportItemBase.ItemsReportItemBase.ParentReportItemBase.ReportReportItemBase.ConditionalFormattingReportItemBase.BookmarkReportItemBase.BookmarkIdReportItemBase.DocumentMapTextReportItemBase.TocTextReportItemBase.TocLevelReportItemBase.ActionReportItemBase.BindingsReportItemBase.ToolTipReportItemBase.AccessibleDescriptionReportItemBase.AccessibleRoleReportItemBase.AIDescriptionReportItemBase.ItemDataBindingReportItemBase.ItemDataBoundReportItemBase.DisposedReportObject.ToString(string[])...

Constructors

TODO: Add documentation.

C#
public Graph()

Properties

JSON Schema annotation only — do not call at runtime. Represents the flat Axes collection that appears in the serialized JSON format. In C#, axes are held by CoordinateSystems (via XAxis/YAxis on each CartesianCoordinateSystem). During serialization, the GraphSurrogate flattens them into a named collection.

C#
[Browsable(false)]
[AIAssistantInclude("")]
[AIAssistantRequired]
[AIAssistantDescription("Collection of named GraphAxis objects. Every axis referenced by XAxis or YAxis in a CoordinateSystem must be declared here first with a unique Name. Each axis requires a Scale sub-object (e.g. NumericalScale or CategoryScale).")]
public GraphAxisCollection Axes { get; }

Gets the hierarchy of GraphGroups that define the categories for the current Graph.

C#
[AIAssistantRequired]
public GraphGroupCollection CategoryGroups { get; }

Gets or sets the color palette used for graph series.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[AIAssistantRequired]
[AIAssistantDescription("Determines the color set assigned to each runtime instance of the graph series effectively coloring all its data points.Example1: Series with static group -> All data points in the series will have the same color. Example2: Series with dynamic group producing 3 runtime series -> 3 colors will be retrieved from the color palette, coloring the respective data points.")]
public IColorPalette ColorPalette { get; set; }
Property Value:

A IColorPalette implementation representing color palette used for graph series.

Gets the collection of GraphCoordinateSystems.

C#
[AIAssistantRequired]
public GraphCoordinateSystemCollection CoordinateSystems { get; }

Culture

CultureInfo

Gets or sets the culture information associated with the Graph item.

C#
public CultureInfo Culture { get; set; }
Property Value:

A CultureInfo representing the culture supported by the Graph.

TODO: Add documentation.

C#
protected override SizeU DefaultSize { get; }

Overrides: ReportItem.DefaultSize

Gets the Legend for the current Graph

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[AIAssistantRequired]
[AIAssistantDescription("A legend area in the graph, mapping for the user what each series instance represents. Configure the Legend to change the Legend position and overall representation. The on/off of the Legend is controlled by its visbility (.Style.Visible). The label for each data point represented in the legend is defined by the .LegendItem property on the series object definition.")]
public GraphLegend Legend { get; }

Gets the style of the plot area.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public Style PlotAreaStyle { get; }
Remarks:

The plot area of a Graph is the area where all series including the data points and labels are rendered. The plot area also contains all grid lines if defined.

Gets the collection of GraphSeries defined for the current Graph.

C#
[AIAssistantRequired]
[AIAssistantDescription("The collection of graph series. Each series represents a data set visualized in the graphand together with the coordinate system determine the type of the graph. The series type determines the data points type (line, area, bar, etc.). The series object defines the adjacent label for each data point (DataPointLabel).")]
public GraphSeriesCollection Series { get; }

Gets the hierarchy of GraphGroups that define the series for the current Graph.

C#
public GraphGroupCollection SeriesGroups { get; }

Gets the collection of GraphTitle defined for the current Graph.

C#
[AIAssistantDescription("The collection of graph titles. Graph supports multiple titles, like main title and subtitles, but usually one is sufficient.")]
public GraphTitleCollection Titles { get; }