Skip to main content
100%

DucPham_A2_Barchart

✓ Published0🌍 Public
DDuc Pham
Last edited Feb 6, 2024
Created on Feb 6, 2024

This horizontal bar chart displays the total salary in USD for each job category in a dataset of data-related roles. It uses p5.js, specifically the `loadTable` function to fetch and parse a CSV file, and the `setup` and `draw` methods to render the canvas. The chart calculates and sums salaries per category, then maps salary values to bar widths, while drawing axes, tick marks, and category labels. The scale ranges from zero to the maximum total salary with intervals of 50,000, and each bar is labeled with its corresponding sum.

AI-generated description
MIT Licensed

Similar vizzes