creating a new component for chart