The code is specifying the type "gauge" below. This type *always* has a single data source, i.e. you can only pass in a single value at a time.

Please consider data sets with multiple values a legacy that will go away in the future. And even now, a dynamic number of data sourced is not supported.