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

114
Views
Access X and Y coordinate data using an array - CHART.js

In my project, I have X and Y coordinate motion that allows the car to move. I want to be able to put this data into an array because I want to move a steering wheel to see where the car is going. However, for this, I need to be able to refer to the previous and next data. Can anyone help?

tag5617.subscribe(function(message) {
  let X = document.getElementById('posX');
  X.innerHTML = message.x.toFixed(2);
  let Y = document.getElementById('posY');
  Y.innerHTML = message.y.toFixed(2);
  myChart.data.datasets[0].data.push({
    x: message.x.toFixed(2),
    y: message.y.toFixed(2)
  });
  myChart.update();
});
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!