Skip to content

Commit 58c7595

Browse files
authored
Merge pull request #10 from Chavin-Chen/master
fixed a bad svg demo
2 parents f352fe3 + ff5c861 commit 58c7595

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/svg.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -452,20 +452,22 @@ Date |Amount
452452
```xml
453453
<svg width="350" height="160">
454454
<g class="layer" transform="translate(60,10)">
455-
<circle r="5" cx="0" cy="105" />
456-
<circle r="5" cx="90" cy="90" />
457-
<circle r="5" cx="180" cy="60" />
458-
<circle r="5" cx="270" cy="0" />
455+
<circle r="2" cx="0" cy="105" />
456+
<circle r="2" cx="90" cy="90" />
457+
<circle r="2" cx="180" cy="60" />
458+
<circle r="2" cx="270" cy="0" />
459+
460+
<polyline points="0,105 90,90 180,60 270,0" fill="none" stroke="red" />
459461

460462
<g class="y axis">
461-
<line x1="0" y1="0" x2="0" y2="120" />
462-
<text x="-40" y="105" dy="5">$10</text>
463-
<text x="-40" y="0" dy="5">$80</text>
463+
<line x1="0" y1="0" x2="0" y2="120" style="stroke:black;stroke-width:1" />
464+
<text x="-40" y="115" dy="5">$10</text>
465+
<text x="-40" y="5" dy="5">$80</text>
464466
</g>
465467
<g class="x axis" transform="translate(0, 120)">
466-
<line x1="0" y1="0" x2="270" y2="0" />
467-
<text x="-30" y="20">January 2014</text>
468-
<text x="240" y="20">April</text>
468+
<line x1="0" y1="0" x2="270" y2="0" style="stroke:black;stroke-width:1" />
469+
<text x="-10" y="20">Jan.</text>
470+
<text x="255" y="20">Apr.</text>
469471
</g>
470472
</g>
471473
</svg>

0 commit comments

Comments
 (0)