Skip to main content
100%

3D Bar Chart using D3.js

✓ Published0🌍 Public
PPrasun Pal
Last edited Dec 16, 2023
Created on Dec 16, 2023

This example displays a 3D bar chart of car manufacturer data for the first six months of a year, with each manufacturer represented as a series of bars along the X and Z axes. It uses the D3.js version 5 library in conjunction with the d3-3d extension and the d3-x3d bridge, which relies on the X3DOM library to render the interactive 3D scene in the browser. The code loads a CSV file via d3.csv, parses each row into a multi-series format, and then calls the d3.x3d.chart.barChartMultiSeries() function to draw the chart, setting the chart holder's height and width through attributes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes