Skip to content

Commit dd8f103

Browse files
Chart: Add constantLine.label Position & Alignment Notes (#8847) (#8868)
1 parent b6a4936 commit dd8f103

7 files changed

Lines changed: 57 additions & 4 deletions

File tree

api-reference/10 UI Components/dxChart/1 Configuration/argumentAxis/constantLines/label/horizontalAlignment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ default: 'right'
88
Aligns constant line labels in the horizontal direction.
99

1010
---
11-
<!-- Description goes here -->
11+
12+
[note] When the label's [position](/Documentation/ApiReference/UI_Components/dxChart/Configuration/argumentAxis/constantLines/label/#position) is *"outside"*, **horizontalAlignment** can only be *"left"* or *"right"*.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
id: dxChart.Options.argumentAxis.constantLines.label.position
3+
type: Enums.RelativePosition
4+
default: 'inside'
5+
---
6+
---
7+
##### shortDescription
8+
Specifies the position of constant line labels on the chart plot.
9+
10+
---
11+
The component's default behavior is to display constant line labels inside the chart plot. To place the labels outside the chart plot, set **position** to *"outside"*.
12+
13+
[note]
14+
15+
When **position** is *"outside"*, note the following label alignment restrictions:
16+
17+
- [verticalAlignment](/Documentation/ApiReference/UI_Components/dxChart/Configuration/argumentAxis/constantLines/label/#verticalAlignment) is always *"center"*
18+
- [horizontalAlignment](/Documentation/ApiReference/UI_Components/dxChart/Configuration/argumentAxis/constantLines/label/#horizontalAlignment) can only be *"left"* or *"right"*
19+
20+
[/note]

api-reference/10 UI Components/dxChart/1 Configuration/argumentAxis/constantLines/label/verticalAlignment.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ default: 'top'
88
Aligns constant line labels in the vertical direction.
99

1010
---
11+
12+
[note] When the label's [position](/Documentation/ApiReference/UI_Components/dxChart/Configuration/argumentAxis/constantLines/label/#position) is *"outside"*, **verticalAlignment** is always *"center"*.

api-reference/10 UI Components/dxChart/1 Configuration/commonAxisSettings/constantLineStyle/label/position.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ default: 'inside'
88
Specifies the position of constant line labels on the chart plot.
99

1010
---
11-
By default, constant line labels are displayed inside the chart plot near the constant lines they belong to. To place the labels outside the chart plot, set the **position** property to *"outside"*.
11+
The component's default behavior is to display constant line labels inside the chart plot. To place the labels outside the chart plot, set **position** to *"outside"*.
1212

13+
[note]
14+
15+
When **position** is *"outside"*, note the following label alignment restrictions:
16+
17+
- [verticalAlignment](/Documentation/ApiReference/UI_Components/dxChart/Configuration/argumentAxis/constantLines/label/#verticalAlignment) is always *"center"*
18+
- [horizontalAlignment](/Documentation/ApiReference/UI_Components/dxChart/Configuration/argumentAxis/constantLines/label/#horizontalAlignment) can only be *"left"* or *"right"*
19+
20+
[/note]

api-reference/10 UI Components/dxChart/1 Configuration/valueAxis/constantLines/label/horizontalAlignment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ default: 'left'
88
Aligns constant line labels in the horizontal direction.
99

1010
---
11-
<!-- Description goes here -->
11+
12+
[note] When the label's [position](/Documentation/ApiReference/UI_Components/dxChart/Configuration/valueAxis/constantLines/label/#position) is *"outside"*, **horizontalAlignment** can only be *"left"* or *"right"*.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
id: dxChart.Options.valueAxis.constantLines.label.position
3+
type: Enums.RelativePosition
4+
default: 'inside'
5+
---
6+
---
7+
##### shortDescription
8+
Specifies the position of constant line labels on the chart plot.
9+
10+
---
11+
The component's default behavior is to display constant line labels inside the chart plot. To place the labels outside the chart plot, set **position** to *"outside"*.
12+
13+
[note]
14+
15+
When **position** is *"outside"*, note the following label alignment restrictions:
16+
17+
- [verticalAlignment](/Documentation/ApiReference/UI_Components/dxChart/Configuration/valueAxis/constantLines/label/#verticalAlignment) is always *"center"*
18+
- [horizontalAlignment](/Documentation/ApiReference/UI_Components/dxChart/Configuration/valueAxis/constantLines/label/#horizontalAlignment) can only be *"left"* or *"right"*
19+
20+
[/note]

api-reference/10 UI Components/dxChart/1 Configuration/valueAxis/constantLines/label/verticalAlignment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ default: 'top'
88
Aligns constant line labels in the vertical direction.
99

1010
---
11-
<!-- Description goes here -->
11+
12+
[note] When the label's [position](/Documentation/ApiReference/UI_Components/dxChart/Configuration/valueAxis/constantLines/label/#position) is *"outside"*, **verticalAlignment** is always *"center"*.

0 commit comments

Comments
 (0)