Reputation: 1801
I am looking to plot charts using the PHP image create, what kind of algorithms are used to transform my terrible chart:
Into something better like:
and
How can I make the lines of my chart smooth and pretty like the 2 charts above?
edit: I don't want to use any library, I am trying to do this myself.
Upvotes: 0
Views: 125
Reputation: 3947
For "smoothing the lines", you have to refer to external sources about antialiasing (or let PHP do this part, see manual)
Then, you need to have an idea how exactly your graph should look like:
And I think each point could be a quite well suited coding exercise. But without more specific questions, I can't help you better.
Upvotes: 1