Wrap Long Labels Bar Chart
✓ Published0🌍 Public
LLGBY4
Last edited Jun 21, 2017
Created on Jun 21, 2017
This example uses D3 v3 to create a horizontal bar chart with wrapped axis labels. It displays the number of issues per company from a tab-separated data file, with each bar’s frequency shown on hover via the d3-tip plugin. The chart applies an ordinal x-scale and linear y-scale, formatting the y-axis ticks as percentages. Long company names are automatically broken into multiple lines using a custom `wrap` function that checks text length against the bar width, and the SVG rendering includes styled axes, hover color changes, and a bold title.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed