Hello!
It´s possible to reuse a binding or script transfrom for differents charts that only change a variable?
I´ve got multiple charts, all of them have same binding

and only change a custom property where I include the variable:
field_name = self.parent.custom.value

can be KWH_GEN, KWH_IT, KWH_RECT ...
If not possible is ok, but would be useful for future changes.
Cheers.
Explain a bit more of what the differences are between the different places you want the binding to apply. There are a number of different ways to accomplish what you're looking for I believe. I'm assuming you're looking to have to only maintain the binding in one place so that you don't have to worry about making sure changes are propagated across multiple charts/etc.
Yes, the binding is the same, but in different tabs i got a different custom property that I use as variable on the script transform-so shows a different chart...would like to know if I can somewow use a unique binding for all the charts and addapt it with the variables.
One option would be to move the transform into a project script. Then have your bindings simply call that script, with the appropriate custom variable.
Or if it's all the same underlying data, handle the transform at say the root container level, and then have your bindings just pull the data they need out of the resultant dataset, based on the custom variable.
1 Like
Ok, thanks @tgarrison this seem like a good option!