by pspeter3 on 3/17/21, 6:07 PM with 141 comments
by lucb1e on 3/17/21, 8:49 PM
(
echo "<table class='charts-css bar show-labels show-heading'>"
echo "<caption>Size of Charts.css releases</caption>"
for version in $(curl -sS https://github.com/ChartsCSS/charts.css/releases | grep -o releases/tag/[0-9.]* | cut -d/ -f3 | tac); do
url=https://cdn.jsdelivr.net/npm/charts.css@$version/dist/charts.min.css
size=$(($(curl -sS "$url" | wc -c)/1024))
echo "<tr><th>v$version</th><td style='--size: calc($size/100)'>${size}KiB</td></tr>"
done
echo "</table><link rel=stylesheet href='$url'>"
) > size-chart.html
Result: https://jsfiddle.net/wcfez6oq/Since I couldn't easily find how large it was and wanted to try it out at the same time.
by gervwyk on 3/17/21, 8:22 PM
And even more. Really great that you van manipulate the elements as css. Most chart libs I’ve dealt with makes non-trivial customization impossible.
I’ll probably be building this in as Lowdefy blocks[1].
Just curious, did you consider just branding it as sparks.css / sprites.css or something? Going the spark / sprite route just sets the expectations a lot lower imo. Although congrats, you are really close to fully functional charts here! Really interested to see how far this can go.
[1] - https://lowdefy.com
by andy99 on 3/17/21, 7:18 PM
This version (OP's) is way more polished and almost certainly more widely useful. But mine had the features of (a) being generated from markdown and (b) defaulting to a list presentation of the data under different styles so the data remained accessible.
Having more charting options that don't require javascript to do simple things is a good thing.
[0] https://rbitr.github.io/ChartS.css/ [1] https://news.ycombinator.com/item?id=23270581
by tiffanyh on 3/17/21, 7:58 PM
I really wish this super small library named Chartist was more actively developed. It's only 10kb in size and generates SVG charts.
The huge benefit of SVG is that it's natively responsive and also prints extremely well. Wheres CSS doesn't
by ad404b8a372f2b9 on 3/17/21, 7:09 PM
by activatedgeek on 3/18/21, 6:35 AM
Having said that, I had to unfortunately abandon it because the ad-hoc control with Matplotlib [3] in Python is just infectious. Visual manipulations are far less easy to do in Vega. Being in JSON is also a restrictive though, because it is less interpretable by unstructured bots, where charts.css probably excels by design.
[1]: https://vega.github.io [2]: https://altair-viz.github.io [3]: https://matplotlib.org
by tambourine_man on 3/17/21, 8:14 PM
That said, it's a bit of a hack. The best kind of hack, the crazy smart kind, but still a hack. And as such, there are some visualization glitches here and there you wouldn't get with Canvas or SVG.
Still, such a cool idea. I love stretching technologies way beyond their original intent.
by open-source-ux on 3/17/21, 7:17 PM
Introduction to data visualisation:
https://gss.civilservice.gov.uk/policy-store/introduction-to...
by TrueDuality on 3/17/21, 7:45 PM
Are there any sample graphs using more than 5 data points? I'd also want to see how this scales to reasonable blog-post level graphs which will probably be in the 30+ point range (a data point every five minutes covering a 3 hour range, or hourly for a week, both seem like reasonable minimum data sizes to be able to render well).
I love the potential accessibility benefits of using data tables directly styled like this.
by privatemonkey on 3/18/21, 8:17 AM
Apart from different chart types, examples on how to rig data/image export will make this even more usefull.
I currently work on accessibility guidelines for visualisations at a national bureau of statistics. This came just at the right time for me as I'm exploring options to improve accessibility beyond the capabilities of libraries like highcharts, vega, charts.js etc. Don't hesitate to contact me. I'm very interested in the possibilities in this approach.
by brundolf on 3/17/21, 8:03 PM
by soperj on 3/17/21, 7:20 PM
by sandstrom on 3/17/21, 10:39 PM
Originally developed by Mozilla, its focus is on beautiful and accurate charts, and displaying data in a good way.
by neolog on 3/17/21, 8:02 PM
by numlock86 on 3/18/21, 5:28 AM
by Waterluvian on 3/17/21, 8:14 PM
by johnsonap on 3/17/21, 7:40 PM
by nt2h9uh238h on 3/17/21, 8:11 PM
2. Can this be made interactive, e.g. on mouse-over show exact numbers? Without interactivity, it is still kinda lame
by sakopov on 3/17/21, 10:39 PM
by crazypython on 3/17/21, 7:52 PM
Make your CSS fit your HTML. Don't make HTML fit your CSS. This framework uses semantic native tables properly.
by mothepro on 3/18/21, 1:46 AM
The functionality behind this and others are simple and allow the user to fully stylize however they'd like.
0: https://github.com/mothepro/lit-chart 1: https://mothepro.github.io/lit-chart/
by sceptically on 3/17/21, 7:39 PM
I will definitely keep an eye on it!
by nooyurrsdey on 3/17/21, 8:55 PM
Library looks small (not sure how many KB) and full features for a basic charts library.
by cachesking on 3/29/21, 5:17 AM
still a wip: //TODO: docs, tests and data.
by bennettfeely on 3/17/21, 9:07 PM
by larodi on 3/17/21, 9:37 PM
by videogreg93 on 3/18/21, 1:22 AM
by zuhayeer on 3/17/21, 7:57 PM
by nightcracker on 3/18/21, 9:42 AM
by tacone on 3/17/21, 7:39 PM
by edoceo on 3/18/21, 1:32 AM
I regret that I have but one upvote to give
by wilsonfiifi on 3/17/21, 8:22 PM
by nick_urban on 3/18/21, 12:14 AM
by jordache on 3/17/21, 9:26 PM
by AnonHP on 3/18/21, 3:20 AM
by owens99 on 3/18/21, 12:24 PM
by savanpatel on 3/17/21, 7:41 PM
If I missed something, can you point me to the right place in documentation? That's something that would make this useful.
by chovybizzass on 3/17/21, 6:12 PM
by d33lio on 3/17/21, 8:28 PM
by Someone1234 on 3/18/21, 12:21 AM
That's a non-starter for my usage unfortunately, as even degraded IE11 support is swing-able, but completely broken means we cannot use it. We're still seeing corporations and government agencies using IE11 on a regular basis.
Wikimedia claims 3.9% of their users are still IE11, we're closer to 10%, but we're also majority desktop rather than mobile users which is also really rare in 2020.