Skip to content

Commit aff66be

Browse files
authored
Merge pull request #111 from ChartsCSS/release/1.1.0
Version 1.1.0
2 parents a032a1c + b8ccf8c commit aff66be

12 files changed

+31
-21
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
Visualization help end-users understand data. **Charts.css** help frontend developers turn data into beautiful charts and graphs using simple **CSS classes**.
1212

13-
No dependencies. 72kb file size. Less than 6kb gzipped file size!
13+
No dependencies. 76kb minified size. 7kb gzipped file size!
1414

1515
## Documentation
1616

dist/charts.css

+9-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/charts.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/charts.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "charts.css",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Open source CSS framework for data visualization.",
55
"author": "Rami Yushuvaev",
66
"homepage": "https://ChartsCSS.org/",

src/charts.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Charts.css v1.0.1 (https://ChartsCSS.org/)
2+
* Charts.css v1.1.0 (https://ChartsCSS.org/)
33
* Copyright 2020 Rami Yushuvaev
44
* Licensed under MIT
55
*/

src/charts/_area.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
justify-content: space-between;
1212
align-items: stretch;
1313
width: 100%;
14-
aspect-ratio: 21/9;
14+
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, 21 / 9);
1515

1616
tr {
1717
position: relative;

src/charts/_bar.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
justify-content: space-between;
1212
align-items: stretch;
1313
width: 100%;
14-
aspect-ratio: none;
14+
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, auto);
1515

1616
tr {
1717
position: relative;

src/charts/_column.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
justify-content: space-between;
1212
align-items: stretch;
1313
width: 100%;
14-
aspect-ratio: 21/9;
14+
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, 21 / 9);
1515

1616
tr {
1717
position: relative;

src/charts/_line.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
justify-content: space-between;
1313
align-items: stretch;
1414
width: 100%;
15-
aspect-ratio: 21/9;
15+
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, 21 / 9);
1616

1717
tr {
1818
position: relative;

src/general/_properties.scss

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ $color-vars: color, chart-bg-color;
1616
}
1717
}
1818

19+
// Chart Aspect Ratio
20+
@property --#{ $variable-prefix }aspect-ratio {
21+
@include at-property( "<ratio>", auto, true );
22+
}
23+
1924
// Labels
2025
@property --#{ $variable-prefix }labels-size {
2126
@include at-property( "<length>", 0, true );

0 commit comments

Comments
 (0)