I have a list of sponsors (and their logos). I would like to set the size of their logo based on their contribution form our data. Is is possible to set an image or column size from data dynamically?
sure you can use image size dynamicly (width - height - alt)
As @s.alpaslan explains, this can be done using dynamic attributes:
Cool, not sure why I missed that. I managed to come up with a number by dividing the sponsor value by the highest sponsor , can I display that as percentage in this field?
In the data picker for the dynamic width select [Template], select your dynamic value and add %
after it:
WOW, this is soo cool. I never exactly knew how the variable was used until I saw this. I was able to set the value and then used a second variable with a tertiary operation to make sure none were below 40% and now my sponsors are weighted by contribution. I learned a lot here! This is deeply appreciated!
The variable was just an example how to use dynamic data. It’s not required if your data comes from a database query.
I understand. It did make it much easier to set the variable and then work from there. The fact that you used in your example it made me research it (I had never used one). Now I’m thinking of the places where it will come in handy.