Project Data Science
This visualization combines a scatter plot and a bar chart to explore Hanoi real estate data. The scatter plot shows price per square meter against distance to hospital, with point size encoding number of bedrooms; the bar chart displays counts of house types. Users can brush an interval along the x-axis of the scatter plot to filter the bar chart, or click a histogram bar to select a house type, which highlights matching points. Built using D3.js v7 and the Vega-Lite API, it loads CSV data from a GitHub repository and renders interactive selections via `vl.selectInterval()` and `vl.selectPoint()`.
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