Fitness and everything else

Messing Around With Making SVG Charts From My Weather Data

I came up with the idea that I would love to have charts of the yearly and monthly data from my Ambient weather station on here. It’s been a slow process so far, since SVG is new to me. It looks easy enough, but being new to me, I have to keep refreshing my memory of the syntax and how SVG works in general.

Sure, I could do it much more quickly by grabbing a script that would do it, but then I wouldn’t learn how to do it, for one thing. The other issue with doing that is that I’d be breaking my Cardinal Rule of no scripts on this site. As great as JavaScript can be for some things, I think it’s spread its tentacles into the whole idea of anything on the web, dug in too deeply, and gained too much trust. It’s not that I don’t trust the idea of JavaScript, but I don’t like how prevalent it has become in everything. I see it as every site wanting me to allow it to run untrusted code.

I want to learn to do it myself, and since they will only need to be generated when I generate my site, why should I push that on to the user’s browser? I’d have to generate the date in a format to feed the script anyway.

It’s a slow work in progress, but it will be rewarding and worth it in the end. I’ll have it set up in a way I like, and I can tweak it later if I like. I’m sure I will come up with better ideas later and rework it. But for the moment, I just want something workable as soon as I can get it ready. That’s not to say I’m in a rush, but I’m having fun working on it.

From what I figured out, it should be well within the constraints of Tera to be able to generate the SVG. I just have to figure out how best to do that.