Is it just an issue of parameterizing variable names and a few other parameters? In other words, if you paste the spec from the ChartBuilder or the legacy dialogs, would you just need to change a variable name or two? If so, there is a way to do that with the basic spec and a list of names or other parameters.