Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

DucPham_A2_Barchart

Public visualization

Viewing a saved revision (read-only)

a48855bbe2a7418392e6299c5e8afa95

DucPham_A2_Barchart

0 stars0🌍 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

A simple scatter plot with D3 showing the Penguins Dataset.

Challenge

  • Fork this viz
  • Modify it to show your data