-3

Charts are a pretty common thing on the Internet. So that made me wonder why there are still not some web standards for the charts?

I thought that it would be cool if we had some sort of built-in library that would create charts in your browser that would be the same all over the internet, just like <input type="text">, which looks the same almost everywhere.

3
  • good idea! but why stop at only one standard? d3-graph-gallery.com
    – Ewan
    May 3, 2021 at 12:14
  • Just google for "Javascript chart library", see what you get and then try to find a common ground for a standard among the results. I am pretty sure you end up at this XKCD.
    – Doc Brown
    May 3, 2021 at 15:57
  • For static graphs, generate SVG server-side. May 3, 2021 at 17:35

1 Answer 1

2

I think charts despite being very common are too specific for being a standard in a language.

There are really a lot of different ways to show charts, and it gets worse when you add interactivity.

In my opinion this belongs more in a package then in a standard.

To give an example why something that is used on lots of sites doesn’t make it a good standard by definition: there are a lot of pages with comments sections: should we also standardize those?

1
  • Thanks for the answer, I am not sure if they are too specific, the only difference that I usually see is labels and stylings. Most of the time you just need to pass some data. May 3, 2021 at 14:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.