by stared · 13y ago · 0 comments
For everything else (unless having a similar structure to elements), it's awful, misleading and pointless. If I see such I am always wondering, is it: a tasteless designer, wannabe data scientist who know no other visualizations, or a science ignorant having no clue why Mendeleev's table is structured in that particular way, or a salesman wanting to give it extra legit and make it sound more fundamental.
Just please, don't.
Hint: just group things, in their own structure.
For instance, I'd expect "head" and "body" to be in one period, and "thead" and "tbody" in the same groups of a different period. That could put "table" in the same group as "html", with them both being "container" periods. (with "iframe" being in the same group as "html"/"table"?) "fieldset" looks like it should fit in there somewhere also, possibly with "legend" being an equivalent to "title".
Then you'd have periods like "block elements" and "inline elements", with e.g. "blockquote" and "q" being in the same group for each. Ditto "div" and "span" - which I think should be in the same group ("overly generic elements"?), not in the same period as the author has them.
Similarly, "dl", "ul" and "ol" are 3 list periods, with "dd", "li" and ... "li" in the next group - where "li" being a repeated element is an interesting bit of information you could extract from such a table.
Note that I missed "dt" in the list elements periods above, but then there's a similarity between the "dl", "dt", "dd" period, and a possible "tr", "th", "td" period.
It pretty well falls along the lines of what I once wrote about- that HTML should be split into multiple, mutually exclusive sub-languages- with guarded sections of code that does not permit tags from any other groups to be interpreted as actual tags, as enforced by the browser. If browsers had this ability: to whitelist certain tags, imagine how many XSS attacks we could avoid, by having a special container in which script and style tags (and any other tags or attributes that cause the evaluation of code) strictly do not and cannot work.
OH well.
(note that the word "periodic" is used correctly, and the structure of the table winds up not looking like the periodic table of the elements)
In either case, no reason to be negative. If you don't like it, don't use it. If you are commenting to critique, no reason to be a jerk.
Beyond that simple case, there are loads of other bits of information encoded in the position. The image on the Wikipedia article gives a good overview of some of the trends.
Not everything needs to be pigeonholed into the "must make perfect sense" category.
I expect columns to have similar properties. Why are <span> and <script> in the same column?
What property is increasing as I go left to right and top to bottom?
Why are some columns taller than others?
But I am criticising visualizing using things such as periodic tables (were columns, rows and gaps have a particular meaning) for visualization for which they don't fit. Since it is not the first time I see such.
May point is not to use this particular visualization or not, but to make people thinking for a few seconds before starting visualizing: "Does the structure of this visualization fit the purpose? Or is it more like hammering nails with an iPhone?" (you can != you should).