Skip to main content
Public

Share visualization

Loading preview…

Basketball Leagues by Count

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

Basketball Leagues by Count

2
JJosvin John
Last edited Sep 23, 2020
Created on Sep 17, 2020
Forked from Making a Bar Chart

This bar chart displays basketball leagues sorted by the number of games played, with each league assigned a distinct color. The visualization uses Vega-Lite API to encode league names on the x-axis and a count of games on the y-axis, with tooltips showing league and count values. It loads CSV data from a GitHub gist and customizes axis styling through a config object, disabling domain lines and adjusting tick and label colors. The chart renders responsively to the window size using SVG.

AI-generated description

The data shown here comes from Basketball Players Stats per Season dataset. This bar chart shows the various Basketball leagues sorted by the number of games played by each. Each Basketball league is denoted by a different color. This chart also demonstrates customization of D3 axes.

Comments

Sign in to join the discussion.

MIT Licensed