created array from charts api, rendering on client