simplecharts

SVG charts without dependencies
git clone https://git.ce9e.org/simplecharts.git

commit
1150b1b8f55b33f49da3432c4c0e83aae5f7fc34
parent
b601bcc494558df4dcf7a513810b899df9c357d2
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-02-20 07:12
rm example.svg

Diffstat

M README.md 2 +-
D example.svg 65 ------------------------------------------------------------

2 files changed, 1 insertions, 66 deletions


diff --git a/README.md b/README.md

@@ -27,4 +27,4 @@ data = {
   27    27 svg = renderer.render(data)
   28    28 ```
   29    29 
   30    -1 ![example](https://github.com/xi/simplecharts/blob/master/example.svg)
   -1    30 ![example](https://github.com/xi/simplecharts/blob/master/tests/simple_StackedColumnRenderer.svg)

diff --git a/example.svg b/example.svg

@@ -1,65 +0,0 @@
    1    -1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="-55 -25 700 530">
    2    -1 	<line y1="0" x2="0" stroke="#333" y2="480" x1="0" />
    3    -1 	<line y1="480" x2="640" stroke="#333" y2="480" x1="0" />
    4    -1 	<text y="480" x="-4" dominant-baseline="middle" text-anchor="end" fill="#333">0</text>
    5    -1 	<text y="240" x="-4" dominant-baseline="middle" text-anchor="end" fill="#333">10</text>
    6    -1 	<text y="0" x="-4" dominant-baseline="middle" text-anchor="end" fill="#333">20</text>
    7    -1 	<text y="490" x="80.0" dominant-baseline="middle" text-anchor="middle" fill="#333">Apples</text>
    8    -1 	<text y="490" x="240.0" dominant-baseline="middle" text-anchor="middle" fill="#333">Oranges</text>
    9    -1 	<text y="490" x="400.0" dominant-baseline="middle" text-anchor="middle" fill="#333">Pears</text>
   10    -1 	<text y="490" x="560.0" dominant-baseline="middle" text-anchor="middle" fill="#333">Bananas</text>
   11    -1 	<g>
   12    -1 		<rect height="20" width="180" stroke="#333" y="-20" x="460" fill="none" />
   13    -1 		<rect y="-15" width="10" height="10" x="464" fill="#e41a1c" />
   14    -1 		<text y="-10" x="478" dominant-baseline="middle" fill="#333">John</text>
   15    -1 		<rect y="-15" width="10" height="10" x="528" fill="#377eb8" />
   16    -1 		<text y="-10" x="542" dominant-baseline="middle" fill="#333">Jane</text>
   17    -1 		<rect y="-15" width="10" height="10" x="592" fill="#4daf4a" />
   18    -1 		<text y="-10" x="606" dominant-baseline="middle" fill="#333">Joe</text>
   19    -1 	</g>
   20    -1 	<g>
   21    -1 		<rect height="72" width="53" stroke="white" y="407" x="54.0" fill="#e41a1c">
   22    -1 			<title>Apples - John: 3</title>
   23    -1 		</rect>
   24    -1 		<rect height="48" width="53" stroke="white" y="359" x="54.0" fill="#377eb8">
   25    -1 			<title>Apples - Jane: 2</title>
   26    -1 		</rect>
   27    -1 		<rect height="120" width="53" stroke="white" y="239" x="54.0" fill="#4daf4a">
   28    -1 			<title>Apples - Joe: 5</title>
   29    -1 		</rect>
   30    -1 	</g>
   31    -1 	<g>
   32    -1 		<rect height="96" width="53" stroke="white" y="383" x="214.0" fill="#e41a1c">
   33    -1 			<title>Oranges - John: 4</title>
   34    -1 		</rect>
   35    -1 		<rect height="48" width="53" stroke="white" y="335" x="214.0" fill="#377eb8">
   36    -1 			<title>Oranges - Jane: 2</title>
   37    -1 		</rect>
   38    -1 		<rect height="72" width="53" stroke="white" y="263" x="214.0" fill="#4daf4a">
   39    -1 			<title>Oranges - Joe: 3</title>
   40    -1 		</rect>
   41    -1 	</g>
   42    -1 	<g>
   43    -1 		<rect height="96" width="53" stroke="white" y="383" x="374.0" fill="#e41a1c">
   44    -1 			<title>Pears - John: 4</title>
   45    -1 		</rect>
   46    -1 		<rect height="72" width="53" stroke="white" y="311" x="374.0" fill="#377eb8">
   47    -1 			<title>Pears - Jane: 3</title>
   48    -1 		</rect>
   49    -1 		<rect height="96" width="53" stroke="white" y="215" x="374.0" fill="#4daf4a">
   50    -1 			<title>Pears - Joe: 4</title>
   51    -1 		</rect>
   52    -1 	</g>
   53    -1 	<g>
   54    -1 		<rect height="120" width="53" stroke="white" y="359" x="534.0" fill="#e41a1c">
   55    -1 			<title>Bananas - John: 5</title>
   56    -1 		</rect>
   57    -1 		<rect height="24" width="53" stroke="white" y="335" x="534.0" fill="#377eb8">
   58    -1 			<title>Bananas - Jane: 1</title>
   59    -1 		</rect>
   60    -1 		<rect height="48" width="53" stroke="white" y="287" x="534.0" fill="#4daf4a">
   61    -1 			<title>Bananas - Joe: 2</title>
   62    -1 		</rect>
   63    -1 	</g>
   64    -1 </svg>
   65    -1