- commit
- e1df35692257dc2fe4b9f3eaa79093f813c56239
- parent
- d15e50e28829253eed3f7645f8d4f667a328ecfb
- Author
- Tobias Bengfort <bengfort@mpib-berlin.mpg.de>
- Date
- 2026-04-13 09:22
limit float precision
Diffstat
| M | simplecharts.py | 2 | +- |
| M | tests/empty_StackedColumnRenderer.svg | 12 | ++++++------ |
| M | tests/float_ColumnRenderer.svg | 4 | ++-- |
| M | tests/float_LineRenderer.svg | 8 | ++++---- |
| M | tests/float_StackedAreaRenderer.svg | 6 | +++--- |
| M | tests/float_StackedColumnRenderer.svg | 12 | ++++++------ |
| M | tests/long_ColumnRenderer.svg | 40 | ++++++++++++++++++++-------------------- |
| M | tests/long_StackedColumnRenderer.svg | 40 | ++++++++++++++++++++-------------------- |
| M | tests/no-legend_StackedColumnRenderer.svg | 24 | ++++++++++++------------ |
| M | tests/simple_StackedColumnRenderer.svg | 24 | ++++++++++++------------ |
| M | tests/single_ColumnRenderer.svg | 8 | ++++---- |
| M | tests/single_StackedColumnRenderer.svg | 8 | ++++---- |
12 files changed, 94 insertions, 94 deletions
diff --git a/simplecharts.py b/simplecharts.py
@@ -41,7 +41,7 @@ class BaseRenderer: 41 41 42 42 def render_value(self, value): 43 43 if isinstance(value, float):44 -1 value = str(value).rstrip('0').rstrip('.')-1 44 value = f'{value:.4f}'.rstrip('0').rstrip('.') 45 45 return escape(str(value)) 46 46 47 47 def attrs(self, **kwargs):
diff --git a/tests/empty_StackedColumnRenderer.svg b/tests/empty_StackedColumnRenderer.svg
@@ -12,16 +12,16 @@ 12 12 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="480" y="490">Oranges</text> 13 13 </g> 14 14 <g fill="#e41a1c" role="row" stroke="white">15 -1 <rect height="0" role="cell" width="106.66666666666667" x="106.66666666666666" y="479" />16 -1 <rect height="0" role="cell" width="106.66666666666667" x="426.6666666666667" y="479" />-1 15 <rect height="0" role="cell" width="106.6667" x="106.6667" y="479" /> -1 16 <rect height="0" role="cell" width="106.6667" x="426.6667" y="479" /> 17 17 </g> 18 18 <g fill="#377eb8" role="row" stroke="white">19 -1 <rect height="0" role="cell" width="106.66666666666667" x="106.66666666666666" y="479" />20 -1 <rect height="0" role="cell" width="106.66666666666667" x="426.6666666666667" y="479" />-1 19 <rect height="0" role="cell" width="106.6667" x="106.6667" y="479" /> -1 20 <rect height="0" role="cell" width="106.6667" x="426.6667" y="479" /> 21 21 </g> 22 22 <g fill="#4daf4a" role="row" stroke="white">23 -1 <rect height="0" role="cell" width="106.66666666666667" x="106.66666666666666" y="479" />24 -1 <rect height="0" role="cell" width="106.66666666666667" x="426.6666666666667" y="479" />-1 23 <rect height="0" role="cell" width="106.6667" x="106.6667" y="479" /> -1 24 <rect height="0" role="cell" width="106.6667" x="426.6667" y="479" /> 25 25 </g> 26 26 </g> 27 27 </svg>
diff --git a/tests/float_ColumnRenderer.svg b/tests/float_ColumnRenderer.svg
@@ -12,7 +12,7 @@ 12 12 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="480" y="490">Oranges</text> 13 13 </g> 14 14 <g fill="#e41a1c" role="row" stroke="white">15 -1 <rect height="239.99999999999997" role="cell" width="64" x="64" y="239.00000000000003">-1 15 <rect height="240" role="cell" width="64" x="64" y="239"> 16 16 <title>0.03</title> 17 17 </rect> 18 18 <rect height="320" role="cell" width="64" x="384" y="159"> @@ -31,7 +31,7 @@ 31 31 <rect height="400" role="cell" width="64" x="192" y="79"> 32 32 <title>0.05</title> 33 33 </rect>34 -1 <rect height="239.99999999999997" role="cell" width="64" x="512" y="239.00000000000003">-1 34 <rect height="240" role="cell" width="64" x="512" y="239"> 35 35 <title>0.03</title> 36 36 </rect> 37 37 </g>
diff --git a/tests/float_LineRenderer.svg b/tests/float_LineRenderer.svg
@@ -11,11 +11,11 @@ 11 11 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="160" y="490">Apples</text> 12 12 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="480" y="490">Oranges</text> 13 13 </g>14 -1 <polyline fill="none" points="160,240.00000000000003 480,160" stroke="#e41a1c" />-1 14 <polyline fill="none" points="160,240 480,160" stroke="#e41a1c" /> 15 15 <polyline fill="none" points="160,320 480,320" stroke="#377eb8" />16 -1 <polyline fill="none" points="160,80 480,240.00000000000003" stroke="#4daf4a" />-1 16 <polyline fill="none" points="160,80 480,240" stroke="#4daf4a" /> 17 17 <g fill="#e41a1c" role="row" stroke="white">18 -1 <circle cx="160" cy="240.00000000000003" r="3" role="cell">-1 18 <circle cx="160" cy="240" r="3" role="cell"> 19 19 <title>0.03</title> 20 20 </circle> 21 21 <circle cx="480" cy="160" r="3" role="cell"> @@ -34,7 +34,7 @@ 34 34 <circle cx="160" cy="80" r="3" role="cell"> 35 35 <title>0.05</title> 36 36 </circle>37 -1 <circle cx="480" cy="240.00000000000003" r="3" role="cell">-1 37 <circle cx="480" cy="240" r="3" role="cell"> 38 38 <title>0.03</title> 39 39 </circle> 40 40 </g>
diff --git a/tests/float_StackedAreaRenderer.svg b/tests/float_StackedAreaRenderer.svg
@@ -13,7 +13,7 @@ 13 13 </g> 14 14 <polyline fill="#e41a1c" points="160,407 480,383 480,479 160,479" stroke="white" /> 15 15 <polyline fill="#377eb8" points="160,359 480,335 480,383 160,407" stroke="white" />16 -1 <polyline fill="#4daf4a" points="160,239.00000000000003 480,263.00000000000006 480,335 160,359" stroke="white" />-1 16 <polyline fill="#4daf4a" points="160,239 480,263 480,335 160,359" stroke="white" /> 17 17 <g fill="#e41a1c" role="row" stroke="white"> 18 18 <circle cx="160" cy="407" r="3" role="cell"> 19 19 <title>0.03</title> @@ -31,10 +31,10 @@ 31 31 </circle> 32 32 </g> 33 33 <g fill="#4daf4a" role="row" stroke="white">34 -1 <circle cx="160" cy="239.00000000000003" r="3" role="cell">-1 34 <circle cx="160" cy="239" r="3" role="cell"> 35 35 <title>0.05</title> 36 36 </circle>37 -1 <circle cx="480" cy="263.00000000000006" r="3" role="cell">-1 37 <circle cx="480" cy="263" r="3" role="cell"> 38 38 <title>0.03</title> 39 39 </circle> 40 40 </g>
diff --git a/tests/float_StackedColumnRenderer.svg b/tests/float_StackedColumnRenderer.svg
@@ -12,26 +12,26 @@ 12 12 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="480" y="490">Oranges</text> 13 13 </g> 14 14 <g fill="#e41a1c" role="row" stroke="white">15 -1 <rect height="71.99999999999999" role="cell" width="106.66666666666667" x="106.66666666666666" y="407">-1 15 <rect height="72" role="cell" width="106.6667" x="106.6667" y="407"> 16 16 <title>0.03</title> 17 17 </rect>18 -1 <rect height="95.99999999999999" role="cell" width="106.66666666666667" x="426.6666666666667" y="383">-1 18 <rect height="96" role="cell" width="106.6667" x="426.6667" y="383"> 19 19 <title>0.04</title> 20 20 </rect> 21 21 </g> 22 22 <g fill="#377eb8" role="row" stroke="white">23 -1 <rect height="47.99999999999999" role="cell" width="106.66666666666667" x="106.66666666666666" y="359">-1 23 <rect height="48" role="cell" width="106.6667" x="106.6667" y="359"> 24 24 <title>0.02</title> 25 25 </rect>26 -1 <rect height="47.99999999999999" role="cell" width="106.66666666666667" x="426.6666666666667" y="335">-1 26 <rect height="48" role="cell" width="106.6667" x="426.6667" y="335"> 27 27 <title>0.02</title> 28 28 </rect> 29 29 </g> 30 30 <g fill="#4daf4a" role="row" stroke="white">31 -1 <rect height="120" role="cell" width="106.66666666666667" x="106.66666666666666" y="239">-1 31 <rect height="120" role="cell" width="106.6667" x="106.6667" y="239"> 32 32 <title>0.05</title> 33 33 </rect>34 -1 <rect height="71.99999999999999" role="cell" width="106.66666666666667" x="426.6666666666667" y="263">-1 34 <rect height="72" role="cell" width="106.6667" x="426.6667" y="263"> 35 35 <title>0.03</title> 36 36 </rect> 37 37 </g>
diff --git a/tests/long_ColumnRenderer.svg b/tests/long_ColumnRenderer.svg
@@ -27,72 +27,72 @@ 27 27 <text dominant-baseline="middle" fill="#333" x="322" y="10">Other (82)</text> 28 28 </g> 29 29 <g fill="#e41a1c" role="row" stroke="white">30 -1 <rect height="180" role="cell" width="22.857142857142858" x="22.857142857142858" y="299">-1 30 <rect height="180" role="cell" width="22.8571" x="22.8571" y="299"> 31 31 <title>3</title> 32 32 </rect>33 -1 <rect height="240" role="cell" width="22.857142857142858" x="182.85714285714286" y="239">-1 33 <rect height="240" role="cell" width="22.8571" x="182.8571" y="239"> 34 34 <title>4</title> 35 35 </rect>36 -1 <rect height="240" role="cell" width="22.857142857142858" x="342.8571428571429" y="239">-1 36 <rect height="240" role="cell" width="22.8571" x="342.8571" y="239"> 37 37 <title>4</title> 38 38 </rect>39 -1 <rect height="300" role="cell" width="22.857142857142858" x="502.8571428571429" y="179">-1 39 <rect height="300" role="cell" width="22.8571" x="502.8571" y="179"> 40 40 <title>5</title> 41 41 </rect> 42 42 </g> 43 43 <g fill="#377eb8" role="row" stroke="white">44 -1 <rect height="120" role="cell" width="22.857142857142858" x="45.714285714285715" y="359">-1 44 <rect height="120" role="cell" width="22.8571" x="45.7143" y="359"> 45 45 <title>2</title> 46 46 </rect>47 -1 <rect height="120" role="cell" width="22.857142857142858" x="205.71428571428572" y="359">-1 47 <rect height="120" role="cell" width="22.8571" x="205.7143" y="359"> 48 48 <title>2</title> 49 49 </rect>50 -1 <rect height="180" role="cell" width="22.857142857142858" x="365.7142857142857" y="299">-1 50 <rect height="180" role="cell" width="22.8571" x="365.7143" y="299"> 51 51 <title>3</title> 52 52 </rect>53 -1 <rect height="60" role="cell" width="22.857142857142858" x="525.7142857142858" y="419">-1 53 <rect height="60" role="cell" width="22.8571" x="525.7143" y="419"> 54 54 <title>1</title> 55 55 </rect> 56 56 </g> 57 57 <g fill="#4daf4a" role="row" stroke="white">58 -1 <rect height="300" role="cell" width="22.857142857142858" x="68.57142857142857" y="179">-1 58 <rect height="300" role="cell" width="22.8571" x="68.5714" y="179"> 59 59 <title>5</title> 60 60 </rect>61 -1 <rect height="180" role="cell" width="22.857142857142858" x="228.57142857142858" y="299">-1 61 <rect height="180" role="cell" width="22.8571" x="228.5714" y="299"> 62 62 <title>3</title> 63 63 </rect>64 -1 <rect height="240" role="cell" width="22.857142857142858" x="388.57142857142856" y="239">-1 64 <rect height="240" role="cell" width="22.8571" x="388.5714" y="239"> 65 65 <title>4</title> 66 66 </rect>67 -1 <rect height="120" role="cell" width="22.857142857142858" x="548.5714285714286" y="359">-1 67 <rect height="120" role="cell" width="22.8571" x="548.5714" y="359"> 68 68 <title>2</title> 69 69 </rect> 70 70 </g> 71 71 <g fill="#984ea3" role="row" stroke="white">72 -1 <rect height="240" role="cell" width="22.857142857142858" x="91.42857142857143" y="239">-1 72 <rect height="240" role="cell" width="22.8571" x="91.4286" y="239"> 73 73 <title>4</title> 74 74 </rect>75 -1 <rect height="120" role="cell" width="22.857142857142858" x="251.42857142857144" y="359">-1 75 <rect height="120" role="cell" width="22.8571" x="251.4286" y="359"> 76 76 <title>2</title> 77 77 </rect>78 -1 <rect height="60" role="cell" width="22.857142857142858" x="411.42857142857144" y="419">-1 78 <rect height="60" role="cell" width="22.8571" x="411.4286" y="419"> 79 79 <title>1</title> 80 80 </rect>81 -1 <rect height="240" role="cell" width="22.857142857142858" x="571.4285714285714" y="239">-1 81 <rect height="240" role="cell" width="22.8571" x="571.4286" y="239"> 82 82 <title>4</title> 83 83 </rect> 84 84 </g> 85 85 <g fill="#ff7f00" role="row" stroke="white">86 -1 <rect height="360" role="cell" width="22.857142857142858" x="114.28571428571429" y="119">-1 86 <rect height="360" role="cell" width="22.8571" x="114.2857" y="119"> 87 87 <title>6</title> 88 88 </rect>89 -1 <rect height="240" role="cell" width="22.857142857142858" x="274.2857142857143" y="239">-1 89 <rect height="240" role="cell" width="22.8571" x="274.2857" y="239"> 90 90 <title>4</title> 91 91 </rect>92 -1 <rect height="300" role="cell" width="22.857142857142858" x="434.2857142857143" y="179">-1 92 <rect height="300" role="cell" width="22.8571" x="434.2857" y="179"> 93 93 <title>5</title> 94 94 </rect>95 -1 <rect height="120" role="cell" width="22.857142857142858" x="594.2857142857143" y="359">-1 95 <rect height="120" role="cell" width="22.8571" x="594.2857" y="359"> 96 96 <title>2</title> 97 97 </rect> 98 98 </g>
diff --git a/tests/long_StackedColumnRenderer.svg b/tests/long_StackedColumnRenderer.svg
@@ -27,72 +27,72 @@ 27 27 <text dominant-baseline="middle" fill="#333" x="322" y="10">Other (82)</text> 28 28 </g> 29 29 <g fill="#e41a1c" role="row" stroke="white">30 -1 <rect height="36" role="cell" width="53.333333333333336" x="53.33333333333333" y="443">-1 30 <rect height="36" role="cell" width="53.3333" x="53.3333" y="443"> 31 31 <title>3</title> 32 32 </rect>33 -1 <rect height="48" role="cell" width="53.333333333333336" x="213.33333333333334" y="431">-1 33 <rect height="48" role="cell" width="53.3333" x="213.3333" y="431"> 34 34 <title>4</title> 35 35 </rect>36 -1 <rect height="48" role="cell" width="53.333333333333336" x="373.3333333333333" y="431">-1 36 <rect height="48" role="cell" width="53.3333" x="373.3333" y="431"> 37 37 <title>4</title> 38 38 </rect>39 -1 <rect height="60" role="cell" width="53.333333333333336" x="533.3333333333334" y="419">-1 39 <rect height="60" role="cell" width="53.3333" x="533.3333" y="419"> 40 40 <title>5</title> 41 41 </rect> 42 42 </g> 43 43 <g fill="#377eb8" role="row" stroke="white">44 -1 <rect height="24" role="cell" width="53.333333333333336" x="53.33333333333333" y="419">-1 44 <rect height="24" role="cell" width="53.3333" x="53.3333" y="419"> 45 45 <title>2</title> 46 46 </rect>47 -1 <rect height="24" role="cell" width="53.333333333333336" x="213.33333333333334" y="407">-1 47 <rect height="24" role="cell" width="53.3333" x="213.3333" y="407"> 48 48 <title>2</title> 49 49 </rect>50 -1 <rect height="36" role="cell" width="53.333333333333336" x="373.3333333333333" y="395">-1 50 <rect height="36" role="cell" width="53.3333" x="373.3333" y="395"> 51 51 <title>3</title> 52 52 </rect>53 -1 <rect height="12" role="cell" width="53.333333333333336" x="533.3333333333334" y="407">-1 53 <rect height="12" role="cell" width="53.3333" x="533.3333" y="407"> 54 54 <title>1</title> 55 55 </rect> 56 56 </g> 57 57 <g fill="#4daf4a" role="row" stroke="white">58 -1 <rect height="60" role="cell" width="53.333333333333336" x="53.33333333333333" y="359">-1 58 <rect height="60" role="cell" width="53.3333" x="53.3333" y="359"> 59 59 <title>5</title> 60 60 </rect>61 -1 <rect height="36" role="cell" width="53.333333333333336" x="213.33333333333334" y="371">-1 61 <rect height="36" role="cell" width="53.3333" x="213.3333" y="371"> 62 62 <title>3</title> 63 63 </rect>64 -1 <rect height="48" role="cell" width="53.333333333333336" x="373.3333333333333" y="347">-1 64 <rect height="48" role="cell" width="53.3333" x="373.3333" y="347"> 65 65 <title>4</title> 66 66 </rect>67 -1 <rect height="24" role="cell" width="53.333333333333336" x="533.3333333333334" y="383">-1 67 <rect height="24" role="cell" width="53.3333" x="533.3333" y="383"> 68 68 <title>2</title> 69 69 </rect> 70 70 </g> 71 71 <g fill="#984ea3" role="row" stroke="white">72 -1 <rect height="48" role="cell" width="53.333333333333336" x="53.33333333333333" y="311">-1 72 <rect height="48" role="cell" width="53.3333" x="53.3333" y="311"> 73 73 <title>4</title> 74 74 </rect>75 -1 <rect height="24" role="cell" width="53.333333333333336" x="213.33333333333334" y="347">-1 75 <rect height="24" role="cell" width="53.3333" x="213.3333" y="347"> 76 76 <title>2</title> 77 77 </rect>78 -1 <rect height="12" role="cell" width="53.333333333333336" x="373.3333333333333" y="335">-1 78 <rect height="12" role="cell" width="53.3333" x="373.3333" y="335"> 79 79 <title>1</title> 80 80 </rect>81 -1 <rect height="48" role="cell" width="53.333333333333336" x="533.3333333333334" y="335">-1 81 <rect height="48" role="cell" width="53.3333" x="533.3333" y="335"> 82 82 <title>4</title> 83 83 </rect> 84 84 </g> 85 85 <g fill="#ff7f00" role="row" stroke="white">86 -1 <rect height="72" role="cell" width="53.333333333333336" x="53.33333333333333" y="239">-1 86 <rect height="72" role="cell" width="53.3333" x="53.3333" y="239"> 87 87 <title>6</title> 88 88 </rect>89 -1 <rect height="48" role="cell" width="53.333333333333336" x="213.33333333333334" y="299">-1 89 <rect height="48" role="cell" width="53.3333" x="213.3333" y="299"> 90 90 <title>4</title> 91 91 </rect>92 -1 <rect height="60" role="cell" width="53.333333333333336" x="373.3333333333333" y="275">-1 92 <rect height="60" role="cell" width="53.3333" x="373.3333" y="275"> 93 93 <title>5</title> 94 94 </rect>95 -1 <rect height="24" role="cell" width="53.333333333333336" x="533.3333333333334" y="311">-1 95 <rect height="24" role="cell" width="53.3333" x="533.3333" y="311"> 96 96 <title>2</title> 97 97 </rect> 98 98 </g>
diff --git a/tests/no-legend_StackedColumnRenderer.svg b/tests/no-legend_StackedColumnRenderer.svg
@@ -14,44 +14,44 @@ 14 14 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="560" y="490">Bananas</text> 15 15 </g> 16 16 <g fill="#e41a1c" role="row" stroke="white">17 -1 <rect height="72" role="cell" width="53.333333333333336" x="53.33333333333333" y="407">-1 17 <rect height="72" role="cell" width="53.3333" x="53.3333" y="407"> 18 18 <title>3</title> 19 19 </rect>20 -1 <rect height="96" role="cell" width="53.333333333333336" x="213.33333333333334" y="383">-1 20 <rect height="96" role="cell" width="53.3333" x="213.3333" y="383"> 21 21 <title>4</title> 22 22 </rect>23 -1 <rect height="96" role="cell" width="53.333333333333336" x="373.3333333333333" y="383">-1 23 <rect height="96" role="cell" width="53.3333" x="373.3333" y="383"> 24 24 <title>4</title> 25 25 </rect>26 -1 <rect height="120" role="cell" width="53.333333333333336" x="533.3333333333334" y="359">-1 26 <rect height="120" role="cell" width="53.3333" x="533.3333" y="359"> 27 27 <title>5</title> 28 28 </rect> 29 29 </g> 30 30 <g fill="#377eb8" role="row" stroke="white">31 -1 <rect height="48" role="cell" width="53.333333333333336" x="53.33333333333333" y="359">-1 31 <rect height="48" role="cell" width="53.3333" x="53.3333" y="359"> 32 32 <title>2</title> 33 33 </rect>34 -1 <rect height="48" role="cell" width="53.333333333333336" x="213.33333333333334" y="335">-1 34 <rect height="48" role="cell" width="53.3333" x="213.3333" y="335"> 35 35 <title>2</title> 36 36 </rect>37 -1 <rect height="72" role="cell" width="53.333333333333336" x="373.3333333333333" y="311">-1 37 <rect height="72" role="cell" width="53.3333" x="373.3333" y="311"> 38 38 <title>3</title> 39 39 </rect>40 -1 <rect height="24" role="cell" width="53.333333333333336" x="533.3333333333334" y="335">-1 40 <rect height="24" role="cell" width="53.3333" x="533.3333" y="335"> 41 41 <title>1</title> 42 42 </rect> 43 43 </g> 44 44 <g fill="#4daf4a" role="row" stroke="white">45 -1 <rect height="120" role="cell" width="53.333333333333336" x="53.33333333333333" y="239">-1 45 <rect height="120" role="cell" width="53.3333" x="53.3333" y="239"> 46 46 <title>5</title> 47 47 </rect>48 -1 <rect height="72" role="cell" width="53.333333333333336" x="213.33333333333334" y="263">-1 48 <rect height="72" role="cell" width="53.3333" x="213.3333" y="263"> 49 49 <title>3</title> 50 50 </rect>51 -1 <rect height="96" role="cell" width="53.333333333333336" x="373.3333333333333" y="215">-1 51 <rect height="96" role="cell" width="53.3333" x="373.3333" y="215"> 52 52 <title>4</title> 53 53 </rect>54 -1 <rect height="48" role="cell" width="53.333333333333336" x="533.3333333333334" y="287">-1 54 <rect height="48" role="cell" width="53.3333" x="533.3333" y="287"> 55 55 <title>2</title> 56 56 </rect> 57 57 </g>
diff --git a/tests/simple_StackedColumnRenderer.svg b/tests/simple_StackedColumnRenderer.svg
@@ -23,44 +23,44 @@ 23 23 <text dominant-baseline="middle" fill="#333" x="606" y="-10">Joe</text> 24 24 </g> 25 25 <g fill="#e41a1c" role="row" stroke="white">26 -1 <rect height="72" role="cell" width="53.333333333333336" x="53.33333333333333" y="407">-1 26 <rect height="72" role="cell" width="53.3333" x="53.3333" y="407"> 27 27 <title>3</title> 28 28 </rect>29 -1 <rect height="96" role="cell" width="53.333333333333336" x="213.33333333333334" y="383">-1 29 <rect height="96" role="cell" width="53.3333" x="213.3333" y="383"> 30 30 <title>4</title> 31 31 </rect>32 -1 <rect height="96" role="cell" width="53.333333333333336" x="373.3333333333333" y="383">-1 32 <rect height="96" role="cell" width="53.3333" x="373.3333" y="383"> 33 33 <title>4</title> 34 34 </rect>35 -1 <rect height="120" role="cell" width="53.333333333333336" x="533.3333333333334" y="359">-1 35 <rect height="120" role="cell" width="53.3333" x="533.3333" y="359"> 36 36 <title>5</title> 37 37 </rect> 38 38 </g> 39 39 <g fill="#377eb8" role="row" stroke="white">40 -1 <rect height="48" role="cell" width="53.333333333333336" x="53.33333333333333" y="359">-1 40 <rect height="48" role="cell" width="53.3333" x="53.3333" y="359"> 41 41 <title>2</title> 42 42 </rect>43 -1 <rect height="48" role="cell" width="53.333333333333336" x="213.33333333333334" y="335">-1 43 <rect height="48" role="cell" width="53.3333" x="213.3333" y="335"> 44 44 <title>2</title> 45 45 </rect>46 -1 <rect height="72" role="cell" width="53.333333333333336" x="373.3333333333333" y="311">-1 46 <rect height="72" role="cell" width="53.3333" x="373.3333" y="311"> 47 47 <title>3</title> 48 48 </rect>49 -1 <rect height="24" role="cell" width="53.333333333333336" x="533.3333333333334" y="335">-1 49 <rect height="24" role="cell" width="53.3333" x="533.3333" y="335"> 50 50 <title>1</title> 51 51 </rect> 52 52 </g> 53 53 <g fill="#4daf4a" role="row" stroke="white">54 -1 <rect height="120" role="cell" width="53.333333333333336" x="53.33333333333333" y="239">-1 54 <rect height="120" role="cell" width="53.3333" x="53.3333" y="239"> 55 55 <title>5</title> 56 56 </rect>57 -1 <rect height="72" role="cell" width="53.333333333333336" x="213.33333333333334" y="263">-1 57 <rect height="72" role="cell" width="53.3333" x="213.3333" y="263"> 58 58 <title>3</title> 59 59 </rect>60 -1 <rect height="96" role="cell" width="53.333333333333336" x="373.3333333333333" y="215">-1 60 <rect height="96" role="cell" width="53.3333" x="373.3333" y="215"> 61 61 <title>4</title> 62 62 </rect>63 -1 <rect height="48" role="cell" width="53.333333333333336" x="533.3333333333334" y="287">-1 63 <rect height="48" role="cell" width="53.3333" x="533.3333" y="287"> 64 64 <title>2</title> 65 65 </rect> 66 66 </g>
diff --git a/tests/single_ColumnRenderer.svg b/tests/single_ColumnRenderer.svg
@@ -14,16 +14,16 @@ 14 14 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="560" y="490">Bananas</text> 15 15 </g> 16 16 <g fill="#e41a1c" role="row" stroke="white">17 -1 <rect height="240" role="cell" width="53.333333333333336" x="53.333333333333336" y="239">-1 17 <rect height="240" role="cell" width="53.3333" x="53.3333" y="239"> 18 18 <title>3</title> 19 19 </rect>20 -1 <rect height="320" role="cell" width="53.333333333333336" x="213.33333333333334" y="159">-1 20 <rect height="320" role="cell" width="53.3333" x="213.3333" y="159"> 21 21 <title>4</title> 22 22 </rect>23 -1 <rect height="320" role="cell" width="53.333333333333336" x="373.33333333333337" y="159">-1 23 <rect height="320" role="cell" width="53.3333" x="373.3333" y="159"> 24 24 <title>4</title> 25 25 </rect>26 -1 <rect height="400" role="cell" width="53.333333333333336" x="533.3333333333334" y="79">-1 26 <rect height="400" role="cell" width="53.3333" x="533.3333" y="79"> 27 27 <title>5</title> 28 28 </rect> 29 29 </g>
diff --git a/tests/single_StackedColumnRenderer.svg b/tests/single_StackedColumnRenderer.svg
@@ -14,16 +14,16 @@ 14 14 <text dominant-baseline="middle" fill="#333" role="columnheader" text-anchor="middle" x="560" y="490">Bananas</text> 15 15 </g> 16 16 <g fill="#e41a1c" role="row" stroke="white">17 -1 <rect height="240" role="cell" width="53.333333333333336" x="53.33333333333333" y="239">-1 17 <rect height="240" role="cell" width="53.3333" x="53.3333" y="239"> 18 18 <title>3</title> 19 19 </rect>20 -1 <rect height="320" role="cell" width="53.333333333333336" x="213.33333333333334" y="159">-1 20 <rect height="320" role="cell" width="53.3333" x="213.3333" y="159"> 21 21 <title>4</title> 22 22 </rect>23 -1 <rect height="320" role="cell" width="53.333333333333336" x="373.3333333333333" y="159">-1 23 <rect height="320" role="cell" width="53.3333" x="373.3333" y="159"> 24 24 <title>4</title> 25 25 </rect>26 -1 <rect height="400" role="cell" width="53.333333333333336" x="533.3333333333334" y="79">-1 26 <rect height="400" role="cell" width="53.3333" x="533.3333" y="79"> 27 27 <title>5</title> 28 28 </rect> 29 29 </g>