writing-mode
This example demonstrates the behavior of the SVG `writing-mode` attribute, which rotates text vertically along the y-axis, and compares it with the `glyph-orientation-vertical` attribute for controlling glyph orientation. It shows two vertical text labels, one relying solely on `writing-mode` and the other adding `glyph-orientation-vertical`, set against reference lines and stroke-cap style comparisons. Built with D3 v4, the visualization uses chained SVG elements—`text`, `polyline`, and `line`—to illustrate how text rotation interacts with graphic primitives. The code appends these shapes to an SVG container, styling them via inline attributes and CSS classes. The example serves as a low-level reference for text layout and stroke rendering in SVG.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/35degrees/'>35degrees</a>'s block: <a href='http://bl.ocks.org/35degrees/696596b6cf8a7932884ad0ef72928f16'>text example</a>
forked from <a href='http://bl.ocks.org/35degrees/'>35degrees</a>'s block: <a href='http://bl.ocks.org/35degrees/8a2bcd867fccf7394c5c149e53b0d9e2'>transform, translate example</a>
forked from <a href='http://bl.ocks.org/35degrees/'>35degrees</a>'s block: <a href='http://bl.ocks.org/35degrees/e2fc6c90c9d38cc6ae19f6dda8759310'>transform, scale example</a>
forked from <a href='http://bl.ocks.org/35degrees/'>35degrees</a>'s block: <a href='http://bl.ocks.org/35degrees/87187327885c9f235217daa23e2f7a57'>transform, scale example</a>
forked from <a href='http://bl.ocks.org/35degrees/'>35degrees</a>'s block: <a href='http://bl.ocks.org/35degrees/4d951e9b64c4dd1ad021307864e8b124'>transform, scale example</a>
forked from <a href='http://bl.ocks.org/35degrees/'>35degrees</a>'s block: <a href='http://bl.ocks.org/35degrees/7e9397a80add2f981127f0461dca2e87'>textLength, spacingandglyphs example</a>
forked from <a href='http://bl.ocks.org/35degrees/'>35degrees</a>'s block: <a href='http://bl.ocks.org/35degrees/1096d5c4e2e2765fd169d4a3d34cd11a'>opacity vs. fill-opacity example</a>