Churn data based on binning and choosing a range of salaries
A churn dataset from Kaggle is presented as an interactive visualization of credit scores versus estimated salaries, where the salary axis is binned into 50 discrete intervals. The upper plot acts as a salary-range brush: dragging a selection interval across it filters the points rendered in the lower scatterplot, which uses opacity to highlight the selected salary band against all other data. The visualization is built with the vega-lite-api, vega, and vega-lite JavaScript libraries, with data loaded via d3.csv from a Gist.
AI-generated descriptionA visualization constructed using the vega-lite-api.
The data shown here comes from the Kaggle, via Gist.
I took help from https://observablehq.com/@uwdata/interaction?collection=@uwdata/visualization-curriculum.
You can select a range of salaries on the top graph to view that in the below graph. I have binned the salaries into 50 bins.