CFChart "URL" option behaves different from CF

In the process of shifting an application from CF to Lucee, I stumbled on this:

In Coldfusion, the CFChart “URL” parameter could be filled with an URL but also with a Javascript function call. I used that to fill a form on the page with the current values and send the page again, to display more details, like this:

Lucee always appends the current values to the URL, like this:

Of course this is no longer valid Javascript code so it won’t run.

Can anyone think of a workaround? (except using other chart engines altogether?)