This project is read-only.

Unable to render SVG

Oct 17, 2011 at 7:15 PM

I've been able to successfully render simple svg, but when rendering the following, with an SvgDocument.Open(<memorystream>), it returns a null object.

Following is the svg I'm trying to render.

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="320" width="602" stroke-width="1.5" stroke="none" fill="none" font-family="sans-serif" font-size="10px"><g transform="translate(52, 5)"><line stroke-width="1" stroke="rgb(0,0,0)" y2="270" x2="550" y1="270" x1="0" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="228.00044799522138" x2="550" y1="228.00044799522138" x1="0" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="186.00089599044276" x2="550" y1="186.00089599044276" x1="0" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="144.00134398566414" x2="550" y1="144.00134398566414" x1="0" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="102.00179198088551" x2="550" y1="102.00179198088551" x1="0" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="60.00223997610692" x2="550" y1="60.00223997610692" x1="0" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="18.00268797132827" x2="550" y1="18.00268797132827" x1="0" shape-rendering="crispEdges"></line></g><g transform="translate(52, 5)"><text text-anchor="end" fill="rgb(0,0,0)" transform="translate(0, 270)" dy=".35em" x="-3" pointer-events="none">0</text><text text-anchor="end" fill="rgb(0,0,0)" transform="translate(0, 228)" dy=".35em" x="-3" pointer-events="none">2,000</text><text text-anchor="end" fill="rgb(0,0,0)" transform="translate(0, 186.001)" dy=".35em" x="-3" pointer-events="none">4,000</text><text text-anchor="end" fill="rgb(0,0,0)" transform="translate(0, 144.001)" dy=".35em" x="-3" pointer-events="none">6,000</text><text text-anchor="end" fill="rgb(0,0,0)" transform="translate(0, 102.002)" dy=".35em" x="-3" pointer-events="none">8,000</text><text text-anchor="end" fill="rgb(0,0,0)" transform="translate(0, 60.0022)" dy=".35em" x="-3" pointer-events="none">10,000</text><text text-anchor="end" fill="rgb(0,0,0)" transform="translate(0, 18.0027)" dy=".35em" x="-3" pointer-events="none">12,000</text></g><g transform="translate(52, 5)"><line stroke-width="1" stroke="rgb(0,0,0)" y2="270" x2="0" y1="0" x1="0" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="270" x2="91.87752687713507" y1="0" x1="91.87752687713507" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="270" x2="183.75505375427014" y1="0" x1="183.75505375427014" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="270" x2="275.63258063140523" y1="0" x1="275.63258063140523" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="270" x2="367.5101075085403" y1="0" x1="367.5101075085403" shape-rendering="crispEdges"></line><line stroke-width="1" stroke="rgb(238,238,238)" y2="270" x2="459.38763438567537" y1="0" x1="459.38763438567537" shape-rendering="crispEdges"></line></g><g transform="translate(52, 5)"><text text-anchor="middle" fill="rgb(0,0,0)" transform="translate(0, 270)" dy=".71em" y="3" pointer-events="none">0</text><text text-anchor="middle" fill="rgb(0,0,0)" transform="translate(91.8775, 270)" dy=".71em" y="3" pointer-events="none">5,000,000</text><text text-anchor="middle" fill="rgb(0,0,0)" transform="translate(183.755, 270)" dy=".71em" y="3" pointer-events="none">10,000,000</text><text text-anchor="middle" fill="rgb(0,0,0)" transform="translate(275.633, 270)" dy=".71em" y="3" pointer-events="none">15,000,000</text><text text-anchor="middle" fill="rgb(0,0,0)" transform="translate(367.51, 270)" dy=".71em" y="3" pointer-events="none">20,000,000</text><text text-anchor="middle" fill="rgb(0,0,0)" transform="translate(459.388, 270)" dy=".71em" y="3" pointer-events="none">25,000,000</text></g><g transform="translate(52, 5)"><text style="font: 14px sans-serif;" fill="rgb(0,0,0)" transform="translate(250, 297)" y="-3" x="3" pointer-events="none">Awareness</text></g><g transform="translate(52, 5)"><text style="font: 14px sans-serif;" fill="rgb(0,0,0)" transform="translate(-34, 170) rotate(-90)" y="-3" x="3" pointer-events="none">Engagement</text></g><g transform="translate(52, 5)"><g><a xlink:title="Tim Hortons"><circle r="10" cy="265.06505263943853" cx="30.837368859923355" fill="rgb(168,50,35)"></circle></a></g><g><a xlink:title="Starbucks"><circle r="10" cy="41.18644067796609" cx="466.10169491525426" fill="rgb(63,90,159)"></circle></a></g><g><a xlink:title="Subway"><circle r="10" cy="213.72060031359666" cx="164.0602422194036" fill="rgb(59,139,65)"></circle></a></g><g><a xlink:title="Taco Bell"><circle r="10" cy="247.38324124542672" cx="138.31459727047346" fill="rgb(209,168,69)"></circle></a></g><g><a xlink:title="McDonald's"><circle r="10" cy="267.6900246397372" cx="195.33537074388573" fill="rgb(239,86,35)"></circle></a></g><g><a xlink:title="Dunkin' Donuts"><circle r="10" cy="72.20310983349509" cx="86.45998688033019" fill="rgb(102,46,75)"></circle></a></g><g><a xlink:title="Pizza Hut"><circle r="10" cy="242.00729858881505" cx="82.9515516389999" fill="rgb(12,86,87)"></circle></a></g><g><a xlink:title="Domino's Pizza"><circle r="10" cy="206.49667736877473" cx="72.99052093407768" fill="rgb(184,123,125)"></circle></a></g><g><a xlink:title="KFC - Kentucky Fried Chicken"><circle r="10" cy="264.24606137534533" cx="62.77732316888846" fill="rgb(145,130,98)"></circle></a></g><g><a xlink:title="Papa John's Pizza"><circle r="10" cy="252.80118345404316" cx="35.54370329667773" fill="rgb(149,181,211)"></circle></a></g></g></svg>

Oct 17, 2011 at 7:36 PM

Interesting.. the precompiled binary that is available didn't work, but when I downloaded the source and compiled it, it worked fine.