class anychart.core.utils.Error Improve this Doc
Extends: anychart.core.Base
Class representing series error.
Learn more about error chart.
Methods Overview
Specific settings | |
mode() | Error mode settings. |
valueError() | Value error settings. |
valueErrorWidth() | Value width settings. |
valueLowerError() | Value lower error settings. |
valueUpperError() | Value upper error settings. |
xError() | X-error settings. |
xErrorWidth() | X-error width settings. |
xLowerError() | X lower error settings. |
xUpperError() | X upper error settings. |
Coloring | |
valueErrorStroke() | Value error stroke settings. |
xErrorStroke() | X-error stroke settings. |
Methods Description
mode
Setter for error mode.
Error mode defines the rule to parse values for series with an error.
Error mode defines the rule to parse values for series with an error.
Params:
Name | Type | Default | Description |
---|---|---|---|
mode | anychart.enums.ErrorMode | string | 'both' | Value to set. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
valueError
Setter for value error.
Params:
Name | Type | Default | Description |
---|---|---|---|
valueError | string | number | null | Value error to set. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
valueErrorStroke
Getter for value error stroke settings.
Returns:
anychart.graphics.vector.Stroke - Stroke settings.Try it:
Setter for value error stroke using a function.
Params:
Name | Type | Default | Description |
---|---|---|---|
strokeFunction | function():anychart.graphics.vector.Stroke|anychart.graphics.vector.ColoredFill | function() { return anychart.color.darken(this.sourceColor); } | Function that looks like: function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke } |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
Setter for value error stroke settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | '#1D8BD1' | Stroke settings. |
thickness | number | 1 | Line thickness. |
dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
lineJoin | string | anychart.graphics.vector.StrokeLineJoin | Line joint style. | |
lineCap | string | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
valueErrorWidth
Getter for value error width settings.
Returns:
number - Returns value error width.Try it:
Setter for value error width settings. Length pins for value axis in pixels.
Params:
Name | Type | Default | Description |
---|---|---|---|
width | number | 10 | Value error width. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
valueLowerError
Getter for value lower error.
Returns:
string | number | undefined - Returns value lower error.Try it:
Setter for value lower error.
Params:
Name | Type | Default | Description |
---|---|---|---|
valueLowerError | string | number | null | Value lower error to set. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
valueUpperError
Getter for value upper error.
Returns:
string | number | undefined - Returns value lower error.Try it:
Setter for value upper error.
Params:
Name | Type | Default | Description |
---|---|---|---|
valueUpperError | string | number | null | Value upper error to set. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
xError
Setter for X error.
Params:
Name | Type | Default | Description |
---|---|---|---|
xError | string | number | null | X Error to set. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
xErrorStroke
Getter for X error stroke settings.
Returns:
anychart.graphics.vector.Stroke - Stroke settings.Try it:
Setter for the X error stroke using a function.
Params:
Name | Type | Default | Description |
---|---|---|---|
strokeFunction | function():anychart.graphics.vector.Stroke|anychart.graphics.vector.ColoredFill | function() { return anychart.color.darken(this.sourceColor); } | Function that looks like: function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke } |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
Setter for X error stroke settings.
Learn more about stroke settings.
Params:
Name | Type | Description |
---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke color. |
thickness | number | Line thickness. |
dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. |
lineJoin | string | anychart.graphics.vector.StrokeLineJoin | Line joint style. |
lineCap | string | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
xErrorWidth
Setter for X error width settings. Length pins for X axis in pixels.
Params:
Name | Type | Default | Description |
---|---|---|---|
width | number | 10 | X error width. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
xLowerError
Getter for X lower error.
Returns:
string | number | undefined - Returns X lower error.Try it:
Setter for X lower error.
Params:
Name | Type | Default | Description |
---|---|---|---|
xLowerError | string | number | null | X lower error to set. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it:
xUpperError
Getter for X upper error.
Returns:
string | number | undefined - Returns X upper error.Try it:
Setter for X upper error.
Params:
Name | Type | Default | Description |
---|---|---|---|
xUpperError | string | number | null | X upper error to set. |
Returns:
anychart.core.utils.Error - Self instance for method chaining.Try it: