how to put dynamic variable name into chart value attribute?

for example,
{view: “chart”, type:“bar”, data: data, value: “#variableName#”}

as a result, variableName could be assigned in js like: variableName = “result”;

ok, I just did a test, a concatenate String will do the trick

Hello,

value can be defined as a function:

...
value: function(obj){
   return obj[variableName];
}
...