Skip to content

Commit 76cce69

Browse files
authored
Merge pull request #6817 from syncfusion-content/983838-SparkLineUG
983838: Updated the UG content and example changes in the Spark Line Control.
2 parents 80a30d8 + 2998238 commit 76cce69

15 files changed

+348
-259
lines changed

blazor-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4325,6 +4325,7 @@
43254325
<li> <a href="/blazor/sparkline/user-interaction">User Interaction</a></li>
43264326
<li> <a href="/blazor/sparkline/appearance">Appearance</a></li>
43274327
<li> <a href="/blazor/sparkline/globalization">Globalization</a></li>
4328+
<li> <a href="/blazor/sparkline/localization">Localization</a></li>
43284329
<li> <a href="/blazor/sparkline/accessibility">Accessibility</a></li>
43294330
<li> <a href="/blazor/sparkline/events">Events</a></li>
43304331
<li> <a href="/blazor/sparkline/methods">Methods</a></li>

blazor/sparkline/accessibility.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
layout: post
33
title: Accessibility in Blazor Sparkline Component | Syncfusion
4-
description: Checkout and learn here all about Accessibility using Keyboard navigation in Syncfusion Blazor Sparkline component and more.
4+
description: Learn about accessibility, keyboard navigation, and compliance in the Syncfusion Blazor Sparkline component.
55
platform: Blazor
66
control: Sparkline
77
documentation: ug
88
---
99

1010
# Accessibility in Blazor Sparkline Component
1111

12-
The Blazor Sparkline component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
12+
The Blazor Sparkline component follows accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/), and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles).
1313

14-
The accessibility compliance for the Blazor Sparkline component is outlined below.
14+
The table below outlines accessibility compliance for the Blazor Sparkline component.
1515

1616
| Accessibility Criteria | Compatibility |
1717
| -- | -- |
@@ -21,7 +21,7 @@ The accessibility compliance for the Blazor Sparkline component is outlined belo
2121
| [Right-To-Left Support](../common/accessibility#right-to-left-support) | <img src="https://cdn.syncfusion.com/content/images/landing-page/yes.png" alt="Yes"> |
2222
| [Color Contrast](../common/accessibility#color-contrast) | <img src="https://cdn.syncfusion.com/content/images/landing-page/yes.png" alt="Yes"> |
2323
| [Mobile Device Support](../common/accessibility#mobile-device-support) | <img src="https://cdn.syncfusion.com/content/images/landing-page/yes.png" alt="Yes"> |
24-
| [Keyboard Navigation Support](../common/accessibility#keyboard-navigation-support) |<img src="https://cdn.syncfusion.com/content/images/landing-page/yes.png" alt="Yes"> |
24+
| [Keyboard Navigation Support](../common/accessibility#keyboard-navigation-support) | <img src="https://cdn.syncfusion.com/content/images/landing-page/yes.png" alt="Yes"> |
2525
| [Axe-core Accessibility Validation](../common/accessibility#ensuring-accessibility) | <img src="https://cdn.syncfusion.com/content/images/landing-page/yes.png" alt="Yes"> |
2626

2727
<style>
@@ -30,43 +30,43 @@ The accessibility compliance for the Blazor Sparkline component is outlined belo
3030
margin: 0.5em 0;
3131
}
3232
</style>
33+
3334
<div><img src="https://cdn.syncfusion.com/content/images/documentation/full.png" alt="Yes"> - All features of the component meet the requirement.</div>
3435

3536
<div><img src="https://cdn.syncfusion.com/content/images/documentation/partial.png" alt="Intermediate"> - Some features of the component do not meet the requirement.</div>
3637

3738
<div><img src="https://cdn.syncfusion.com/content/images/documentation/not-supported.png" alt="No"> - The component does not meet the requirement.</div>
3839

3940

40-
## WAI-ARIA attributes
41+
## WAI-ARIA Attributes
4142

42-
The Blazor Sparkline component followed the [WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/alert/) patterns to meet the accessibility. The following ARIA attributes are used in the Blazor Sparkline component:
43+
The component follows [WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/patterns/alert/) patterns for accessibility. The following ARIA attributes are used:
4344

4445
* img (role)
4546
* region (role)
4647
* aria-label (attribute)
4748
* aria-hidden (attribute)
4849
* aria-pressed (attribute)
4950

50-
## Keyboard interaction
51+
## Keyboard Interaction
5152

52-
The Blazor Sparkline component followed the [keyboard interaction](https://www.w3.org/WAI/ARIA/apg/patterns/alert/#keyboardinteraction) guideline, making it easy for people who use assistive technologies (AT) and those who completely rely on keyboard navigation. The following keyboard shortcuts are supported by the Blazor Sparkline component.
53+
The component supports [keyboard interaction](https://www.w3.org/WAI/ARIA/apg/patterns/alert/#keyboardinteraction) guidelines, making it accessible for users relying on assistive technologies (AT) or keyboard navigation. Supported keyboard shortcuts:
5354

5455
| Windows | Mac | Description |
5556
| --- | --- | --- |
56-
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Moves the focus to the next element in the Sparkline. |
57-
| <kbd>Shift + Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> | Moves the focus to the previous element in the Sparkline. |
58-
| <kbd>↓</kbd> | <kbd>↓</kbd> | Moves the focus to the data point right side from the selected point. |
59-
| <kbd>↑</kbd> | <kbd>↑</kbd> | Moves the focus to the data point right side from the selected point. |
60-
| <kbd>ESC</kbd> | <kbd>ESC</kbd> | Cancel the tooltip for the data point. |
57+
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Moves focus to the next element in the Sparkline. |
58+
| <kbd>Shift + Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> | Moves focus to the previous element in the Sparkline. |
59+
| <kbd>↓</kbd> | <kbd>↓</kbd> | Moves focus to the data point right side from the selected point. |
60+
| <kbd>↑</kbd> | <kbd>↑</kbd> | Moves focus to the data point right side from the selected point. |
61+
| <kbd>ESC</kbd> | <kbd>ESC</kbd> | Cancels the tooltip for the data point. |
6162
| <kbd>Ctrl + P</kbd> | <kbd>⌘</kbd> + <kbd>P</kbd> | Prints the Sparkline. |
6263

63-
## Ensuring accessibility
64-
65-
The Blazor Sparkline component's accessibility levels are ensured through an [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) with playwright tests.
64+
## Ensuring Accessibility
6665

67-
The accessibility compliance of the Blazor Sparkline component is shown in the following sample. Open the [sample](https://blazor.syncfusion.com/accessibility/sparkline) in a new window to evaluate the accessibility of the Blazor Sparkline component with accessibility tools.
66+
Accessibility is validated using [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) with Playwright tests.
6867

68+
Evaluate accessibility in the Blazor Sparkline component by opening the [sample](https://blazor.syncfusion.com/accessibility/sparkline) in a new window and using accessibility tools.
6969

70-
## See also
70+
## See Also
7171

72-
* [Accessibility in Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components](https://blazor.syncfusion.com/documentation/common/accessibility)
72+
* [Accessibility in Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components](https://blazor.syncfusion.com/documentation/common/accessibility)

blazor/sparkline/appearance.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,57 @@
11
---
22
layout: post
33
title: Appearance in Blazor Sparkline Component | Syncfusion
4-
description: Checkout and learn here all about appearance in Syncfusion Blazor Sparkline component and much more.
4+
description: Check out and learn here all about appearance customization in the Syncfusion Blazor Sparkline component.
55
platform: Blazor
66
control: Sparkline Charts
77
documentation: ug
88
---
99

1010
# Appearance in Blazor Sparkline Component
1111

12-
The rendering direction, padding, border, and the background appearance of the Sparkline can all be customized.
12+
The rendering direction, padding, border, and background appearance of the Sparkline can be customized.
1313

14-
## Right-to-left (RTL)
14+
## Right-to-Left (RTL)
1515

16-
The Sparkline supports the right-to-left (RTL) rendering that can be enabled by setting the [EnableRtl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SfSparkline-1.html#Syncfusion_Blazor_Charts_SfSparkline_1_EnableRtl) property to **true**.
16+
Right-to-left (RTL) rendering is supported and can be enabled by setting the [EnableRtl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SfSparkline-1.html#Syncfusion_Blazor_Charts_SfSparkline_1_EnableRtl) property to **true**.
1717

1818
```cshtml
19+
1920
@using Syncfusion.Blazor.Charts
2021
2122
<SfSparkline DataSource="new double[]{ 300.00, 600.00, 400.21, 100.20, 300.70, 200.04, 500.00 }" Height="200px" Width="350px" Format="c2" EnableRtl="true">
2223
<SparklineDataLabelSettings Visible="new List<VisibleType> { VisibleType.All }" EdgeLabelMode="EdgeLabelMode.Shift"></SparklineDataLabelSettings>
2324
<SparklinePadding Top="25"></SparklinePadding>
2425
</SfSparkline>
26+
2527
```
2628

2729
![Right to Left in Blazor Sparkline Chart](images/Appearance/blazor-sparkline-right-to-left.png)
2830

2931
## Border
3032

31-
The border can be enabled and customized by specifying the [Color](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.BorderSettings.html#Syncfusion_Blazor_Charts_BorderSettings_Color) and the [Width](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.BorderSettings.html#Syncfusion_Blazor_Charts_BorderSettings_Width) properties of the [SparklineContainerAreaBorder](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.Charts.SparklineContainerAreaBorder.html).
33+
The border can be enabled and customized by specifying the [Color](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.BorderSettings.html#Syncfusion_Blazor_Charts_BorderSettings_Color) and [Width](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.BorderSettings.html#Syncfusion_Blazor_Charts_BorderSettings_Width) properties of [SparklineContainerAreaBorder](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.Charts.SparklineContainerAreaBorder.html).
3234

3335
```cshtml
36+
3437
@using Syncfusion.Blazor.Charts
3538
3639
<SfSparkline DataSource="new int[]{ 3, 6, 4, 1, 3, 2, 5 }" Type="SparklineType.Area" Height="200px" Width="350px" Fill="#b2cfff" LineWidth="1">
3740
<SparklineContainerArea>
3841
<SparklineContainerAreaBorder Color="#033e96" Width="1"></SparklineContainerAreaBorder>
3942
</SparklineContainerArea>
4043
</SfSparkline>
44+
4145
```
4246

4347
![Blazor Sparkline Chart with Border](images/Appearance/blazor-sparkline-with-border.png)
4448

4549
## Padding
4650

47-
The Sparkline supports padding between the container and the component using the [SparklinePadding](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SparklinePadding.html). The code example in the following shows the Sparkline Chart with overall padding set to 20.
51+
Padding between the container and the component is supported using [SparklinePadding](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SparklinePadding.html). The following example shows the Sparkline Chart with overall padding set to 20.
4852

4953
```cshtml
54+
5055
@using Syncfusion.Blazor.Charts
5156
5257
<SfSparkline DataSource="new int[]{ 3, 6, 4, 1, 3, 2, 5 }" Type="SparklineType.Area" Height="200px" Width="350px" Fill="#b2cfff" LineWidth="1">
@@ -56,15 +61,17 @@ The Sparkline supports padding between the container and the component using the
5661
<SparklineBorder Color="#033e96" Width="1"></SparklineBorder>
5762
<SparklinePadding Left="20" Right="20" Bottom="20" Top="20"></SparklinePadding>
5863
</SfSparkline>
64+
5965
```
6066

6167
![Blazor Sparkline Chart with Padding](images/Appearance/blazor-sparkline-with-padding.png)
6268

6369
## Background
6470

65-
The background color of the Sparkline area can be changed using the [Background](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SparklineContainerArea.html#Syncfusion_Blazor_Charts_SparklineContainerArea_Background) property of the [SparklineContainerArea](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SparklineContainerArea.html). By default, the Sparkline background color is **Transparent**.
71+
The background color of the Sparkline area can be changed using the [Background](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SparklineContainerArea.html#Syncfusion_Blazor_Charts_SparklineContainerArea_Background) property of [SparklineContainerArea](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SparklineContainerArea.html). By default, the background color is **Transparent**.
6672

6773
```cshtml
74+
6875
@using Syncfusion.Blazor.Charts
6976
7077
<SfSparkline DataSource="new int[]{ 3, 6, 4, 1, 3, 2, 5 }" Type="SparklineType.Area" Height="200px" Width="350px" Fill="#b2cfff" LineWidth="1">
@@ -75,6 +82,7 @@ The background color of the Sparkline area can be changed using the [Background]
7582
<SparklineBorder Color="#033e96" Width="1"></SparklineBorder>
7683
<SparklinePadding Left="20" Right="20" Bottom="20" Top="20"></SparklinePadding>
7784
</SfSparkline>
85+
7886
```
7987

8088
![Blazor Sparkline Chart with Custom Background](images/Appearance/blazor-sparkline-custom-background.png)

0 commit comments

Comments
 (0)