Skip to main content
100%

Machine Learning Project - Histogram of Categories Refactored

✓ Published0🌍 Public
DDaniel Ribaudo
Last edited Dec 13, 2021
Created on Dec 13, 2021

This visualization compares category distributions from the Tsinghua-Tencent 100K dataset as horizontal bar charts, using Observable Plot’s `plot()` with `barX` marks and steel-blue reference lines for category averages. A dropdown menu filters results by dataset folder, while a file upload button lets users load a custom JSON file for side-by-side comparison. Bars are colored green or red depending on whether counts exceed the average, and the two charts render independently in separate scrollable containers using d3’s `group()` and `mean()` for data aggregation.

AI-generated description

This is a bar chart of the various categories in the Tsinghua-Tencent 100K dataset.

New functionality:

The data is broken into each one of its folders, plus an additional category containing all of the data (all). The different folders can be viewed via a select menu in the top left of the UI.

The user has the ability to upload a json file for comparison to the original annotations.json. This file can be uploaded via a button in the top right of the UI.

MIT Licensed

Similar vizzes