$('#units_temp').change(function () {
        NETDATA.setOption('temperature', $(this).prop('checked') ? 'celsius' : 'fahrenheit');
    });