Major Crimes in Boston
This example visualizes major crimes in Boston from a city dataset, using a bar chart where each bar represents a crime type and its length corresponds to the number of incidents. The bars are color-coded by year, and hovering reveals a tooltip with the crime name and exact count. Built with Vega-Lite and rendered via the `vega-lite-api`, it loads data from a CSV URL using D3’s `csv` method, then applies custom axis styling and tooltip handling from `vega-tooltip`.
AI-generated descriptionThe data shown here comes from Boston Crimes Dataset
This chart meant to show the "Major Crimes in Boston". The color denotes the number of occurrences of that crime in that particular year. The name of the crime and the number of occurrences are shown on the tooltip as well when you hover over the chart.