To me, usually, the number of years simply translates to “how long ago the applicant used that language/framework for the first time,” which doesn’t reflect proficiency or experience.
An opinionated guide to writing developer resumes in 2017
Arthur Camara
1.4K64

The image you’ve used is right, your explanation not.

IMHO Years of Experience means: how long you have been using this or that language/framework.

Experience n. 
3. knowledge or practical wisdom gained from what one has observed, lived through, or undergone