{"version":"1.0","type":"rich","title":"CreateElementNS","description":"This example demonstrates how to create SVG elements programmatically using the native `createElementNS` API in plain JavaScript, producing a simple bar chart with red rectangles and corresponding labels. The visualization renders five bars of random widths, each paired with a text label reading \"Product No : 1\" through \"Product No : 5\". The code sets up an SVG canvas with a white background, then loops to generate each bar and label, assigning random widths via `Math.random()` and positioning them vertically in a grid-like layout. It relies on standard Document Object Model methods such as `setAttribute` and `append`, without any external libraries.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/045e2cba54ce4f75a154dd3366c43ebc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}