3 ms·
If CSS is disabled SVG works just as well. I don’t know where you got the idea that SVG doesn’t work without CSS (or JS, for that matter)
by thitcanh 6y ago
If CSS is disabled SVG works just as well. I don’t know where you got the idea that SVG doesn’t work without CSS (or JS, for that matter)
- ydant 6y agoI think you misunderstood the point. The way this library works is the data is embedded in a table, which then gets converted to a chart by CSS - so if the CSS is disabled, the data is just presented as a table of numbers. I'm not sure if SVG can be written so that it gracefully falls back like that. You could generate SVG from the table using JavaScript, of course, and just hide the table with JavaScript.
- thitcanh 6y ago1. Seeing a website without CSS is not really something people are concerned about. 2. I want a graph, not a table. SVG is self-contained so WYSIWYG, always. 3. If you want to show both a graph and a table, with Charts.css your markup would contain the same table twice.