Class HierarchicalChartBase
Abstract base class for hierarchical charts (TreeMap, Sunburst, Bubble)
Inheritance
Implements
Inherited Members
Namespace: FastReport.BG.Common
Assembly: FastReport.BG.dll
Syntax
public abstract class HierarchicalChartBase : ChartBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IDrillDownSupport
Constructors
HierarchicalChartBase()
Constructs a hierarchical chart
Declaration
public HierarchicalChartBase()
Fields
drillDownNode
Drill-down node.
Declaration
protected HierarchicalNode drillDownNode
Field Value
Type | Description |
---|---|
HierarchicalNode |
rootNode
Root node.
Declaration
protected HierarchicalNode rootNode
Field Value
Type | Description |
---|---|
HierarchicalNode |
Properties
DataSource
Data source for the chart
Declaration
public HierarchicalDataSourceBase DataSource { get; set; }
Property Value
Type | Description |
---|---|
HierarchicalDataSourceBase |
See Also
DrillDownNode
Drill-down node. Node which currently starts the hierarchy in the hierarchical chart
Declaration
[Browsable(false)]
public HierarchicalNode DrillDownNode { get; set; }
Property Value
Type | Description |
---|---|
HierarchicalNode |
DrillDownRecord
Get record of current drill-down node
Declaration
[Browsable(false)]
public HierarchicalRecord DrillDownRecord { get; set; }
Property Value
Type | Description |
---|---|
HierarchicalRecord |
EnableDrillDown
Allow or disable drill-down for the chart
Declaration
public bool EnableDrillDown { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HoverType
Active hover type for the chart
Declaration
public HoverType HoverType { get; set; }
Property Value
Type | Description |
---|---|
HoverType |
See Also
MaxDepth
Maximal depth of hierarchy to show. 0 - no limits.
Declaration
public int MaxDepth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Palette
Get/Set Palette used to color nodes
Declaration
[TypeConverter(typeof(ExpandableObjectConverter))]
public Palette Palette { get; set; }
Property Value
Type | Description |
---|---|
Palette |
RootNode
Get the root chart element
Declaration
[Browsable(false)]
public HierarchicalNode RootNode { get; }
Property Value
Type | Description |
---|---|
HierarchicalNode |
RootRecord
Get the record of the root chart element
Declaration
[Browsable(false)]
public HierarchicalRecord RootRecord { get; }
Property Value
Type | Description |
---|---|
HierarchicalRecord |
SelectedNodes
Get collection of selected chart nodes (visual fragments)
Declaration
[Browsable(false)]
public ICollection<HierarchicalNode> SelectedNodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<HierarchicalNode> |
SelectedRecords
Get collection of selected data records
Declaration
[Browsable(false)]
public ICollection<HierarchicalRecord> SelectedRecords { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<HierarchicalRecord> |
SelectedRecordTextPath
Get/Set collection of text path of last selected data record
Declaration
[Browsable(false)]
public ICollection<string> SelectedRecordTextPath { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.String> |
SelectionType
Active selection type for the chart
Declaration
public SelectionType SelectionType { get; set; }
Property Value
Type | Description |
---|---|
SelectionType |
See Also
UpdateCount
Gets update count.
Declaration
protected int UpdateCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
BeginInit()
Begin initialization
Declaration
public void BeginInit()
ClearSelection()
Clear collection of selected nodes
Declaration
public void ClearSelection()
DataSourceChanged(Object, EventArgs)
Executes when the data source has changed
Declaration
protected abstract void DataSourceChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Data source |
System.EventArgs | e | Empty EventArgs |
DrillDownChanged()
Executes when DrillDown property has changed
Declaration
protected virtual void DrillDownChanged()
EndInit()
End initialization
Declaration
public void EndInit()
FullUpdate()
Full update.
Declaration
protected abstract void FullUpdate()
MaxDepthChanged()
Executes when MaxDepth property has changed
Declaration
protected virtual void MaxDepthChanged()
SetNodeSelected(HierarchicalNode, Boolean)
Change selection state of the given node
Declaration
public void SetNodeSelected(HierarchicalNode node, bool selected)
Parameters
Type | Name | Description |
---|---|---|
HierarchicalNode | node | Node to change |
System.Boolean | selected | New selected state |
UpdateHoveredNode(NodeBase, Boolean)
Executes when node changes hover status
Declaration
protected override void UpdateHoveredNode(NodeBase node, bool hover)
Parameters
Type | Name | Description |
---|---|---|
NodeBase | node | Node to change |
System.Boolean | hover | New hover status |
Overrides
Events
DrillDownChange
Notifies when drill-down has changed
Declaration
public event EventHandler DrillDownChange
Event Type
Type | Description |
---|---|
System.EventHandler |
MaxDepthChange
Notifies when MaxDepth has changed
Declaration
public event EventHandler MaxDepthChange
Event Type
Type | Description |
---|---|
System.EventHandler |
SelectionChange
Notifies when selection has changed
Declaration
public event EventHandler SelectionChange
Event Type
Type | Description |
---|---|
System.EventHandler |
Explicit Interface Implementations
IDrillDownSupport.DrillDownNode
Declaration
[Browsable(false)]
IHierarchicalNode IDrillDownSupport.DrillDownNode { get; set; }
Returns
Type | Description |
---|---|
IHierarchicalNode |