walling / node-rsvg

Parse SVG files and render them as PNG, PDF, SVG, or raw memory buffer images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to convert svg data and on svg finish not ending

lavkesh1608 opened this issue · comments

Hi ,
Here is my data that i want to convert into png or pdf but not getting any response =>
{ data :"<svg width="891" height="291" xmlns:svg="http://www.w3.org/2000/svg\" xmlns="http://www.w3.org/2000/svg\"><g transform="translate(60,30)"><path class="line" d="M0,107.54879943203153L22.38235294117647,36.33546104737704L44.76470588235294,31.789928810058683L67.14705882352942,30.27475139761922L89.52941176470588,45.426525522013776L111.91176470588235,33.30510622249813L134.29411764705884,36.33546104737704L156.6764705882353,28.759573985179756L179.05882352941177,28.759573985179756L201.44117647058823,33.30510622249813L223.8235294117647,49.97205775933215L246.2058823529412,46.94170293445324L268.5882352941177,31.789928810058683L290.97058823529414,27.244396572740307L313.3529411764706,40.88099328469542L335.7352941176471,39.36581587225595L358.11764705882354,53.00241258421106L380.5,30.27475139761922L402.88235294117646,36.25571486777497L425.2647058823529,33.30510622249813L447.6470588235294,54.124766223055104L470.0294117647059,33.02961942023641L492.4117647058824,44.30417188316975L514.7941176470588,37.85063845981651L537.1764705882354,28.759573985179756L559.5588235294118,42.396170697134885L581.9411764705883,27.244396572740307L604.3235294117648,29.869623747234343L626.7058823529412,27.244396572740307L649.0882352941177,42.6435466012066L671.4705882352941,30.27475139761922L693.8529411764706,41.0974472007582L716.2352941176471,25.729219160300843L738.6176470588235,28.759573985179756L761,74.21489635836348"/><circle r="3.5" cx="0" cy="107.54879943203153" style="fill: rgb(214, 39, 40);"><title> Point beyond control limit. Indicates a process shift.</title><circle r="3.5" cx="22.38235294117647" cy="36.33546104737704" style="fill: rgb(31, 119, 180);"><title>0.46</title><circle r="3.5" cx="44.76470588235294" cy="31.789928810058683" style="fill: rgb(31, 119, 180);"><title>0.49</title><circle r="3.5" cx="67.14705882352942" cy="30.27475139761922" style="fill: rgb(31, 119, 180);"><title>0.5</title><circle r="3.5" cx="89.52941176470588" cy="45.426525522013776" style="fill: rgb(31, 119, 180);"><title>0.4</title><circle r="3.5" cx="111.91176470588235" cy="33.30510622249813" style="fill: rgb(31, 119, 180);"><title>0.48</title><circle r="3.5" cx="134.29411764705884" cy="36.33546104737704" style="fill: rgb(31, 119, 180);"><title>0.46</title><circle r="3.5" cx="156.6764705882353" cy="28.759573985179756" style="fill: rgb(31, 119, 180);"><title>0.51</title><circle r="3.5" cx="179.05882352941177" cy="28.759573985179756" style="fill: rgb(31, 119, 180);"><title>0.51</title><circle r="3.5" cx="201.44117647058823" cy="33.30510622249813" style="fill: rgb(31, 119, 180);"><title>0.48</title><circle r="3.5" cx="223.8235294117647" cy="49.97205775933215" style="fill: rgb(31, 119, 180);"><title>0.37</title><circle r="3.5" cx="246.2058823529412" cy="46.94170293445324" style="fill: rgb(31, 119, 180);"><title>0.39</title><circle r="3.5" cx="268.5882352941177" cy="31.789928810058683" style="fill: rgb(31, 119, 180);"><title>0.49</title><circle r="3.5" cx="290.97058823529414" cy="27.244396572740307" style="fill: rgb(31, 119, 180);"><title>0.52</title><circle r="3.5" cx="313.3529411764706" cy="40.88099328469542" style="fill: rgb(31, 119, 180);"><title>0.43</title><circle r="3.5" cx="335.7352941176471" cy="39.36581587225595" style="fill: rgb(31, 119, 180);"><title>0.44</title><circle r="3.5" cx="358.11764705882354" cy="53.00241258421106" style="fill: rgb(31, 119, 180);"><title>0.35</title><circle r="3.5" cx="380.5" cy="30.27475139761922" style="fill: rgb(31, 119, 180);"><title>0.5</title><circle r="3.5" cx="402.88235294117646" cy="36.25571486777497" style="fill: rgb(31, 119, 180);"><title>0.4605263157894737</title><circle r="3.5" cx="425.2647058823529" cy="33.30510622249813" style="fill: rgb(31, 119, 180);"><title>0.48</title><circle r="3.5" cx="447.6470588235294" cy="54.124766223055104" style="fill: rgb(31, 119, 180);"><title>0.3425925925925926</title><circle r="3.5" cx="470.0294117647059" cy="33.02961942023641" style="fill: rgb(31, 119, 180);"><title>0.4818181818181818</title><circle r="3.5" cx="492.4117647058824" cy="44.30417188316975" style="fill: rgb(31, 119, 180);"><title>0.4074074074074074</title><circle r="3.5" cx="514.7941176470588" cy="37.85063845981651" style="fill: rgb(31, 119, 180);"><title>0.45</title><circle r="3.5" cx="537.1764705882354" cy="28.759573985179756" style="fill: rgb(31, 119, 180);"><title>0.51</title><circle r="3.5" cx="559.5588235294118" cy="42.396170697134885" style="fill: rgb(31, 119, 180);"><title>0.42</title><circle r="3.5" cx="581.9411764705883" cy="27.244396572740307" style="fill: rgb(31, 119, 180);"><title>0.52</title><circle r="3.5" cx="604.3235294117648" cy="29.869623747234343" style="fill: rgb(31, 119, 180);"><title>0.5026737967914439</title><circle r="3.5" cx="626.7058823529412" cy="27.244396572740307" style="fill: rgb(31, 119, 180);"><title>0.52</title><circle r="3.5" cx="649.0882352941177" cy="42.6435466012066" style="fill: rgb(31, 119, 180);"><title>0.41836734693877553</title><circle r="3.5" cx="671.4705882352941" cy="30.27475139761922" style="fill: rgb(31, 119, 180);"><title>0.5</title><circle r="3.5" cx="693.8529411764706" cy="41.0974472007582" style="fill: rgb(31, 119, 180);"><title>0.42857142857142855</title><circle r="3.5" cx="716.2352941176471" cy="25.729219160300843" style="fill: rgb(31, 119, 180);"><title>0.53</title><circle r="3.5" cx="738.6176470588235" cy="28.759573985179756" style="fill: rgb(31, 119, 180);"><title>0.51</title><circle r="3.5" cx="761" cy="74.21489635836348" style="fill: rgb(214, 39, 40);"><title> Point beyond control limit. Indicates a process shift.</title><g class="x axis" transform="translate(0,176)"><g class="tick" transform="translate(0,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">1 Jan 15<g class="tick" transform="translate(22.38235294117647,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">2 Jan 15<g class="tick" transform="translate(44.76470588235294,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">3 Jan 15<g class="tick" transform="translate(67.14705882352942,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">4 Jan 15<g class="tick" transform="translate(89.52941176470588,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">5 Jan 15<g class="tick" transform="translate(111.91176470588235,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">6 Jan 15<g class="tick" transform="translate(134.29411764705884,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">7 Jan 15<g class="tick" transform="translate(156.6764705882353,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">8 Jan 15<g class="tick" transform="translate(179.05882352941177,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">9 Jan 15<g class="tick" transform="translate(201.44117647058823,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">10 Jan 15<g class="tick" transform="translate(223.8235294117647,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">11 Jan 15<g class="tick" transform="translate(246.2058823529412,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">12 Jan 15<g class="tick" transform="translate(268.5882352941177,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">13 Jan 15<g class="tick" transform="translate(290.97058823529414,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">14 Jan 15<g class="tick" transform="translate(313.3529411764706,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">15 Jan 15<g class="tick" transform="translate(335.7352941176471,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">16 Jan 15<g class="tick" transform="translate(358.11764705882354,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">17 Jan 15<g class="tick" transform="translate(380.5,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">18 Jan 15<g class="tick" transform="translate(402.88235294117646,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">19 Jan 15<g class="tick" transform="translate(425.2647058823529,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">20 Jan 15<g class="tick" transform="translate(447.6470588235294,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">21 Jan 15<g class="tick" transform="translate(470.0294117647059,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">22 Jan 15<g class="tick" transform="translate(492.4117647058824,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">23 Jan 15<g class="tick" transform="translate(514.7941176470588,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">24 Jan 15<g class="tick" transform="translate(537.1764705882354,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">25 Jan 15<g class="tick" transform="translate(559.5588235294118,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">26 Jan 15<g class="tick" transform="translate(581.9411764705883,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">27 Jan 15<g class="tick" transform="translate(604.3235294117648,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">28 Jan 15<g class="tick" transform="translate(626.7058823529412,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">29 Jan 15<g class="tick" transform="translate(649.0882352941177,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">30 Jan 15<g class="tick" transform="translate(671.4705882352941,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">31 Jan 15<g class="tick" transform="translate(693.8529411764706,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">1 Feb 15<g class="tick" transform="translate(716.2352941176471,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">2 Feb 15<g class="tick" transform="translate(738.6176470588235,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">3 Feb 15<g class="tick" transform="translate(761,0)" style="opacity: 1;"><line y2="6" x2="0"/><text dy=".15em" y="9" x="0" dx="-.8em" transform="rotate(-65)" style="text-anchor: end;">4 Feb 15<path class="domain" d="M0,6V0H761V6"/><g class="y axis"><g class="tick" transform="translate(0,166.6407185171704)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">-0.4<g class="tick" transform="translate(0,151.4889443927758)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">-0.3<g class="tick" transform="translate(0,136.33717026838124)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">-0.2<g class="tick" transform="translate(0,121.18539614398667)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">-0.1<g class="tick" transform="translate(0,106.03362201959209)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">0.0<g class="tick" transform="translate(0,90.88184789519752)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">0.1<g class="tick" transform="translate(0,75.73007377080292)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">0.2<g class="tick" transform="translate(0,60.57829964640837)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">0.3<g class="tick" transform="translate(0,45.426525522013776)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">0.4<g class="tick" transform="translate(0,30.27475139761922)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">0.5<g class="tick" transform="translate(0,15.122977273224626)" style="opacity: 1;"><line x2="-6" y2="0"/><text dy=".32em" x="-9" y="0" style="text-anchor: end;">0.6<path class="domain" d="M-6,0H0V176H-6"/><line x1="0" x2="777" y1="39.09759886406307" y2="39.09759886406307" style="stroke: green;"/><text dy=".35em" y="39.09759886406307" x="777" text-anchor="start" style="fill: red; stroke: green;">avg<text dy=".35em" y="16.524589635228264" x="777" text-anchor="start" style="fill: red; stroke: red;">UCL<text dy=".35em" y="61.6706080928979" x="777" text-anchor="start" style="fill: red; stroke: red;">LCL<path class="line" d="M0,61.6706080928979H11.191176470588236V61.6706080928979H33.57352941176471V61.6706080928979H55.95588235294118V61.6706080928979H78.33823529411765V61.6706080928979H100.72058823529412V61.6706080928979H123.1029411764706V61.6706080928979H145.48529411764707V61.6706080928979H167.86764705882354V61.6706080928979H190.25V61.6706080928979H212.63235294117646V61.6706080928979H235.01470588235293V61.6706080928979H257.39705882352945V61.6706080928979H279.7794117647059V61.6706080928979H302.1617647058824V61.6706080928979H324.54411764705884V61.6706080928979H346.9264705882353V61.6706080928979H369.30882352941177V61.89978157477112H391.69117647058823V64.99061625356362H414.0735294117647V61.6706080928979H436.45588235294116V60.818487121875904H458.8382352941177V60.620118690452585H481.22058823529414V58.52535193452166H503.6029411764706V61.6706080928979H525.9852941176471V61.6706080928979H548.3676470588236V61.6706080928979H570.75V65.16266477343846H593.1323529411766V55.60461804267721H615.5147058823529V61.6706080928979H637.8970588235295V61.89978157477112H660.2794117647059V61.6706080928979H682.6617647058824V61.12660021715091H705.0441176470588V61.6706080928979H727.4264705882354V61.6706080928979H749.8088235294117V61.6706080928979H761" style="stroke: red;"/><path class="line" d="M0,16.524589635228264H11.191176470588236V16.524589635228264H33.57352941176471V16.524589635228264H55.95588235294118V16.524589635228264H78.33823529411765V16.524589635228264H100.72058823529412V16.524589635228264H123.1029411764706V16.524589635228264H145.48529411764707V16.524589635228264H167.86764705882354V16.524589635228264H190.25V16.524589635228264H212.63235294117646V16.524589635228264H235.01470588235293V16.524589635228264H257.39705882352945V16.524589635228264H279.7794117647059V16.524589635228264H302.1617647058824V16.524589635228264H324.54411764705884V16.524589635228264H346.9264705882353V16.524589635228264H369.30882352941177V16.29541615335507H391.69117647058823V13.204581474562547H414.0735294117647V16.524589635228264H436.45588235294116V17.376710606250263H458.8382352941177V17.575079037673582H481.22058823529414V19.669845793604523H503.6029411764706V16.524589635228264H525.9852941176471V16.524589635228264H548.3676470588236V16.524589635228264H570.75V13.032532954687698H593.1323529411766V22.590579685448954H615.5147058823529V16.524589635228264H637.8970588235295V16.29541615335507H660.2794117647059V16.524589635228264H682.6617647058824V17.06859751097526H705.0441176470588V16.524589635228264H727.4264705882354V16.524589635228264H749.8088235294117V16.524589635228264H761" style="stroke: red;"/>" }