{"version":"1.0","type":"rich","title":"Legend Practice","description":"This example generates a custom legend that maps network node and edge types to specific colors for a COVID-19 contact tracing visualization. It uses D3.js (v5) to append SVG `circle` and `text` elements within an SVG container, iterating over a JavaScript `Map` of record types. The legend lists entries like \"COVID-19 Case\" and \"household__c,\" with colors defined programmatically. The code also sets the page background to black and loads libraries via UNPKG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7495741597d14b38a53709ad068f5018?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}