Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Quiero que el eje x del gráfico de líneas de Google cambie después de 1000 datos

Quiero que el eje x del gráfico de líneas de Google se desplace después de 1000 datos. Como soy un principiante en javascript, pude hacer esto. Usaré este código para leer el sensor en raspberry pi.

 <script> google.charts.load("current", { packages: ["corechart", "line"] }); google.charts.setOnLoadCallback(drawChart); function drawChart() { let data = google.visualization.arrayToDataTable([ ["Year", "CPU Usage"], [0, 0], ]); let options = { width: 1000, height: 500, legend: "top", }; let chart = new google.visualization.LineChart(document.getElementById("chart_div")); chart.draw(data, options); let index = 0; setInterval(function () { var jsonData = $.ajax({ type: "GET", dataType: "json", url: "HTTP://192.168.1.7:8000/", async: false, }).responseJSON; let random_1 = jsonData["d7s_si"]; data.addRow([index, random_1]); chart.draw(data, options); index++; }, 100); } </script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!