0

I am trying to create a medical graph to display the heart rate. It will have the live data on the left part and the prediction forecast on the right. I will get both from the backend API, and I need now to show them as one line on the graph. I am using ReactJs and chart.JS. Look the picture below to understand better: (https://i.sstatic.net/qWd6H.jpg)tter:

I just tried to do the regression but it will be done from the backend. I am getting from the API two fields: live data: and prediction: And I need them to add them together.

1 Answer 1

1

I think you can use segment option for this. You can change line styles based on datapoint options / value. Usage example: Link an official example

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.