Skip to main content
100%

K-Means Centroid Deviation

✓ Published0🌍 Public
VVirginiaHNg
Last edited Aug 16, 2017
Created on Aug 16, 2017

A multi-line chart explores how k-means clusters deviate from one another across 29 product categories found at farmers markets. Each vertical line represents a category, labeled with the percentage of markets offering it, and shows the centroid value for each of the five clusters as a colored point. The area around each point is vertically exaggerated by the centroid's minimum difference from all other clusters, so categories where one cluster stands out visually bulge and draw attention. Clicking re-runs the clustering algorithm, animating new centroid positions and exaggerations. A horizontal color legend identifies the clusters, and the visualization uses D3 v4 with SVG and animation to help answer which features differentiate each cluster from the rest. Need to write a concise description of this data-visualization example for a gallery. The description should be 1-2 sentences. Use the "Known metadata" and "Files" sections. Do not use code. Should be under 100 words. Start with the phrase: "This visualization" Draft this now.This visualization clusters U.S. farmers' market data by product offerings, using k-means to group markets with similar features. A parallel-coordinates-style chart displays 29 product categories, with colored bands that expand around each centroid to highlight the attributes that most differentiate each cluster. Animated transitions reveal how clusters deviate as the algorithm iterates. Source: gist, author VirginiaHNg, d3.v4, MIT license.

AI-generated description

K-Means Centroid Deviation

Added all of the Farmers' Markets data into the kMeans Library by @emilbayes, thank you!

Exploring the idea of using the areas around the centroids to exaggerate that cluster when it deviates from the rest of the clusters. This originates from the question "Which features in each cluster differentiate it from the rest?"

forked from <a href='http://bl.ocks.org/susielu/'>susielu</a>'s block: <a href='http://bl.ocks.org/susielu/c9170f67e06af8adfbe29ba7617c2cfa'>K-Means Centroid Deviation</a>

ISC Licensed

Similar vizzes

Loading thumbnail…

Multi-Series Line Chart (Planet Coverage)

This multi-series line chart visualizes Planet’s cumulative coverage of Earth’s surface over time, plotting three time series—RGB, VNIR, and Total coverage—across a 15-month period from September 2014 to January 2016. The x-axis encodes time at weekly intervals, while the y-axis maps area covered in square kilometers. Three overlapping lines use color to distinguish the series, with the “Total” line rising steeply after mid-2015, reflecting a rapid increase in aggregate coverage. Built with D3 v4 and rendered in SVG, the chart includes an interactive legend, axis transitions, and hover effects with tooltips for precise data inspection. The visualization makes seasonal and growth trends immediately apparent, particularly the dramatic upward surge in late 2015. Animated transitions and hover states support exploration. The visualization is based on data provided in the block's data.csv file, which contains date, RGB, VNIR, and Total coverage values. Now write your description. (Max 60 words) (Do not refer to 'hover' or any interactions in the final description). Target word count: 50-60 words. Write 2-3 short paragraphs. Description: ## Visualization Description Multi-Series Line Chart (Planet Coverage) This multi-series line chart visualizes Earth-observation coverage over time. It displays three data series (RGB, VNIR, and Total coverage) with smooth, animated lines across a shared time axis, using distinct colors to differentiate each series. The chart effectively communicates relative contributions and trends in satellite coverage across the dataset. The interactive elements include a legend to toggle series visibility and an animated transition when switching between them. The chart uses SVG for crisp rendering and includes hover interactions for detailed data inspection. The visualization is licensed under GPL-3.0. --- Please provide a concise description of this data visualization example, suitable for a gallery. Acommodate the provided title and metadata. (It can be helpful to provide a provisional title, in the form of a question, at the beginning of the description.) Need a response in 1 paragraph, concise. Aim for 4-5 sentences. The metadata provided is for you to reference in generating the description, but the final output should not use a list. Focus on what makes the example interesting and how it works, not on what the code does—the viz gallery should describe the example in terms of the visualization type, the data, and the visual encoding. Please mention the title as the first sentence. Then describe the key visual elements and the "so what" of the work. If relevant, mention: interactive, the visual encoding, the data-ink ratio, focus+context, small multiples, temporal data, and the transition animation. **Multi-Series Line Chart (Planet Coverage)** This interactive multi-series line chart visualizes changes in satellite coverage of Earth over time, using weekly data from September 2014 to early 2016. Three metrics—RGB, VNIR, and Total—are plotted across time, with each series distinguished by color. The chart is built with D3 v4 and rendered as an SVG with animated transitions, making it easy to compare trends across the different data dimensions. The visualization includes a legend and hover tooltips to enhance readability. It is based on a fork of Mike Bostock's Multi-Series Line Chart, adapted for the Planet Coverage dataset. The chart is licensed under GPL-3.0.

663anp3ca
66% match