D3 Fiddle
/** * A bar chart. Required data format: * [ { name : x-axis-bar-label, value : N }, ...] * * Sample use: * var bargraph = d3.select(\'#bargraph\')
Do this to append % to the y tick:
var yAxis = d3.svg.axis() .scale(chart.y) .orient('left') .ticks(5) .tickFormat(function(d){return d+ "%"});
working code here