Skip to content

Commit fd2e59c

Browse files
authored
Fix typos (ChartsCSS#44)
1 parent a8e6664 commit fd2e59c

File tree

20 files changed

+54
-54
lines changed

20 files changed

+54
-54
lines changed

src/charts/area.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Add a [heading](../components/heading/) to your chart using the `<caption>` tag.
6767

6868
## Data
6969

70-
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unit-less numbers, between `0` to `1`.
70+
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unitless numbers, between `0` to `1`.
7171

7272
```html{2}
7373
<tr>
@@ -83,7 +83,7 @@ Use the `--start` and `--end` variables to set the data. While `--end` is equiva
8383
</tr>
8484
```
8585

86-
To help the framwork identify the text, wrap the content with a `<span class="data">` tag.
86+
To help the framework identify the text, wrap the content with a `<span class="data">` tag.
8787

8888
```html{2}
8989
<tr>
@@ -148,7 +148,7 @@ To help the framwork identify the text, wrap the content with a `<span class="da
148148
</tr>
149149
```
150150

151-
As any other data item, they should have the relevalt structure.
151+
As any other data item, they should have the relevant structure.
152152

153153
```html{2-4}
154154
<tr>
@@ -660,7 +660,7 @@ Data axes are auto-generated based on the amount of columns (`<tr>` tags) in the
660660

661661
## Orientation
662662

663-
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LRT and RTL languages) and right-to-left (on TTM languages).
663+
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LTR and RTL languages) and right-to-left (on TTM languages).
664664

665665
### Reverse
666666

src/charts/bar.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Add a [heading](../components/heading/) to your chart using the `<caption>` tag.
6868

6969
## Data
7070

71-
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unit-less numbers, between `0` to `1`.
71+
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unitless numbers, between `0` to `1`.
7272

7373
```html{2}
7474
<tr>
@@ -84,7 +84,7 @@ Use the `--size` variable to set the data.
8484
</tr>
8585
```
8686

87-
To help the framwork identify the text, wrap the content with a `<span class="data">` tag.
87+
To help the framework identify the text, wrap the content with a `<span class="data">` tag.
8888

8989
```html{2}
9090
<tr>
@@ -149,7 +149,7 @@ To help the framwork identify the text, wrap the content with a `<span class="da
149149
</tr>
150150
```
151151

152-
As any other data item, they should have the relevalt structure.
152+
As any other data item, they should have the relevant structure.
153153

154154
```html{2-4}
155155
<tr>
@@ -925,7 +925,7 @@ To add space between data items use the `.datasets-spacing-*` class.
925925

926926
## Orientation
927927

928-
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LRT and RTL languages) and right-to-left (on TTM languages).
928+
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LTR and RTL languages) and right-to-left (on TTM languages).
929929

930930
### Reverse
931931

src/charts/column.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Add a [heading](../components/heading/) to your chart using the `<caption>` tag.
6767

6868
## Data
6969

70-
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unit-less numbers, between `0` to `1`.
70+
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unitless numbers, between `0` to `1`.
7171

7272
```html{2}
7373
<tr>
@@ -83,7 +83,7 @@ Use the `--size` variable to set the data.
8383
</tr>
8484
```
8585

86-
To help the framwork identify the text, wrap the content with a `<span class="data">` tag.
86+
To help the framework identify the text, wrap the content with a `<span class="data">` tag.
8787

8888
```html{2}
8989
<tr>
@@ -148,7 +148,7 @@ To help the framwork identify the text, wrap the content with a `<span class="da
148148
</tr>
149149
```
150150

151-
As any other data item, they should have the relevalt structure.
151+
As any other data item, they should have the relevant structure.
152152

153153
```html{2-4}
154154
<tr>
@@ -924,7 +924,7 @@ To add space between data items use the `.datasets-spacing-*` class.
924924

925925
## Orientation
926926

927-
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LRT and RTL languages) and right-to-left (on TTM languages).
927+
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LTR and RTL languages) and right-to-left (on TTM languages).
928928

929929
### Reverse
930930

src/charts/line.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Add a [heading](../components/heading/) to your chart using the `<caption>` tag.
6767

6868
## Data
6969

70-
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unit-less numbers, between `0` to `1`.
70+
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unitless numbers, between `0` to `1`.
7171

7272
```html{2}
7373
<tr>
@@ -83,7 +83,7 @@ Use the `--start` and `--end` variables to set the data. While `--end` is equiva
8383
</tr>
8484
```
8585

86-
To help the framwork identify the text, wrap the content with a `<span class="data">` tag.
86+
To help the framework identify the text, wrap the content with a `<span class="data">` tag.
8787

8888
```html{2}
8989
<tr>
@@ -155,7 +155,7 @@ To help the framwork identify the text, wrap the content with a `<span class="da
155155
</tr>
156156
```
157157

158-
As any other data item, they should have the relevalt structure.
158+
As any other data item, they should have the relevant structure.
159159

160160
```html{2-4}
161161
<tr>
@@ -691,7 +691,7 @@ Data axes are auto-generated based on the amount of columns (`<tr>` tags) in the
691691

692692
## Orientation
693693

694-
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LRT and RTL languages) and right-to-left (on TTM languages).
694+
Control the [chart orientation](../components/orientation/), or direction. The initial orientation is top-to-bottom (on LTR and RTL languages) and right-to-left (on TTM languages).
695695

696696
### Reverse
697697

src/charts/pie.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Add a [heading](../components/heading/) to your chart using the `<caption>` tag.
6767

6868
## Data
6969

70-
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unit-less numbers, between `0` to `1`.
70+
To transform HTML tables into charts, you need to provide [data](../components/data/). The chart requires unitless numbers, between `0` to `1`.
7171

7272
```html{2}
7373
<tr>
@@ -83,7 +83,7 @@ Use the `--start` and `--end` variables to set the data. While `--end` is equiva
8383
</tr>
8484
```
8585

86-
To help the framwork identify the text, wrap the content with a `<span class="data">` tag.
86+
To help the framework identify the text, wrap the content with a `<span class="data">` tag.
8787

8888
```html{2}
8989
<tr>

src/components/axes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ The axis system is a separate component and contains several parts. **By default
1212

1313
### Naming Conventions
1414

15-
One of the frameworks philosophical guidelines is to use direction-free class names. This way it can support all languages out-of-the-box, including left-to-right (LTR), right-to-left (RTL) and top-to-bottom (TTB) languages.
15+
One of the framework's philosophical guidelines is to use direction-free class names. This way it can support all languages out-of-the-box, including left-to-right (LTR), right-to-left (RTL) and top-to-bottom (TTB) languages.
1616

17-
Class like `.show-x-axes` and `.show-y-axes` were deprecated early-on in favor of `.show-primary-axis`, `.show-*-secondary-axes` and `.show-data-axes`.
17+
Class like `.show-x-axes` and `.show-y-axes` were deprecated early-on in favor of `.show-primary-axis`, `.show-*-secondary-axes` and `.show-data-axes`.
1818

1919
### Supported Axes
2020

@@ -28,7 +28,7 @@ The **Charts.css** axis system supports 3 types of axes:
2828

2929
The primary axis separates the labels from the data. To display the primary axis use the `.show-primary-axis` class.
3030

31-
Note that in a bar chart the primary axis is horizontal, while in a column chart it is vertical. If this changes the label's position (before of after), the primary axis will change its position too.
31+
Note that in a bar chart the primary axis is horizontal, while in a column chart it is vertical. If this changes the label's position (before or after), the primary axis will change its position too.
3232

3333
```html
3434
<table class="charts-css bar show-labels show-primary-axis">
@@ -250,7 +250,7 @@ To customize the primary axis use the following CSS variables:
250250

251251
## Add Secondary Axes
252252

253-
While the primary axis located between the labels and the data, the secondary axes located behind the chart data. The number of displayed axes can be controled using the `.show-*-secondary-axes` class. Replace the `*` in the class name, with any number `1`-`10`. For example, to display 4 secondary axes use the `.show-4-secondary-axes` class.
253+
While the primary axis is located between the labels and the data, the secondary axes are located behind the chart data. The number of displayed axes can be controlled using the `.show-*-secondary-axes` class. Replace the `*` in the class name, with any number `1`-`10`. For example, to display 4 secondary axes use the `.show-4-secondary-axes` class.
254254

255255
```html
256256
<table class="charts-css bar show-labels show-4-secondary-axes">

src/components/colors.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Chart colors help users distinguish between data items and datasets.
88

99
## Color System
1010

11-
The default color system consist of ten repeating colors. With the help of CSS variables you can override the default colors to create custom themes. More advanced users may choose to create entirely new color systems based on unique design requirements.
11+
The default color system consists of ten repeating colors. With the help of CSS variables you can override the default colors to create custom themes. More advanced users may choose to create entirely new color systems based on unique design requirements.
1212

1313
### Default Colors
1414

15-
The **Charts.css** color system consist of the following 10 colors:
15+
The **Charts.css** color system consists of the following 10 colors:
1616

1717
<ul class="charts-css legend legend-rectangle" style="border: 0; padding: 0; padding-inline-start: 2rem">
1818
<li> rgba(240 50 50 / 75%) </li>
@@ -124,7 +124,7 @@ The most basic way to change colors is to use the `--color` variable, applying i
124124

125125
## Change Specific Colors
126126

127-
To change specific element color, we need to apply the `--color` variable on a specific `<td>` tag. This way the inheritance rules only apply to that element.
127+
To change the color of a specific element, we need to apply the `--color` variable on a specific `<td>` tag. This way the inheritance rules only apply to that element.
128128

129129
```html{3}
130130
<tr>
@@ -212,7 +212,7 @@ To change specific element color, we need to apply the `--color` variable on a s
212212
</template>
213213
</code-example>
214214

215-
This method can be also be applied to all the `<td>` elements one by one.
215+
This method can also be applied to all the `<td>` elements one by one.
216216

217217
```html{3,7,11}
218218
<tr>
@@ -305,7 +305,7 @@ This method can be also be applied to all the `<td>` elements one by one.
305305
</template>
306306
</code-example>
307307

308-
**Note:** With small data tables it's acceptable to override colors for each `<td>` element but with large tables it's a not recommended. Keep reading to learn how to [change global colors](#change-global-colors).
308+
**Note:** With small data tables it's acceptable to override colors for each `<td>` element but with large tables it's not recommended. Keep reading to learn how to [change global colors](#change-global-colors).
309309

310310
## Change Global Colors
311311

src/components/data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Raw data without a visual representation has no meaning. As visual frameworks do
140140
</template>
141141
</code-example>
142142

143-
**Note:** The `--size` property can be manually changed for each data item. But the values have to be unit-less numbers, between `0` to `1`. This way all chart types are covered as we multiply size value by `100%` or by `360deg` (depending on the chart type).
143+
**Note:** The `--size` property can be manually changed for each data item. But the values have to be unitless numbers, between `0` to `1`. This way all chart types are covered as we multiply size value by `100%` or by `360deg` (depending on the chart type).
144144

145145
## Raw data is not really required
146146

@@ -280,7 +280,7 @@ The example above presents a significant problem. The solution is to add data to
280280

281281
## Show Data on Hover
282282

283-
Another good practice is to hide the data, and show it when visitors are hover over it. This is done using the `.show-data-on-hover` class.
283+
Another good practice is to hide the data, and show it only when hovering over it. This is done by wrapping the data with `<span class="data">` tag and applying `.show-data-on-hover` class to the wrapper.
284284

285285
```html{1,7,10,13,16,19}
286286
<table class="charts-css column show-data-on-hover">
@@ -415,6 +415,6 @@ Some chart types require not only the `--size` variable but also the `--start` v
415415

416416
## Size Variable
417417

418-
All `--size` variables should always be a unit-less number between `0` to `1`. Why unit-less? Because you should be able to change chart types without changing the unit in all your variables.
418+
All `--size` variables should always be a unitless number between `0` to `1`. Why unitless? Because you should be able to change chart types without changing the unit in all your variables.
419419

420420
Rectangular charts use percentage as a unit of measurement while radial charts use degrees. To make it easier for users to switch between chart types, the framework deprecated units. Instead, it multiplies the `--size` by `100%` or by `360deg` depending on the chart type.

src/components/labels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ Lastly, play with the label text alignment. Use the following classes:
489489
* `labels-align-inline-center`
490490
* `labels-align-inline-end`
491491

492-
The alignment class use logical properties naming conventions to keep the chart flow-relative based on the page writing directions.
492+
The alignment class uses logical properties naming conventions to keep the chart flow-relative based on the page writing directions.
493493

494494
```html{1,13}
495495
<table class="charts-css column multiple show-labels labels-align-inline-start">

src/components/legend.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Chart legends display the labels of the datasets as they appear in the chart.
99

1010
## Legend Structure
1111

12-
The legend is a separate component with a separate HTML tag. You have the freedom to position the legend wherever you want. Just like any other HTML tag.
12+
The legend is a separate component with a separate HTML tag. You have the freedom to position the legend wherever you want. Just like any other HTML tag.
1313

14-
Note that currently legends required to use of `<ul>` with `<li>` or `<ol>` with `<li>` tags. In future versions, you will have the freedom to use any HTML tag.
14+
Note that currently legends require the use of `<ul>` with `<li>` or `<ol>` with `<li>` tags. In future versions, you will have the freedom to use any HTML tag.
1515

1616
## Legend Position
1717

@@ -109,7 +109,7 @@ Use the `.legend` class to style your chart legend.
109109

110110
## Legend Orientation
111111

112-
By default, legend dataset labels are vertically aligned and positioned beside the chart. To aligning legend dataset labels horizontally, use the `.legend-inline` class. This is usually used to position the legend above or below the chart.
112+
By default, legend dataset labels are vertically aligned and positioned beside the chart. To align legend dataset labels horizontally, use the `.legend-inline` class. This is usually used to position the legend above or below the chart.
113113

114114
```html
115115
<ul class="charts-css legend legend-inline">
@@ -657,7 +657,7 @@ Use the `.legend-line` class to display a line shaped label.
657657

658658
Change any aspect of the legend element using CSS. Simply target the CSS selector and apply your own style.
659659

660-
For example, lets change the text color, the background color and add a box-shadow:
660+
For example, let's change the text color, the background color and add a box-shadow:
661661

662662
```css
663663
.legend {

0 commit comments

Comments
 (0)