Viewing a saved revision (read-only)
c782b10ef13345b6af15957ccc437659
Salary by Job Title and Country Dataset
This example visualizes the first record of a salary dataset from Kaggle, displaying a single employee's attributes—age, gender, education level, job title, experience, salary, country, race, and seniority—as a JSON object in a large monospaced `<pre>` block. The code loads the CSV file with a default import from `./data.csv`, converts numeric fields using unary `+` operators, and then uses `JSON.stringify` to format the data for display. The visualization relies entirely on DOM manipulation through `container.innerHTML`, with no additional charting libraries.
AI-generated descriptionThe Penguins Dataset, loaded and parsed as CSV.
Fork and modify this template to import your data to VizHub and export it for use in other vizzes! To do that:
- Fork this viz
- Clear out the README
- Update the README with details about your dataset (including original source)
- Replace
data.csvwith your own data - Replace the parsing logic in
index.jswith your own - Set the custom URL so you can import from it easily
Challenge
- Find 3 datasets on a topic you are interested in
- For each of those, fork this viz and replace the data
- Parse the quantitative attributes into numbers
- Update
README.mdto indicate the original data source