D3

Render barcharts refactoring