add d3 array methods and visual that calls from json file