Skip to main content
Public

Share visualization

Loading preview…

React-Select Interactive Menu | Number of HIV New Case

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

React-Select Interactive Menu | Number of HIV New Case

1
PPichayut Liamthong
Last edited Oct 7, 2020
Created on Oct 6, 2020

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

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.

MIT Licensed