Backport Javascript RRD drawing from CGP (Thanks to pommi !!)
I choose to use this drawing only for Zooming in CGraphz because of high cpu usage.
Little fix and rename heigth to height :D