{"version":"1.0","type":"rich","title":"Vega-Lite API Stack Sorting Struggle","description":"This visualization demonstrates a stacking order issue with the Vega-Lite API. It displays suicide rates by age group across years as stacked bar marks, where the color legend is correctly sorted by a custom age order, but the bar layering does not match that same sorted sequence. Using D3’s CSV loader for data ingestion, the code applies a viridis color scheme and attempts to set both color and order encodings with the same sort specification, revealing a mismatch in how Vega-Lite interprets these properties.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3d356439c24b4b41a4bb2fd51d1ac039?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}