Skip to main content
100%

Drug Ratings Date Histogram

✓ Published0🌍 Public
BBhojarajHG
Last edited Oct 23, 2019
Created on Oct 23, 2019

This visualization displays a date histogram of drug ratings, with each bar representing the total rating count for a specific time interval across the dataset. The example uses React to render SVG elements, with d3.scaleTime and d3.scaleLinear handling the x and y axes respectively. The d3.histogram function bins the data, while custom AxisBottom, AxisLeft, and Marks components generate the tick marks and rectangular bars. Data comes from the Drug Ratings Dataset CSV file, which is fetched using d3.csv and parsed with a row function that converts ratings to numbers and dates to JavaScript Date objects.

AI-generated description

A date histogram showing the sum total of Drug Ratings for each month.

Data from the Drug Ratings Dataset.

MIT Licensed

Similar vizzes