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)

4538cb3f9e6d4b43a8446c5236d69d4a

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

A blank slate starting point showing the "Hello World" for the VizHub V3 Runtime Environment, which supports continuous hot reloading with interactive widgets.

https://vizhub.com/drbagwell/cfc6aaba08b54a598475e867bcc8fa21