Chart JS functions improvements.