This interactive line chart displays the number of new HIV cases per quarter in Bangkok, aggregated by district, with data sourced from the Bangkok Smart Monitoring System. A multi-select dropdown built with react-select lets users choose which districts to display, with four districts selected by default. The visualization uses vega-lite-api to layer line and circle marks, applying a dynamic filter expression that updates the chart when selections change, with styling customized via a configuration object.
AI-generated descriptionA visualization constructed using the vega-lite-api.
The data shown here comes from the Bangkok Smart Monitoring System. The line charts represents the number of new HIV cases aggregated by district (in Bangkok).
Using the react-select as the option menu to allow user to select which districts to show the result.
Comments
Sign in to join the discussion.