Create a dynamic graph based on URL Parameters

Yes you can. There are great charts plugins like Charts.js by @alex4

To learn how to pass info via url parameters that can be used to populate charts (together with page elements that draw their content from them and feed the plugin) may be helpful