link chartjs javascript to component