[Chartjs]-Referencing locally declared variable into an array for data for chartjs

1👍

Thanks to a comment from a certain user(who deleted it for some reason), I found that removing the quotes and directly referencing the model property in the data segment will do just what I need

 data:[
     ${foo.property} , //NOT '${foo.property}'
     3000
 ],

referencing a variable into the data segment still has that issue where the name of variable is what’s used rather than the assigned value

Leave a comment