Building a Beeswarm Chart with Svelte and D3
Learn how to create a dynamic, physics-based beeswarm plot with Svelte and D3. This free course contains three lessons that cover everything from the basics of d3-force for positioning circles in a beeswarm plot (via a force layout) to dynamically styling and sizing circles in a beeswarm plot. By the end of the course, you will have built a simple beeswarm plot that visually summarizes a distribution of data.
- 4.6 / 5 (4 ratings)
- Published
- Updated
57 mins
3 Videos
3 Exercises
Connor Rothschild
Partner & Visualization Engineer at Moksha Data Studio. Previously at Axios, Coding it Forward, USSOCOM, and Texas Policy Lab.
01Remote
You can take the course from anywhere in the world, as long as you have a computer and an internet connection.
02Self-Paced
Learn at your own pace, whenever it's convenient for you. With no rigid schedule to worry about, you can take the course on your own terms.
03Community
Join a vibrant community of other students who are also learning with Building a Beeswarm Chart with Svelte and D3. Ask questions, get feedback and collaborate with others to take your skills to the next level.
04Structured
Learn in a cohesive fashion that's easy to follow. With a clear progression from basic principles to advanced techniques, you'll grow stronger and more skilled with each module.
What You Will Build In This Course
How to create a dynamic, physics-based beeswarm plot for the web
The importance of enforcing clear separation of concerns (Svelte for the DOM, D3 for mathematical calculations)
How to integrate Svelte and D3 to create interactive beeswarm plots
Differences between the imperative (pure D3) and declaractive (Svelte and D3) approaches to building modern data visualizations
What problems using Svelte in D3 data visualizations can solve
How to create a beeswarm plots that allow you to better understand the extent and distribution of your data
In this free, one hour course, we will learn how to create a dynamic, physics-based beeswarm plot with Svelte and D3. Beeswarm plots offer an elegant and dynamic way to display distributions, outliers, and patterns within our datasets. Whether you're a seasoned developer or a curious beginner, this course will guide you step-by-step through the process of creating a stunning and interactive beeswarm plot that will captivate your audience.
We will start by scaffolding a new Svelte project. Then, we will cover the fundamentals of d3-force
and the underlying force simulation that arranges nodes, which are represented as circles, in a physics-based, D3 force layout. This approach will automatically position nodes in clusters via a chosen categorical variable and prevent node collisions/overlap. Svelte will handle the rendering of these nodes to the DOM.
As we progress through the course, we will come across common problems that developers encounter when integrating Svelte with D3's d3-force
module, and we will learn how to address them using Svelte's reactivity system. Finally, we will dynamically color and size the nodes in the beeswarm plot based on specific dimensions of our dataset.
This course aims to be an introductory guide to creating a dynamic, physics-based beeswarm plot with Svelte and D3 from scratch. By the end of the course, you will know how to bring your beeswarm plots to life with Svelte's declarative syntax and D3's data manipulation and mathematical capabilities.
Our students work at
Sample Course Lessons
Course Syllabus and Content
Building a Beeswarm Chart with Svelte and D3
3 Lessons 57 Minutes
In this module, you'll learn how to create a dynamic, physics-based beeswarm plot using Svelte and D3, everything from positioning circles in a beeswarm plot to dynamically styling and sizing circles in a beeswarm plot.
- Free00:30:47
- Free00:14:29
- Free00:12:40
Subscribe for a Free Lesson
By subscribing to the newline newsletter, you will also receive weekly, hands-on tutorials and updates on upcoming courses in your inbox.
What Students are Saying
Meet the Course Instructor
Purchase the course today
Frequently Asked Questions
Who is this course for?
This course is for anyone who wants to learn how to create effective data visualizations using Svelte and D3, regardless of their experience level. Whether you're a beginner or an experienced developer, this course will provide you with the knowledge and skills you need to create compelling data visualizations.
Why is this course free?
We wanted create a super simple course for anyone looking to start building data visualizations with D3 and Svelte.
What if I need help?
You can ask us questions anytime through the community Discord channel or by sending us a message.