# Using Data Visualization to Fight COVID-19

- Speaker: [Gil Fink](/wiki/speakers/gil-fink.md)
- Event: [Reversim Summit 2021](/wiki/years/2021.md)
- Video: https://www.youtube.com/watch?v=9K4ZulR_7Ew
- Transcript: [/transcripts/2021/57-9K4ZulR_7Ew.md](/transcripts/2021/57-9K4ZulR_7Ew.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Frontend](/wiki/topics/frontend.md), [Data Science](/wiki/topics/data-science.md), [Databases](/wiki/topics/databases.md), [Performance](/wiki/topics/performance.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker shares the story of developing a COVID-19 contact tracing and data visualization system for the Ministry of Health during the pandemic. The talk covers technical challenges of rendering massive datasets using D3.js combined with React and WebGL-based libraries. Through code examples and a system demonstration, the audience learns how to build performant, interactive data visualizations for complex epidemiological networks.

## Key points

- [0:12](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=12s) The project started at the beginning of the pandemic when the Ministry of Health needed a tool to trace infection chains.
- [4:15](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=255s) Data visualization translates raw tables and databases into clear visual formats like graphs, charts, and maps.
- [5:32](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=332s) D3.js is a powerful library that uses a fluent API to transform data and manipulate SVG surfaces for visualization.
- [12:02](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=722s) Integrating D3 with React requires separating concerns where React manages the DOM and D3 handles math and SVG rendering.
- [18:02](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=1082s) Rendering tens of thousands of daily infected cases using SVG causes performance bottlenecks in the browser.
- [21:02](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=1262s) Combining D3 with PixiJS and WebGL allows rendering large datasets efficiently on a canvas element.
- [26:02](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=1562s) The production system runs on a Python backend with a Neo4j graph database, updating hourly with epidemiological data.
- [31:02](https://www.youtube.com/watch?v=9K4ZulR_7Ew&t=1862s) The system features interactive components including hierarchical graphs, force graphs, bubble charts, maps, and dynamic filters.

## Takeaways

- Separate UI management from visualization logic when combining frameworks like React with D3.
- Switch from SVG to WebGL-based rendering via Pixi.js when handling large-scale data to maintain high browser performance.
- Use graph databases like Neo4j effectively for querying connected network data such as infection chains.

## Questions this talk answers

- How can you combine React and D3.js without conflicting DOM manipulation?
- What is the best way to render tens of thousands of data points in a browser without performance degradation?
- How do you structure a backend architecture to support complex graph queries and real-time data filtering?

## Technologies

JavaScript, React, D3.js, PixiJS, WebGL, SVG, Python, Neo4j

## Tags

d3.js, data visualization, frontend, graph database, performance optimization, react, webgl
