Multiple Variables in Custom Widget

Multiple Variables in Custom Widget

Hello everyone! I'm trying to build a custom widget (just for extra information, it's a graph whose data points will derive from a calculation involving data from multiple variables of the same device bucket) and i'm having trouble extracting data from multiple variables using the "data" attribute from the custom widget api. When it's only one variable it works fine but when more are added it stops working...

I'm new to TagoIo so I would be pleased if you could help me with this problem and explain how exactly does this "data" attribute work and the methods available for interacting with it. Any documentation on the matter and related forum posts are welcome! If needed, I can provide snnipets of the code i'm currently testing.

Thank you!