Class BarSettings
Class that handles the global settings for bar charts
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class BarSettings : ISerializable
Constructors
| Improve this Doc View SourceBarSettings(BarSettings, GraphPane)
Copy constructor
Declaration
public BarSettings(BarSettings rhs, GraphPane parentPane)
Parameters
Type | Name | Description |
---|---|---|
BarSettings | rhs | the BarSettings instance to be copied. |
GraphPane | parentPane | The GraphPane that will be the parent of this new BarSettings object. |
BarSettings(GraphPane)
Constructor to build a BarSettings instance from the defaults.
Declaration
public BarSettings(GraphPane parentPane)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | parentPane |
Fields
| Improve this Doc View Sourceschema
Current schema value that defines the version of the serialized file
Declaration
public const int schema = 10
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceBase
Determines the base axis from which Bar graphs will be displayed.
Declaration
public BarBase Base { get; set; }
Property Value
Type | Description |
---|---|
BarBase |
Remarks
The base axis is the axis from which the bars grow with increasing value. The value is of the enumeration type BarBase.
See Also
| Improve this Doc View SourceClusterScaleWidth
The width of an individual bar cluster on a Bar graph. This value only applies to bar graphs plotted on non-ordinal X axis types (Linear, Log, and Date.
Declaration
public double ClusterScaleWidth { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
This value can be calculated automatically if ClusterScaleWidthAuto is set to true. In this case, ClusterScaleWidth will be calculated if Base refers to an Axis of a non-ordinal type (IsAnyOrdinal is false). The ClusterScaleWidth is calculated from the minimum difference found between any two points on the Base Axis for any BarItem in the CurveList. The ClusterScaleWidth is set automatically each time AxisChange() is called. Calculations are done by the CalcClusterScaleWidth() method.
See Also
| Improve this Doc View SourceClusterScaleWidthAuto
Gets or sets a property that determines if the ClusterScaleWidth will be calculated automatically.
Declaration
public bool ClusterScaleWidthAuto { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
true for the ClusterScaleWidth to be calculated automatically based on the available data, false otherwise. This value will be set to false automatically if the ClusterScaleWidth value is changed by the user.
See Also
| Improve this Doc View SourceMinBarGap
The minimum space between individual Bar within a cluster, expressed as a fraction of the bar size.
Declaration
public float MinBarGap { get; set; }
Property Value
Type | Description |
---|---|
Single |
See Also
| Improve this Doc View SourceMinClusterGap
The minimum space between Bar clusters, expressed as a fraction of the bar size.
Declaration
public float MinClusterGap { get; set; }
Property Value
Type | Description |
---|---|
Single |
See Also
| Improve this Doc View SourceType
Determines how the BarItem graphs will be displayed. See the BarType enum for the individual types available.
Declaration
public BarType Type { get; set; }
Property Value
Type | Description |
---|---|
BarType |
See Also
Methods
| Improve this Doc View SourceBarBaseAxis()
Declaration
public Axis BarBaseAxis()
Returns
Type | Description |
---|---|
Axis | The Axis class for the axis from which the bars are based |
See Also
| Improve this Doc View SourceCalcClusterScaleWidth()
Calculate the width of an individual bar cluster on a BarItem graph. This value only applies to bar graphs plotted on non-ordinal X axis types (IsAnyOrdinal is false).
Declaration
public void CalcClusterScaleWidth()
Remarks
This value can be calculated automatically if ClusterScaleWidthAuto is set to true. In this case, ClusterScaleWidth will be calculated if Base refers to an Axis of a non-ordinal type (IsAnyOrdinal is false). The ClusterScaleWidth is calculated from the minimum difference found between any two points on the Base Axis for any BarItem in the CurveList. The ClusterScaleWidth is set automatically each time AxisChange() is called.
See Also
| Improve this Doc View SourceGetClusterWidth()
Determine the width, in screen pixel units, of each bar cluster including the cluster gaps and bar gaps.
Declaration
public float GetClusterWidth()
Returns
Type | Description |
---|---|
Single | The width of each bar cluster, in pixel units |
Remarks
This method calls the GetClusterWidth(GraphPane) method for the base Axis for Bar graphs (the base Axis is assigned by the Base property).
See Also
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |