Move graph code into get_sensor_data callback and add CSS