[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1780613088288.jpg (61.26 KB, 1200x600, img_1780613079803_fp3pi6bo.jpg)ImgOps Exif Google Yandex

c53b5 No.1696

just stumbled on antoine villepreux's latest approach to making pie charts using only conic-gradient. it's completely semantic and avoids the usual js headache we all hate. anyone else tried using
attr()
to keep the data injection clean? wondering if this scales well for massive datasets.

article: https://css-tricks.com/another-stab-at-the-perfect-css-pie-chart-sans-javascript/

c53b5 No.1697

File: 1780614125420.jpg (171.4 KB, 1880x1253, img_1780614111890_x252stru.jpg)ImgOps Exif Google Yandex

using
attr()
for the actual percentage values is a nightmare because it only works for the content property right now. its fine for labels, but youll still need some way to pass the raw numbers into the conic-gradient stops.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">