Scatterplot with Voronoi
✓ Published0🌍 Public
TTennisVisuals
Last edited Feb 18, 2016
Created on Feb 15, 2016
This example visualizes tennis match data as an interactive scatterplot, plotting points per set against shots per set, with each point colored by set score and sized by points per game. The chart uses D3.v3 with SVG and animated transitions to update between per-set and per-game views, while a Voronoi overlay enables hover highlighting of data points. Users can filter by clicking legend items, zoom on selections, and highlight specific matches by searching for player names.
AI-generated descriptionreusable updating voroni scatterplot
Design based on original by NadiehBremer at Visual Cinnamon
See this block in production with Live Data
Find the Latest Code on GitHub
Features:
- Dynamic data transitions
- Highlighting of data points
- Zoom option for selections (Legend Clicks)
- Events are configurable as options such that external functions can be seamlessly integrated
- e.g. external tooltips can be configured for mouseover events
Accessors:
by default accessors with no parameters return current values
- chart.duration(transition-time) // duration of transitions
- chart.options(object) // for options that don't have accessors
- chart.width(width)
- chart.height(height)
- chart.data(data) // set data
- chart.update() // update chart
- chart.colors(object) // chart.colors({'group': 'color1', 'group': 'color2'})
- chart.highlight(identifier) // highlight datapoint (configurable in options)
operations on data held in chart instance
- chart.pop()
- chart.push(row) -or- chart.push([row, row])