mikebryant / ac-nh-turnip-prices

Price calculator/predictor for Turnip prices
https://turnipprophet.io
Apache License 2.0
1.45k stars 244 forks source link

Feature Request: Mark current time in plot #131

Open hausler89 opened 4 years ago

hausler89 commented 4 years ago

A vertical bar indicating the current (browser local) time would be useful. Thanks for the great tool :)

abrad45 commented 4 years ago

I started looking into this and... It's nontrivial to tell what the request is here, given the granularity of the data in the chart itself. The chart does not show specific times, but rather time windows.

Vague Chart Times

Due to this, knowing what to show is tricky. We could highlight, in some way, the label which encompasses the current time, but then what would we show during times like:

Global vs. Local time

Additionally, since the game doesn't use a global clock, but rather users' local time, telling them which of the games' time windows they are is not particularly useful, given that the site already informs users of the time windows:

AM - 8:00 am to 11:59 am PM - 12:00 pm to 10:00 pm

We'd basically be telling them the time, which I suppose could be useful in some contexts, but with such wide time windows, I don't know what we're gaining there.

Conclusion

I'm not sure of a solution that is useful, complete and clear. I'm not a contributor or owner of this project, so I won't speak to anyone else, but wanted to drop some notes in here, rather than looking into this without solving anything. Hope it helps someone.

Resources

Drawing a vertical line in ChartJS: https://stackoverflow.com/questions/30256695/chart-js-drawing-an-arbitrary-vertical-line

theRTC204 commented 4 years ago

Thank you @abrad45 for the detailed analysis. Generally this was my feeling as well. In addition to it being non-trivial to identify the correct time window, it's also not particularly difficult to use the graph's tooltip to understand what window of time the points are for.

The graph only has 13 points, so finding the touch/hover point is not very difficult, even on smaller screens.

I'm still open to the idea, if someone has a novel solution to propose, but for the moment it's a low priority for myself to address.