JS Charts - Using CMS data

I want my CMS categories to make up the series data for a JS chart on a Template page. Is there a way to integrate the CMS in this way?

I want my labels to be for each of my CMS category names. Has anyone found a work around or another way of having a JavaScript chart populate using CMS item data?