@aleksandra_budnik I had created a git repository for the example and the link is attached below.
When you run this code you will get an error as Cannot read property 'alignText' of undefined, here actually I’m trying to assign the text alignment dynamically, but getting error pls help me to fix this.
the variable “a” was replaced with the name “alignText” in my example code.
Now it’s not showing the error but if I try to print that value inside the cell it’s showing as undefined but the value what I assigned to the variable has to be displayed there.
Actually based on the metric what I’m choosing, I need to display the corresponding metric in the header of my table, where the header title remains same with changing the units alone.