R
R
Raybul2022-03-09 22:12:28
JavaScript
Raybul, 2022-03-09 22:12:28

How to plot a Recharts chart without repeating values?

Hello everyone, I receive an array with sensor changes for a week, I need to build a graph and display sensor readings, I make a graph using Recharts, the problem is that sensors can change values ​​\u200b\u200bmany times a day and when I display a graph, it shows, for example, "mon pnd Mon Tue Wed Thu Thu Thu Fri Sat Sat Sat Sun Sun"
and I need it to be "Mon Tue Wed Thu Fri Sat Sun"
the object structure is something like this
{ created_at: 1646295051, value: 2090}
{ created_at: 1646637790, value: 1890 }
how to implement?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question