Graph data (urgent)

Hi.
It is possible to modify the Line Graph function, to represent data of integer type.

Code in HTML

    <script>
        var output;
        var sensor_output;
        var sensor_output_array;
        var sensor_val;
        var voltaje
        var Rs;
        
function analogR(pin,element_id) {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function() {
        //document.getElementById(element_id).innerHTML = xmlhttp.responseText;
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            //alert(xmlhttp.responseText);
            //document.getElementById("javascript_response").innerHTML = "Javascript Response : "+xmlhttp.responseText;
            var obj = JSON.parse(xmlhttp.responseText);
            if(obj.success=="1"){
                 document.getElementById(element_id).innerHTML = "Pin Val = "+obj.value;
            }
            else{
                    document.getElementById(element_id).innerHTML = "Error = "+xmlhttp.responseText;
            }
        }
    };
    xmlhttp.open("GET",base_url+api_key+"/analogRead?pin="+pin+"&deviceName="+d_name,true);
    xmlhttp.send();
}

        function start(){
            analogR(A0,"hidden");
            sensor_output= document.getElementById("hidden").innerHTML;
            sensor_output_array = sensor_output.split("=");
            sensor_val=sensor_output_array[1];
            voltaje = sensor_val*(5.0/1023.0);
            Rs=1000*((5-voltaje)/voltaje);  **// VALUE TO REPRESENT**   
    document.getElementById("output3").innerHTML=Rs;
    document.getElementById("output2").innerHTML=voltaje;
    document.getElementById("output1").innerHTML=sensor_val;
    }