Skip to main content
100%

lg - draw - custom shape

✓ Published0🌍 Public
NNPashaP
Last edited Dec 20, 2016
Created on Dec 20, 2016

Two small multiples illustrate the same legend layout rendered with default and custom icon shapes. The example uses the viz.js library’s `lg()` component on top of D3 v4, with an SVG output. The first chart draws the standard legend icons, while the second applies a custom `roundRect` drawing function that appends rounded rectangles with `rx` and `ry` attributes. The code sets the data to an array of browser names, adjusts inner padding, and positions the `<g>` groups via SVG transforms.

AI-generated description
gpl-3.0 Licensed

Similar vizzes