rendering chart on page