Chart js works from the model