Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Accident Severity by Vehicle Type

Public visualization

Viewing a saved revision (read-only)

cd311ab04d61439fa3fd868d4bfcf605

Accident Severity by Vehicle Type

0 stars1🌍 Public
LLakshmi Keerthi
Last edited Apr 22, 2024
Created on Apr 18, 2024
Forked from Task8

This example shows a stacked bar chart of accident severity by vehicle type, with each bar segment representing a severity category. The chart uses Plotly.js to load a CSV file from GitHub, filter out incomplete rows, and aggregate counts into a pivot table. Plotly’s `newPlot` renders the data as stacked bars, with the x-axis displaying vehicle types and the y-axis showing accident counts. Hover interactions are enabled by default, allowing inspection of individual segments. The layout rotates x-axis labels by -45 degrees and adjusts margins for readability.

AI-generated description