r/learnreactjs • u/dieDeM87 • Aug 03 '22
reactjs + chartjs => touchscreen behavior
Hello, I've been working with a Line Chart for a while, the component can be found within this link: Chart. The idea is to modify the touchscreen behavior. When the user releases the screen the new point in the chart should be set automatically, currently a second touch is needed to confirm the point. Trying to modify the behavior from the plugins on the corresponding touch events has led to little or non success. Any idea of how this issue might be addressed? I'm using "chart.js": "^3.7.1" and "react-chartjs-2": "^4.1.0". Thanks
[1]: https://ddl-challenge.herokuapp.com/api?id=10?wasUserInvited=true
View all comments
Show parent comment
1
u/dieDeM87 Aug 17 '22
Sorry, I just saw this. The link is: http://ddl-challenge.herokuapp.com/api?id=0&userName=er2022
And thanks for your help, I'll try it.