Gist 7474904
✓ Published0🌍 Public
Aalanmclean
Last edited Nov 14, 2013
Created on Nov 14, 2013
This example shows a simple bar chart where each bar links to the D3.js website and changes color when a button is clicked. The chart is rendered with SVG, using d3.tsv to load data from a tab-separated file and d3.scale.linear to map values to bar widths. The color transition relies on CSS `transition` and the `classed` method to toggle a `.new-color` class on all rectangles. The README notes that this fill transition fails in Chrome when the target rect is inside an `<a>` tag with `xlink:href`.
AI-generated descriptionThe fill transition does not work in Chrome when the target of the transition is within an <a> tag with the xlink:href attribute set.