Fork of Fork of Project Data Science
This visualization presents housing data from Hanoi, combining a scatter plot of price per square meter against distance to hospital with a bar chart of house type counts. An interval selection on the scatter plot’s x-axis filters both views by price, while a point selection on the bar chart’s color encoding filters the scatter plot by house type. Built with Vega-Lite API and d3.v7, it uses `vl.selectInterval` and `vl.selectPoint` for linked interactions. The custom color scale maps six house types, with point size encoding bedroom count. Data is loaded asynchronously from a GitHub CSV.
AI-generated descriptionI try to use d3.js a very powerful and simple library for interactive visualization
In this viz, above is the scatter plot to show the relationship between area(m2) and price per m2. the below is the barplot of the number of each house type
We can use the interval select in scatter plot to select the interval(price per m2) and can click the mouse to select the type of house to view in the bar plot