3 ms·
you can use JS to work with the DOM to do all your queries and calculations in a few lines of code There's nothing wrong with the approach you took, and there'
by onion2k 6y ago
you can use JS to work with the DOM to do all your queries and calculations in a few lines of code
There's nothing wrong with the approach you took, and there's a lot to be said for just getting stuff done, but I suspect knowing a tool for handling HTML is the reason you're using HTML as a data format rather than any specific virtue of HTML. Rather than use something 'better', you used something familiar. I see that a lot. I'd argue that you missed an opportunity to examine ways to store that specific time series data in a format that could do more stuff faster with the same level of effort, and an opportunity to learn something that is a bit more appropriate for the task.
But, ultimately, you made something that works for you, and maybe that's more important.