Skip to content

Commit

Permalink
Merge pull request #111 from ChartsCSS/release/1.1.0
Browse files Browse the repository at this point in the history
Version 1.1.0
  • Loading branch information
ramiy authored Oct 18, 2023
2 parents a032a1c + b8ccf8c commit aff66be
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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

No dependencies. 72kb file size. Less than 6kb gzipped file size!
No dependencies. 76kb minified size. 7kb gzipped file size!

## Documentation

Expand Down
13 changes: 9 additions & 4 deletions dist/charts.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/charts.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/charts.min.css

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "charts.css",
"version": "1.0.1",
"version": "1.1.0",
"description": "Open source CSS framework for data visualization.",
"author": "Rami Yushuvaev",
"homepage": "https://ChartsCSS.org/",
Expand Down
2 changes: 1 addition & 1 deletion src/charts.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Charts.css v1.0.1 (https://ChartsCSS.org/)
* Charts.css v1.1.0 (https://ChartsCSS.org/)
* Copyright 2020 Rami Yushuvaev
* Licensed under MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion src/charts/_area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
justify-content: space-between;
align-items: stretch;
width: 100%;
aspect-ratio: 21/9;
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, 21 / 9);

tr {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/charts/_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
justify-content: space-between;
align-items: stretch;
width: 100%;
aspect-ratio: none;
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, auto);

tr {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/charts/_column.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
justify-content: space-between;
align-items: stretch;
width: 100%;
aspect-ratio: 21/9;
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, 21 / 9);

tr {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/charts/_line.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
justify-content: space-between;
align-items: stretch;
width: 100%;
aspect-ratio: 21/9;
aspect-ratio: var(--#{ $variable-prefix }aspect-ratio, 21 / 9);

tr {
position: relative;
Expand Down
5 changes: 5 additions & 0 deletions src/general/_properties.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ $color-vars: color, chart-bg-color;
}
}

// Chart Aspect Ratio
@property --#{ $variable-prefix }aspect-ratio {
@include at-property( "<ratio>", auto, true );
}

// Labels
@property --#{ $variable-prefix }labels-size {
@include at-property( "<length>", 0, true );
Expand Down

0 comments on commit aff66be

Please sign in to comment.