It should be something like this
add_shortcode('shortcodename','executable_shortcode_func');
function executable_shortcode_func(){
$user_id = get_current_user_id();
//your code to fetch chart
}
Rest of the things you have to do by yourself
You can add this code in wp-admin > Plugins > editor > Select wplms customizer plugin > wplms-customizer.php