require exports the chart function