Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mexico Waste Data 2018 (Log Scale/binned)

Public visualization

Viewing a saved revision (read-only)

0708ab1327fb4fb18edef8c093d91e09

Mexico Waste Data 2018 (Log Scale/binned)

0 stars1🌍 Public
AAndres de la Garza
Last edited Mar 24, 2021
Created on Mar 24, 2021

This example shows monthly household waste totals in Mexico for 2018, binned by month and displayed as a bar chart with a log-scaled y-axis. The visualization aggregates raw date-stamped waste records into a histogram using D3’s `bin` and `sum` functions, then renders the resulting bins as SVG rectangles via React. The x-axis uses a time scale (`scaleTime`) with formatted month-day-year ticks, while the y-axis uses a linear scale (`scaleLinear`) displaying kilo values. The code builds custom `AxisBottom` and `AxisLeft` components and includes a native SVG `<title>` tooltip on each bar. Data is loaded as CSV through D3’s `csv` method.

AI-generated description

Scatter Plot with time series data. All date and time data needs to follow (ISO 8601) time and date formatting for proper plotting. [https://en.wikipedia.org/wiki/ISO_8601].