Skip to main content
100%

Interactive with Dropdown Options | Number of HIV New Case

✓ Published1🌍 Public
PPichayut Liamthong
Last edited Sep 30, 2020
Created on Sep 29, 2020

The visualization displays the number of new HIV cases aggregated by district in Bangkok, using line and point layers for each selected district. Users toggle districts via a multi-select dropdown menu, which updates the filter expression and re-renders the chart. Built with React and the vega-lite-api, it registers Vega and Vega-Lite for rendering, and loads CSV data from the Bangkok Smart Monitoring System. The chart uses D3’s csv parser and Vega tooltip handler, with a custom config for axis styling.

AI-generated description

A 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).

Development: Users can choose which districts they want for the graph. It still has a bug where the render delay 1 step (will figure it out why). Also, in the future, the plan is to use Stylished Dropdown Menu that interact with user better.

MIT Licensed

Similar vizzes