Skip to main content
Public

Share visualization

Loading preview…

Bar Chart with a Diverging Color Scale Using D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Bar Chart with a Diverging Color Scale Using D3

1
OOlha
Last edited Apr 19, 2022
Created on Mar 8, 2022

This bar chart visualizes evaluations of communication in a pull request from a large open-source project, showing two metrics—inclusiveness and constructiveness—across a five-point Likert scale from negative to positive. The visualization uses a diverging color scale with d3.schemePiYG to distinguish sentiment categories, while negative responses extend leftward from a central zero point. Data is aggregated from an external dataset into a diverging bar layout using D3 v7 scales and SVG rectangles, with a d3-legend color legend explaining the color encoding. The x-axis uses d3.axisBottom to display counts.

AI-generated description

Assignment 6 part B

Bar Chart with a Diverging Color Scale Using D3

Dataset - it is a part of the original dataset from the MAster's Project that I found suitable for this task: it is a evaluation of communication in one specific PR from one of the big open-source projects that I admire.

Questions:

Is this comment inclusive?

Is this comment constructive?

Metric:

  • negative
  • somewhat negative
  • neutral
  • somewhat positive
  • positive

I had issues with x axis scaling that I couldn't figure out for several days, so I added a simple chart and left some code commented to be able to get back to it a bit later.

Comments

Sign in to join the discussion.

MIT Licensed