D3.JS & Dimple Chart factory