Those gaps are antialiasing artifacts in most SVG implementations. You can avoid them either by setting a small negative inset so that the bars overlap, or by setting round: true on the scale so that the positions are rounded to the nearest pixel and drawn crisply.