Skip to main content
Public

Share visualization

Loading preview…

3D Bar Chart using D3.js

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

3D Bar Chart using D3.js

60
Aavinash021997
Last edited Mar 11, 2022
Created on Mar 11, 2022

This example visualizes car manufacturer sales data for the first six months of the year as a 3D bar chart, with each manufacturer represented by a row of color-coded bars for January through June. The visualization uses the d3-x3d library to render the scene in X3DOM, combining D3.js v5 for data loading and scaling with the d3-3d module for three-dimensional positioning. Data is parsed from a CSV file fetched via D3’s `csv` function, and the chart is created using `d3.x3d.chart.barChartMultiSeries()` attached to a DOM element. The bars are drawn in a perspective view, highlighting monthly sales comparisons across multiple manufacturers.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed