chart reads js object data structure in horizontal chart