Skip to content

Commit

Permalink
feat(pie): better legends on small screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Oct 18, 2023
1 parent 6d1f521 commit 576d216
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 26 deletions.
14 changes: 6 additions & 8 deletions _site/templates/css/examples/pie.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
}

.chaarts.pie tbody {
display: table-row;
border: 0;
display: flex;
flex-wrap: wrap;
}

.chaarts.pie tr {
display: table-cell;
align-items: center;
display: flex;
flex: 1 1 auto;
transition: opacity 0.3s var(--move);
}

Expand Down Expand Up @@ -94,18 +98,12 @@
max(0%, var(--lt-75, 0) * 50%) max(0%, var(--lt-75, 0) * 50%),
calc(50% - var(--pos-A) * var(--gt-75, 0)) calc(50% - var(--pos-B) * var(--gt-75, 0))
);
--mask: radial-gradient(
circle at center,
#ffff 0 calc((var(--radius) / 2) - 1px),
#0000 0
);
background: var(--color, currentcolor) var(--background);
block-size: var(--radius);
border-radius: 50%;
clip-path: var(--polygon);
content: "";
inline-size: var(--radius);
mask-image: var(--mask);
transform: translate3d(calc(-50% * var(--is-rtl, 1)), -50%, 0) rotate(var(--position)) scale(var(--zoom));
transition: transform 0.2s var(--move);
}
Expand Down
10 changes: 7 additions & 3 deletions dist/chaarts.css

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

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

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

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

Large diffs are not rendered by default.

Loading

0 comments on commit 576d216

Please sign in to comment.