{"version":"1.0","type":"rich","title":"Treasure Chest","description":"This example demonstrates a JavaScript class called `TreasureChest` that models a collection of gold, silver, and bronze coins. It shows how to initialize the chest with default values, add coins of each type using chainable methods like `addGold`, `addSilver`, and `addBronze`, and retrieve a summary via `getLoot`. A static `getRandomLoot` method uses a private `#shuffle` function to assign random coin counts. The visualization itself is minimal, with all interaction occurring through the browser console, using native JavaScript class syntax and no external libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-e51dbbf66c0dee0bf55a9bcc33679605?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}