Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or just use SVG?

I’d highly doubt there were browsers supporting these CSS hacks but not supporting SVG.



That's not close to the same complexity, is it?

With the HTML + CSS solution, all my program has to produce is a HTML table. Very easy.

With SVG my program has to create not just a data table, but the custom SVG code to paint the chart, down to each bar. I'm actually doing that on pc-kombo, https://www.pc-kombo.com/us/benchmark/games/cpu/compare?ids%... shows it, the image is SVG. But it's created with https://github.com/DannyBen/victor/, so my ruby code has to describe all the details of that image, including manually saying how each bar chart should look and where on the coordinate system the text goes. Even with the awesome victor library that wasn't all that easy.

Alternative is a JS library that produces the SVG code, but then it's exactly as complicated as with regular JS libraries, it just changes the output.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: