You can set a state machine doing the following: Put 17 controls, one for each temperature and one for all. Inside the case structure, wire one case for each temperature, bundling x and y arrays into a cluster, and then building an array (of 1 element). In the all case bundle each temperature and build an array of all. Put the array output into the graph... and it's done.
Hope this will feed your needs, and if you want an example... just ask