You either request the data with socket.io, or you put it in the template data when you render the page itself.
If it's in the page template itself, it is accessible on the client side via ajaxify.data
Chart.js you can get on the client side via
require(['Chart'], function (Chart) { ... });