Interesting thread here on rendering SVG fragments;  also checkout https://github.com/Opserver/Opserver