Vue PolarChart - valueAxis.visualRange
Defines the axis' displayed range. Cannot be wider than the wholeRange.
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 valueType. You can also set one of the array values to null to specify an open-ended range.
App.vue- <DxPolarChart>
- <DxValueAxis :visualRange="[50, 70]" />
- </DxPolarChart>
- <!-- Open-ended range -->
- <DxPolarChart>
- <DxValueAxis :visualRange="[null, 70]" />
- </DxPolarChart>
An object with the startValue and endValue fields
An alternative to the two-item array.
The following code snippet demonstrates visualRange defined as a
<DxValueAxis>attribute:App.vue- <DxPolarChart>
- <DxValueAxis :visualRange="{ startValue: null, endValue: 70 }" />
- </DxPolarChart>
- <!-- Open-ended range -->
- <DxPolarChart>
- <DxValueAxis :visualRange="{ startValue: null, endValue: 70 }" />
- </DxPolarChart>
The following code snippet demonstrates visualRange defined as a
<DxVisualRange>selector:Code- <DxPolarChart>
- <DxValueAxis>
- <DxVisualRange startValue="50" endValue="70" />
- </DxValueAxis>
- </DxPolarChart>
- <!-- Open-ended range -->
- <DxPolarChart>
- <DxValueAxis>
- <DxVisualRange :startValue="null" endValue="70" />
- </DxValueAxis>
- </DxPolarChart>
An object with the length and startValue or endValue
Specifies the range using length and start or end values.
The following code snippet demonstrates visualRange defined as an attribute of
<DxValueAxis>:App.vue- <DxPolarChart>
- <DxValueAxis :visualRange="{ startValue: 50, length: 20 }" />
- </DxPolarChart>
- <!-- or -->
- <DxPolarChart>
- <DxValueAxis :visualRange="{ endValue: 70, length: 20 }" />
- </DxPolarChart>
The following code snippet demonstrates visualRange defined as a selector (
<DxVisualRange>):Code- <DxPolarChart>
- <DxValueAxis>
- <DxVisualRange startValue="50" length="20" />
- </DxValueAxis>
- </DxPolarChart>
- <!-- or -->
- <DxPolarChart>
- <DxValueAxis>
- <DxVisualRange endValue="70" length="20" />
- </DxValueAxis>
- </DxPolarChart>
If you specify only length, the component defines the endValue property as the largest scale value.
To specify the minimum visual range that a user can set, use the minVisualRangeLength property.
See Also
endValue
The range's end value.
length
The range's length.
If the axis/scale displays numbers, set this property to a number:
- 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:
- length: 'day' // one day
- length: { days: 2 } // two days
startValue
The range's start value.