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

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

Like what you read? Give Hector de Isidro a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.