Angular Chart - argumentAxis.wholeRange

Defines the range where the axis can be zoomed and panned. To limit the visual range, specify the visualRange property.

Selector: dxo-whole-range
Type:

Object

|

Array<Number | String | Date>

Default Value: undefined

This property accepts one of the following:

  • A two-item array

    Specifies the range's start and end. The array can contain a pair of numeric, string, or date-time values, depending on the axis's argumentType. You can also set one of the array values to null to specify an open-ended range.

    app.component.html
    • <dx-chart>
    • <dxo-argument-axis [wholeRange]="[50, 70]" ></dxo-argument-axis>
    • </dx-chart>
    • <!-- Open-ended range -->
    • <dx-chart>
    • <dxo-argument-axis [wholeRange]="[null, 70]" ></dxo-argument-axis>
    • </dx-chart>
  • An object with the startValue and endValue fields

    An alternative to the two-item array.

    app.component.html
    • <dx-chart>
    • <dxo-argument-axis [wholeRange]="{ startValue: 50, endValue: 70 }" ></dxo-argument-axis>
    • </dx-chart>
    • <!-- Open-ended range -->
    • <dx-chart>
    • <dxo-argument-axis [wholeRange]="{ startValue: null, endValue: 70 }" ></dxo-argument-axis>
    • </dx-chart>
  • An object with the length and startValue or endValue

    Specifies the range using length and start or end values.

    app.component.html
    • <dx-chart>
    • <dxo-argument-axis [wholeRange]="{ startValue: 50, length: 20 }" ></dxo-argument-axis>
    • </dx-chart>
    • <!-- or -->
    • <dx-chart>
    • <dxo-argument-axis [wholeRange]="{ endValue: 70, length: 20 }" ></dxo-argument-axis>
    • </dx-chart>

    If you specify only length, the component defines the endValue property as the largest scale value.

NOTE
The component does not support wholeRange properties defined as dxo- selectors.
See Also

endValue

The range's end value.

Type:

Number

|

Date

|

String

| undefined
Default Value: undefined
Raised Events: onOptionChanged

length

The range's length.

Selector: dxo-length
Type:

Number

|

Object

|

TimeInterval

| undefined
Default Value: undefined

If the axis/scale displays numbers, set this property to a number:

Code
  • length: 100 // a hundred axis/scale values

If the axis/scale displays date-time values, set it to an accepted string value or object that contains a field described further in this section:

Code
  • length: 'day' // one day
  • length: { days: 2 } // two days

startValue

The range's start value.

Type:

Number

|

Date

|

String

| undefined
Default Value: undefined
Raised Events: onOptionChanged