{"version":"1.0","type":"rich","title":"text on new line","description":"This example demonstrates how to break a single string of text into multiple lines within an SVG using D3 version 6. It shows a fixed message containing newline markers (written as “/n”) that are split into separate `<tspan>` elements for rendering. The code uses `d3.select` to target the SVG container, binds the data array, and appends a `<text>` element with each line positioned via `dy` offsets. The rendering approach relies on SVG text and tspan elements, with styling applied through D3’s `.style` method.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/774a5625f25b4444bab0b80d51493f01?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}