Class Axis
Axis used in a visualization.
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class Axis : IEquatable<Axis>
Constructors
Axis(List<String>, String, String, String, Nullable<Axis.BaseEnum>, Nullable<AxisScale>)
Initializes a new instance of the Axis class.
Declaration
public Axis(List<string> bounds = null, string label = null, string prefix = null, string suffix = null, Axis.BaseEnum? _base = null, AxisScale? scale = null)
Parameters
Type | Name | Description |
---|---|---|
List<System.String> | bounds | The extents of the axis in the form [lower, upper]. Clients determine whether bounds are inclusive or exclusive of their limits.. |
System.String | label | Description of the axis.. |
System.String | prefix | Label prefix for formatting axis values.. |
System.String | suffix | Label suffix for formatting axis values.. |
System.Nullable<Axis.BaseEnum> | _base | Radix for formatting axis values.. |
System.Nullable<AxisScale> | scale | scale. |
Properties
Base
Radix for formatting axis values.
Declaration
public Axis.BaseEnum? Base { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Axis.BaseEnum> | Radix for formatting axis values. |
Bounds
The extents of the axis in the form [lower, upper]. Clients determine whether bounds are inclusive or exclusive of their limits.
Declaration
public List<string> Bounds { get; set; }
Property Value
Type | Description |
---|---|
List<System.String> | The extents of the axis in the form [lower, upper]. Clients determine whether bounds are inclusive or exclusive of their limits. |
Label
Description of the axis.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String | Description of the axis. |
Prefix
Label prefix for formatting axis values.
Declaration
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
System.String | Label prefix for formatting axis values. |
Scale
Gets or Sets Scale
Declaration
public AxisScale? Scale { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<AxisScale> |
Suffix
Label suffix for formatting axis values.
Declaration
public string Suffix { get; set; }
Property Value
Type | Description |
---|---|
System.String | Label suffix for formatting axis values. |
Methods
Equals(Axis)
Returns true if Axis instances are equal
Declaration
public bool Equals(Axis input)
Parameters
Type | Name | Description |
---|---|---|
Axis | input | Instance of Axis to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |