grapher: fix data() function in api

[#47596415]

exposed in IS Sensor Data Collector