Massachusetts City Population by Burglary
This visualization displays the distribution of crime counts across Massachusetts communities, with each bar representing a town and colored segments showing the proportional contribution of different crime types. The data comes from a CSV file of unpivoted Massachusetts crime statistics, loaded via d3.csv. The visualization uses the vega-lite-api to build a stacked bar chart, aggregating the count field by community and crime type, with the y-axis normalized to show proportions. The chart is configured with custom axis styling for improved readability, and a tooltip handler provides interactive details on hover.
AI-generated descriptionA visualization constructed using the vega-lite-api.
Crime dataset is unpivot and reloaded in gist repository. This is used to visualize crime distribution in different community. try to use log scale in Y axis, but did not work out
Gist is from here