Constant variable in the graph is not updated

You are passing an array to the graph instead of a simple value. The topic tells the chart which line the value is for, and the value should be in msg.payload.