CFChart - allow "javascript:" in the url attribute

Would it be possible to get the url attribute enhanced to match the flexibility in ACF?

In ACF, you can call a javascript function from the url attribute in lieu of a strict http/https location. As a stripped down example:
‘cfchart format=“png”
title=“#Local_ChartTitle#”
height=“#Local_ChartHeight#”
width=“#Local_ChartWidth#”
style=“#Local_ChartStyle#”
url="javascript:jsRedirectFunction(’$ITEMLABEL$‘,’$SERIESLABEL$‘,’$VALUE$')"

We’ve used this ability in our applications to dynamically construct a url to redirect the user when clicking on an item in the chart. The constructed target url is generally different for each item. Think, a bar chart where each click on a bar would open a different screen.

you could just use chartJS.

There is a lot of under the hood custom functionality in the AFC version of CFchart.

The way to make this work like it did in AFC would be to query alll the data, then render it back to a canvas block for chartJS.

Understood. I’m migrating an application from ACF to Lucee and was looking to keep both a consistent code base and keep the rewrites to a minimum. This looks to be one area where rewriting things will be a bit higher priority.