summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-19 13:29:02 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-19 13:29:02 +0000
commitfe13be6dac3b9a019cd4ee7a4e1b3272ef922871 (patch)
tree3ac7e934fb907911583e4bd4c48aec7dc12bde95 /tests
parent27cffe45cdf9cc6d36751bcc998459ae9d8a1f4b (diff)
downloadzetacomponents-graph-fe13be6dac3b9a019cd4ee7a4e1b3272ef922871.zip
zetacomponents-graph-fe13be6dac3b9a019cd4ee7a4e1b3272ef922871.tar.gz
- Added background and border to font configuration
- Show value for highlighted datapoints in bar and line charts
Diffstat (limited to 'tests')
-rw-r--r--tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBackground.pngbin0 -> 3847 bytes
-rw-r--r--tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBorder.pngbin0 -> 3533 bytes
-rw-r--r--tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.pngbin0 -> 3902 bytes
-rw-r--r--tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.pngbin0 -> 3902 bytes
-rw-r--r--tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.pngbin0 -> 3901 bytes
-rw-r--r--tests/data/compare/ezcGraphRenderer2dTest_testRenderLineChartWithHighlightedData.svg2
-rw-r--r--tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithHighlightedData.svg2
-rw-r--r--tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBackground.svg2
-rw-r--r--tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBorder.svg2
-rw-r--r--tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.svg2
-rw-r--r--tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.svg2
-rw-r--r--tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.svg2
-rw-r--r--tests/driver_gd_test.php156
-rw-r--r--tests/driver_svg_test.php125
-rw-r--r--tests/pie_test.php4
-rw-r--r--tests/renderer_2d_test.php30
-rw-r--r--tests/renderer_3d_test.php32
17 files changed, 357 insertions, 4 deletions
diff --git a/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBackground.png b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBackground.png
new file mode 100644
index 0000000..b40d162
--- /dev/null
+++ b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBackground.png
Binary files differ
diff --git a/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBorder.png b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBorder.png
new file mode 100644
index 0000000..517ceb9
--- /dev/null
+++ b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithBorder.png
Binary files differ
diff --git a/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.png b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.png
new file mode 100644
index 0000000..39f1898
--- /dev/null
+++ b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.png
Binary files differ
diff --git a/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.png b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.png
new file mode 100644
index 0000000..797e162
--- /dev/null
+++ b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.png
Binary files differ
diff --git a/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.png b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.png
new file mode 100644
index 0000000..8592407
--- /dev/null
+++ b/tests/data/compare/ezcGraphGdDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.png
Binary files differ
diff --git a/tests/data/compare/ezcGraphRenderer2dTest_testRenderLineChartWithHighlightedData.svg b/tests/data/compare/ezcGraphRenderer2dTest_testRenderLineChartWithHighlightedData.svg
new file mode 100644
index 0000000..f62fe67
--- /dev/null
+++ b/tests/data/compare/ezcGraphRenderer2dTest_testRenderLineChartWithHighlightedData.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="500" height="200" version="1.0" id="ezcGraph"><defs/><g id="ezcGraphChart" color-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="optimizeLegibility"><path d=" M 0.0000,200.0000 L 0.0000,0.0000 L 500.0000,0.0000 L 500.0000,200.0000 L 0.0000,200.0000 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_1"/><path d=" M 1.0000,199.0000 L 1.0000,1.0000 L 99.0000,1.0000 L 99.0000,199.0000 L 1.0000,199.0000 z " style="fill: none; stroke: #555753; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_2"/><path d=" M 2.0000,198.0000 L 2.0000,2.0000 L 98.0000,2.0000 L 98.0000,198.0000 L 2.0000,198.0000 z " style="fill: #000000; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_3"/><ellipse cx="11" cy="11" rx="7" ry="7" style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_4"/><ellipse cx="11" cy="29" rx="7" ry="7" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_6"/><path d=" M 100.0000,140.0000 L 500.0000,140.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_8"/><path d=" M 492.0000,144.0000 L 500.0000,140.0000 L 492.0000,136.0000 L 492.0000,144.0000 z " style="fill: #eeeeec; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_9"/><path d=" M 140.0000,200.0000 L 140.0000,0.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_10"/><path d=" M 137.5000,5.0000 L 140.0000,0.0000 L 142.5000,5.0000 L 137.5000,5.0000 z " style="fill: #eeeeec; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_11"/><path d=" M 204.0000,20.0000 L 204.0000,180.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_13"/><path d=" M 204.0000,137.0000 L 204.0000,143.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_14"/><path d=" M 268.0000,20.0000 L 268.0000,180.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_16"/><path d=" M 268.0000,137.0000 L 268.0000,143.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_17"/><path d=" M 332.0000,20.0000 L 332.0000,180.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_19"/><path d=" M 332.0000,137.0000 L 332.0000,143.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_20"/><path d=" M 396.0000,20.0000 L 396.0000,180.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_22"/><path d=" M 396.0000,137.0000 L 396.0000,143.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_23"/><path d=" M 460.0000,20.0000 L 460.0000,180.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_25"/><path d=" M 460.0000,137.0000 L 460.0000,143.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_26"/><path d=" M 140.0000,180.0000 L 460.0000,180.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_27"/><path d=" M 140.0000,180.0000 L 143.0000,180.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_28"/><path d=" M 140.0000,100.0000 L 460.0000,100.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_31"/><path d=" M 140.0000,100.0000 L 143.0000,100.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_32"/><path d=" M 140.0000,60.0000 L 460.0000,60.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_34"/><path d=" M 140.0000,60.0000 L 143.0000,60.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_35"/><path d=" M 140.0000,20.0000 L 460.0000,20.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_37"/><path d=" M 140.0000,20.0000 L 143.0000,20.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_38"/><path d=" M 199.2425,140.0000 L 144.7575,140.0000 L 144.7575,102.5600 L 199.2425,102.5600 L 199.2425,140.0000 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_40"/><path d=" M 199.2425,140.0000 L 144.7575,140.0000 L 144.7575,102.5600 L 199.2425,102.5600 L 199.2425,140.0000 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_41"/><path d=" M 263.2425,140.0000 L 208.7575,140.0000 L 208.7575,143.3600 L 263.2425,143.3600 L 263.2425,140.0000 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_43"/><path d=" M 263.2425,140.0000 L 208.7575,140.0000 L 208.7575,143.3600 L 263.2425,143.3600 L 263.2425,140.0000 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_44"/><path d=" M 327.2425,140.0000 L 272.7575,140.0000 L 272.7575,88.1600 L 327.2425,88.1600 L 327.2425,140.0000 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_46"/><path d=" M 327.2425,140.0000 L 272.7575,140.0000 L 272.7575,88.1600 L 327.2425,88.1600 L 327.2425,140.0000 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_47"/><path d=" M 391.2425,140.0000 L 336.7575,140.0000 L 336.7575,159.2000 L 391.2425,159.2000 L 391.2425,140.0000 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_49"/><path d=" M 391.2425,140.0000 L 336.7575,140.0000 L 336.7575,159.2000 L 391.2425,159.2000 L 391.2425,140.0000 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_50"/><path d=" M 455.2425,140.0000 L 400.7575,140.0000 L 400.7575,139.8400 L 455.2425,139.8400 L 455.2425,140.0000 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_52"/><path d=" M 455.2425,140.0000 L 400.7575,140.0000 L 400.7575,139.8400 L 455.2425,139.8400 L 455.2425,140.0000 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_53"/><path d=" M 172.0000,53.1200 L 172.0000,53.1200" style="fill: none; stroke: #ef2929; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_55"/><path d=" M 172.0000,53.1200 L 236.0000,102.5600" style="fill: none; stroke: #ef2929; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_56"/><path d=" M 236.0000,102.5600 L 300.0000,92.3200" style="fill: none; stroke: #ef2929; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_57"/><path d=" M 300.0000,92.3200 L 364.0000,139.2000" style="fill: none; stroke: #ef2929; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_58"/><path d=" M 364.0000,139.2000 L 428.0000,41.9200" style="fill: none; stroke: #ef2929; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_59"/><ellipse cx="172" cy="53.12" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_61"/><ellipse cx="236" cy="102.56" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_62"/><ellipse cx="300" cy="92.32" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_63"/><ellipse cx="364" cy="139.2" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_64"/><ellipse cx="428" cy="41.92" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_65"/><text id="ezcGraphTextBox_5" x="19" text-length="46.2px" y="18" style="font-size: 14px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">Line 1</text><text id="ezcGraphTextBox_7" x="19" text-length="46.2px" y="36" style="font-size: 14px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">Line 2</text><text id="ezcGraphTextBox_12" x="143.4" text-length="57.2px" y="155" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 1</text><text id="ezcGraphTextBox_15" x="207.4" text-length="57.2px" y="155" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 2</text><text id="ezcGraphTextBox_18" x="271.4" text-length="57.2px" y="155" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 3</text><text id="ezcGraphTextBox_21" x="335.4" text-length="57.2px" y="155" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 4</text><text id="ezcGraphTextBox_24" x="399.4" text-length="57.2px" y="155" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 5</text><text id="ezcGraphTextBox_29" x="109.4" text-length="28.6px" y="178" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">-250</text><text id="ezcGraphTextBox_30" x="130.85" text-length="7.15px" y="138" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">0</text><text id="ezcGraphTextBox_33" x="116.55" text-length="21.45px" y="98" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">250</text><text id="ezcGraphTextBox_36" x="116.55" text-length="21.45px" y="58" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">500</text><text id="ezcGraphTextBox_39" x="116.55" text-length="21.45px" y="35" style="font-size: 13px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">750</text><path d=" M 163.2500,96.5600 L 163.2500,85.0600 L 181.2500,85.0600 L 181.2500,96.5600 L 163.2500,96.5600 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_66"/><path d=" M 163.2500,96.5600 L 163.2500,85.0600 L 181.2500,85.0600 L 181.2500,96.5600 L 163.2500,96.5600 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_67"/><text id="ezcGraphTextBox_42" x="163.75" text-length="16.5px" y="95.56" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">234</text><path d=" M 227.2500,161.3600 L 227.2500,149.8600 L 245.2500,149.8600 L 245.2500,161.3600 L 227.2500,161.3600 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_68"/><path d=" M 227.2500,161.3600 L 227.2500,149.8600 L 245.2500,149.8600 L 245.2500,161.3600 L 227.2500,161.3600 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_69"/><text id="ezcGraphTextBox_45" x="227.75" text-length="16.5px" y="160.36" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">-21</text><path d=" M 291.2500,82.1600 L 291.2500,70.6600 L 309.2500,70.6600 L 309.2500,82.1600 L 291.2500,82.1600 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_70"/><path d=" M 291.2500,82.1600 L 291.2500,70.6600 L 309.2500,70.6600 L 309.2500,82.1600 L 291.2500,82.1600 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_71"/><text id="ezcGraphTextBox_48" x="291.75" text-length="16.5px" y="81.16" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">324</text><path d=" M 352.5000,177.2000 L 352.5000,165.7000 L 376.0000,165.7000 L 376.0000,177.2000 L 352.5000,177.2000 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_72"/><path d=" M 352.5000,177.2000 L 352.5000,165.7000 L 376.0000,165.7000 L 376.0000,177.2000 L 352.5000,177.2000 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_73"/><text id="ezcGraphTextBox_51" x="353" text-length="22px" y="176.2" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">-120</text><path d=" M 424.7500,133.8400 L 424.7500,122.3400 L 431.7500,122.3400 L 431.7500,133.8400 L 424.7500,133.8400 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_74"/><path d=" M 424.7500,133.8400 L 424.7500,122.3400 L 431.7500,122.3400 L 431.7500,133.8400 L 424.7500,133.8400 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_75"/><text id="ezcGraphTextBox_54" x="425.25" text-length="5.5px" y="132.84" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">1</text><path d=" M 419.2500,35.9200 L 419.2500,24.4200 L 437.2500,24.4200 L 437.2500,35.9200 L 419.2500,35.9200 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_76"/><path d=" M 419.2500,35.9200 L 419.2500,24.4200 L 437.2500,24.4200 L 437.2500,35.9200 L 419.2500,35.9200 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_77"/><text id="ezcGraphTextBox_60" x="419.75" text-length="16.5px" y="34.92" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">613</text></g></svg>
diff --git a/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithHighlightedData.svg b/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithHighlightedData.svg
new file mode 100644
index 0000000..5739c43
--- /dev/null
+++ b/tests/data/compare/ezcGraphRenderer3dTest_testRenderLineChartWithHighlightedData.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="500" height="200" version="1.0" id="ezcGraph"><defs><linearGradient id="Definition_LinearGradient_8_8_13_13_abefff00_39506800"><stop offset="0" style="stop-color: #abefff; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #395068; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_8_8_13_13_abefff00_39506800" x1="8.100505066" y1="8.100505066" x2="13.899494934" y2="13.899494934" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_8_8_13_13_abefff00_39506800"/><linearGradient id="Definition_LinearGradient_8_26_13_31_ff3e3e00_78151500"><stop offset="0" style="stop-color: #ff3e3e; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #781515; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_8_26_13_31_ff3e3e00_78151500" x1="8.100505066" y1="26.100505066" x2="13.899494934" y2="31.899494934" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_8_26_13_31_ff3e3e00_78151500"/><linearGradient id="Definition_LinearGradient_187_91_189_93_abefff00_39506800"><stop offset="0" style="stop-color: #abefff; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #395068; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_187_91_189_93_abefff00_39506800" x1="187.157359314" y1="91.061359314" x2="189.642640686" y2="93.546640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_187_91_189_93_abefff00_39506800"/><linearGradient id="Definition_LinearGradient_247_127_250_130_abefff00_39506800"><stop offset="0" style="stop-color: #abefff; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #395068; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_247_127_250_130_abefff00_39506800" x1="247.957359314" y1="127.781359314" x2="250.442640686" y2="130.266640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_247_127_250_130_abefff00_39506800"/><linearGradient id="Definition_LinearGradient_308_78_311_80_abefff00_39506800"><stop offset="0" style="stop-color: #abefff; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #395068; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_308_78_311_80_abefff00_39506800" x1="308.757359314" y1="78.101359314" x2="311.242640686" y2="80.586640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_308_78_311_80_abefff00_39506800"/><linearGradient id="Definition_LinearGradient_369_142_372_144_abefff00_39506800"><stop offset="0" style="stop-color: #abefff; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #395068; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_369_142_372_144_abefff00_39506800" x1="369.557359314" y1="142.037359314" x2="372.042640686" y2="144.522640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_369_142_372_144_abefff00_39506800"/><linearGradient id="Definition_LinearGradient_430_124_432_127_abefff00_39506800"><stop offset="0" style="stop-color: #abefff; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #395068; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_430_124_432_127_abefff00_39506800" x1="430.357359314" y1="124.613359314" x2="432.842640686" y2="127.098640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_430_124_432_127_abefff00_39506800"/><linearGradient id="Definition_LinearGradient_177_56_179_59_ff3e3e00_78151500"><stop offset="0" style="stop-color: #ff3e3e; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #781515; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_177_56_179_59_ff3e3e00_78151500" x1="177.157359314" y1="56.565359314" x2="179.642640686" y2="59.050640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_177_56_179_59_ff3e3e00_78151500"/><linearGradient id="Definition_LinearGradient_237_101_240_103_ff3e3e00_78151500"><stop offset="0" style="stop-color: #ff3e3e; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #781515; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_237_101_240_103_ff3e3e00_78151500" x1="237.957359314" y1="101.061359314" x2="240.442640686" y2="103.546640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_237_101_240_103_ff3e3e00_78151500"/><linearGradient id="Definition_LinearGradient_298_91_301_94_ff3e3e00_78151500"><stop offset="0" style="stop-color: #ff3e3e; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #781515; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_298_91_301_94_ff3e3e00_78151500" x1="298.757359314" y1="91.845359314" x2="301.242640686" y2="94.330640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_298_91_301_94_ff3e3e00_78151500"/><linearGradient id="Definition_LinearGradient_359_134_362_136_ff3e3e00_78151500"><stop offset="0" style="stop-color: #ff3e3e; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #781515; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_359_134_362_136_ff3e3e00_78151500" x1="359.557359314" y1="134.037359314" x2="362.042640686" y2="136.522640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_359_134_362_136_ff3e3e00_78151500"/><linearGradient id="Definition_LinearGradient_420_46_422_48_ff3e3e00_78151500"><stop offset="0" style="stop-color: #ff3e3e; stop-opacity: 1.00;"/><stop offset="1" style="stop-color: #781515; stop-opacity: 1.00;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_420_46_422_48_ff3e3e00_78151500" x1="420.357359314" y1="46.485359314" x2="422.842640686" y2="48.970640686" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_420_46_422_48_ff3e3e00_78151500"/></defs><g id="ezcGraphChart" color-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="optimizeLegibility"><path d=" M 0.0000,200.0000 L 0.0000,0.0000 L 500.0000,0.0000 L 500.0000,200.0000 L 0.0000,200.0000 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_1"/><path d=" M 1.0000,199.0000 L 1.0000,1.0000 L 99.0000,1.0000 L 99.0000,199.0000 L 1.0000,199.0000 z " style="fill: none; stroke: #555753; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_2"/><path d=" M 2.0000,198.0000 L 2.0000,2.0000 L 98.0000,2.0000 L 98.0000,198.0000 L 2.0000,198.0000 z " style="fill: #000000; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_3"/><ellipse cx="11" cy="11" rx="7" ry="7" style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_4"/><ellipse cx="11" cy="11" rx="6.3" ry="6.3" style="fill: url(#LinearGradient_8_8_13_13_abefff00_39506800); stroke: none;" id="ezcGraphCircle_5"/><ellipse cx="11" cy="29" rx="7" ry="7" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_7"/><ellipse cx="11" cy="29" rx="6.3" ry="6.3" style="fill: url(#LinearGradient_8_26_13_31_ff3e3e00_78151500); stroke: none;" id="ezcGraphCircle_8"/><path d=" M 100.0000,146.0000 L 120.0000,126.0000 L 500.0000,126.0000 L 480.0000,146.0000 L 100.0000,146.0000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_10"/><path d=" M 120.0000,126.0000 L 500.0000,126.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_11"/><path d=" M 492.0000,130.0000 L 500.0000,126.0000 L 492.0000,122.0000 L 492.0000,130.0000 z " style="fill: #eeeeec; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_12"/><path d=" M 138.0000,200.0000 L 158.0000,180.0000 L 158.0000,0.0000 L 138.0000,20.0000 L 138.0000,200.0000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_13"/><path d=" M 158.0000,180.0000 L 158.0000,0.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_14"/><path d=" M 155.5000,5.0000 L 158.0000,0.0000 L 160.5000,5.0000 L 155.5000,5.0000 z " style="fill: #eeeeec; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_15"/><path d=" M 218.8000,162.0000 L 218.8000,18.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_17"/><path d=" M 198.8000,143.3000 L 218.8000,123.3000 L 218.8000,128.7000 L 198.8000,148.7000 L 198.8000,143.3000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_18"/><path d=" M 198.8000,143.3000 L 218.8000,123.3000 L 218.8000,128.7000 L 198.8000,148.7000 L 198.8000,143.3000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_19"/><path d=" M 279.6000,162.0000 L 279.6000,18.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_21"/><path d=" M 259.6000,143.3000 L 279.6000,123.3000 L 279.6000,128.7000 L 259.6000,148.7000 L 259.6000,143.3000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_22"/><path d=" M 259.6000,143.3000 L 279.6000,123.3000 L 279.6000,128.7000 L 259.6000,148.7000 L 259.6000,143.3000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_23"/><path d=" M 340.4000,162.0000 L 340.4000,18.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_25"/><path d=" M 320.4000,143.3000 L 340.4000,123.3000 L 340.4000,128.7000 L 320.4000,148.7000 L 320.4000,143.3000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_26"/><path d=" M 320.4000,143.3000 L 340.4000,123.3000 L 340.4000,128.7000 L 320.4000,148.7000 L 320.4000,143.3000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_27"/><path d=" M 401.2000,162.0000 L 401.2000,18.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_29"/><path d=" M 381.2000,143.3000 L 401.2000,123.3000 L 401.2000,128.7000 L 381.2000,148.7000 L 381.2000,143.3000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_30"/><path d=" M 381.2000,143.3000 L 401.2000,123.3000 L 401.2000,128.7000 L 381.2000,148.7000 L 381.2000,143.3000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_31"/><path d=" M 462.0000,162.0000 L 462.0000,18.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_33"/><path d=" M 442.0000,143.3000 L 462.0000,123.3000 L 462.0000,128.7000 L 442.0000,148.7000 L 442.0000,143.3000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_34"/><path d=" M 442.0000,143.3000 L 462.0000,123.3000 L 462.0000,128.7000 L 442.0000,148.7000 L 442.0000,143.3000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_35"/><path d=" M 462.0000,162.0000 L 158.0000,162.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_36"/><path d=" M 138.0000,182.0000 L 158.0000,162.0000 L 160.8500,162.0000 L 140.8500,182.0000 L 138.0000,182.0000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_37"/><path d=" M 138.0000,182.0000 L 158.0000,162.0000 L 160.8500,162.0000 L 140.8500,182.0000 L 138.0000,182.0000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_38"/><path d=" M 462.0000,90.0000 L 158.0000,90.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_41"/><path d=" M 138.0000,110.0000 L 158.0000,90.0000 L 160.8500,90.0000 L 140.8500,110.0000 L 138.0000,110.0000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_42"/><path d=" M 138.0000,110.0000 L 158.0000,90.0000 L 160.8500,90.0000 L 140.8500,110.0000 L 138.0000,110.0000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_43"/><path d=" M 462.0000,54.0000 L 158.0000,54.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_45"/><path d=" M 138.0000,74.0000 L 158.0000,54.0000 L 160.8500,54.0000 L 140.8500,74.0000 L 138.0000,74.0000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_46"/><path d=" M 138.0000,74.0000 L 158.0000,54.0000 L 160.8500,54.0000 L 140.8500,74.0000 L 138.0000,74.0000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_47"/><path d=" M 462.0000,18.0000 L 158.0000,18.0000" style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_49"/><path d=" M 138.0000,38.0000 L 158.0000,18.0000 L 160.8500,18.0000 L 140.8500,38.0000 L 138.0000,38.0000 z " style="fill: #eeeeec; fill-opacity: 0.20; stroke: none;" id="ezcGraphPolygon_50"/><path d=" M 138.0000,38.0000 L 158.0000,18.0000 L 160.8500,18.0000 L 140.8500,38.0000 L 138.0000,38.0000 z " style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_51"/><path d=" M 188.4000,92.3040 L 178.4000,102.3040 L 178.4000,102.3040 L 188.4000,92.3040 L 188.4000,92.3040 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_53"/><path d=" M 188.4000,92.3040 L 178.4000,102.3040 L 178.4000,102.3040 L 188.4000,92.3040 L 188.4000,92.3040 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_54"/><path d=" M 188.4000,92.3040 L 178.4000,102.3040 L 239.2000,139.0240 L 249.2000,129.0240 L 188.4000,92.3040 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_56"/><path d=" M 188.4000,92.3040 L 178.4000,102.3040 L 239.2000,139.0240 L 249.2000,129.0240 L 188.4000,92.3040 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_57"/><path d=" M 249.2000,129.0240 L 239.2000,139.0240 L 300.0000,89.3440 L 310.0000,79.3440 L 249.2000,129.0240 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_59"/><path d=" M 249.2000,129.0240 L 239.2000,139.0240 L 300.0000,89.3440 L 310.0000,79.3440 L 249.2000,129.0240 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_60"/><path d=" M 310.0000,79.3440 L 300.0000,89.3440 L 360.8000,153.2800 L 370.8000,143.2800 L 310.0000,79.3440 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_62"/><path d=" M 310.0000,79.3440 L 300.0000,89.3440 L 360.8000,153.2800 L 370.8000,143.2800 L 310.0000,79.3440 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_63"/><path d=" M 370.8000,143.2800 L 360.8000,153.2800 L 421.6000,135.8560 L 431.6000,125.8560 L 370.8000,143.2800 z " style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_65"/><path d=" M 370.8000,143.2800 L 360.8000,153.2800 L 421.6000,135.8560 L 431.6000,125.8560 L 370.8000,143.2800 z " style="fill: none; stroke: #395068; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_66"/><path d=" M 178.4000,57.8080 L 168.4000,67.8080 L 168.4000,67.8080 L 178.4000,57.8080 L 178.4000,57.8080 z " style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_68"/><path d=" M 178.4000,57.8080 L 168.4000,67.8080 L 168.4000,67.8080 L 178.4000,57.8080 L 178.4000,57.8080 z " style="fill: none; stroke: #781515; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_69"/><path d=" M 178.4000,57.8080 L 168.4000,67.8080 L 229.2000,112.3040 L 239.2000,102.3040 L 178.4000,57.8080 z " style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_70"/><path d=" M 178.4000,57.8080 L 168.4000,67.8080 L 229.2000,112.3040 L 239.2000,102.3040 L 178.4000,57.8080 z " style="fill: none; stroke: #781515; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_71"/><path d=" M 239.2000,102.3040 L 229.2000,112.3040 L 290.0000,103.0880 L 300.0000,93.0880 L 239.2000,102.3040 z " style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_72"/><path d=" M 239.2000,102.3040 L 229.2000,112.3040 L 290.0000,103.0880 L 300.0000,93.0880 L 239.2000,102.3040 z " style="fill: none; stroke: #781515; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_73"/><path d=" M 300.0000,93.0880 L 290.0000,103.0880 L 350.8000,145.2800 L 360.8000,135.2800 L 300.0000,93.0880 z " style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_74"/><path d=" M 300.0000,93.0880 L 290.0000,103.0880 L 350.8000,145.2800 L 360.8000,135.2800 L 300.0000,93.0880 z " style="fill: none; stroke: #781515; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_75"/><path d=" M 360.8000,135.2800 L 350.8000,145.2800 L 411.6000,57.7280 L 421.6000,47.7280 L 360.8000,135.2800 z " style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_76"/><path d=" M 360.8000,135.2800 L 350.8000,145.2800 L 411.6000,57.7280 L 421.6000,47.7280 L 360.8000,135.2800 z " style="fill: none; stroke: #781515; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_77"/><ellipse cx="188.4" cy="92.304" rx="3" ry="3" style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_79"/><ellipse cx="188.4" cy="92.304" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_187_91_189_93_abefff00_39506800); stroke: none;" id="ezcGraphCircle_80"/><ellipse cx="249.2" cy="129.024" rx="3" ry="3" style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_81"/><ellipse cx="249.2" cy="129.024" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_247_127_250_130_abefff00_39506800); stroke: none;" id="ezcGraphCircle_82"/><ellipse cx="310" cy="79.344" rx="3" ry="3" style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_83"/><ellipse cx="310" cy="79.344" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_308_78_311_80_abefff00_39506800); stroke: none;" id="ezcGraphCircle_84"/><ellipse cx="370.8" cy="143.28" rx="3" ry="3" style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_85"/><ellipse cx="370.8" cy="143.28" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_369_142_372_144_abefff00_39506800); stroke: none;" id="ezcGraphCircle_86"/><ellipse cx="431.6" cy="125.856" rx="3" ry="3" style="fill: #729fcf; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_87"/><ellipse cx="431.6" cy="125.856" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_430_124_432_127_abefff00_39506800); stroke: none;" id="ezcGraphCircle_88"/><ellipse cx="178.4" cy="57.808" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_89"/><ellipse cx="178.4" cy="57.808" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_177_56_179_59_ff3e3e00_78151500); stroke: none;" id="ezcGraphCircle_90"/><ellipse cx="239.2" cy="102.304" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_91"/><ellipse cx="239.2" cy="102.304" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_237_101_240_103_ff3e3e00_78151500); stroke: none;" id="ezcGraphCircle_92"/><ellipse cx="300" cy="93.088" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_93"/><ellipse cx="300" cy="93.088" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_298_91_301_94_ff3e3e00_78151500); stroke: none;" id="ezcGraphCircle_94"/><ellipse cx="360.8" cy="135.28" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_95"/><ellipse cx="360.8" cy="135.28" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_359_134_362_136_ff3e3e00_78151500); stroke: none;" id="ezcGraphCircle_96"/><ellipse cx="421.6" cy="47.728" rx="3" ry="3" style="fill: #ef2929; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_97"/><ellipse cx="421.6" cy="47.728" rx="2.7" ry="2.7" style="fill: url(#LinearGradient_420_46_422_48_ff3e3e00_78151500); stroke: none;" id="ezcGraphCircle_98"/><path d=" M 500.0000,126.0000 L 480.0000,146.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_99"/><path d=" M 480.0000,146.0000 L 100.0000,146.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_100"/><path d=" M 100.0000,146.0000 L 120.0000,126.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_101"/><path d=" M 158.0000,0.0000 L 138.0000,20.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_102"/><path d=" M 138.0000,20.0000 L 138.0000,200.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_103"/><path d=" M 138.0000,200.0000 L 158.0000,180.0000" style="fill: none; stroke: #eeeeec; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_104"/><text id="ezcGraphTextBox_6" x="19" text-length="46.2px" y="18" style="font-size: 14px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">Line 1</text><text id="ezcGraphTextBox_9" x="19" text-length="46.2px" y="36" style="font-size: 14px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">Line 2</text><text id="ezcGraphTextBox_16" x="141.12" text-length="54.56px" y="160.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 1</text><text id="ezcGraphTextBox_20" x="201.92" text-length="54.56px" y="160.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 2</text><text id="ezcGraphTextBox_24" x="262.72" text-length="54.56px" y="160.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 3</text><text id="ezcGraphTextBox_28" x="323.52" text-length="54.56px" y="160.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 4</text><text id="ezcGraphTextBox_32" x="384.32" text-length="54.56px" y="160.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">sample 5</text><text id="ezcGraphTextBox_39" x="108.82" text-length="27.28px" y="180.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">-250</text><text id="ezcGraphTextBox_40" x="129.28" text-length="6.82px" y="144.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">0</text><text id="ezcGraphTextBox_44" x="115.64" text-length="20.46px" y="108.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">250</text><text id="ezcGraphTextBox_48" x="115.64" text-length="20.46px" y="72.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">500</text><text id="ezcGraphTextBox_52" x="115.64" text-length="20.46px" y="52.2" style="font-size: 12px; font-family: sans-serif; fill: #d3d7cf; fill-opacity: 1.00; stroke: none;">750</text><path d=" M 179.6500,88.1040 L 179.6500,76.6040 L 197.6500,76.6040 L 197.6500,88.1040 L 179.6500,88.1040 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_105"/><path d=" M 179.6500,88.1040 L 179.6500,76.6040 L 197.6500,76.6040 L 197.6500,88.1040 L 179.6500,88.1040 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_106"/><text id="ezcGraphTextBox_55" x="180.15" text-length="16.5px" y="87.104" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">234</text><path d=" M 240.4500,146.4240 L 240.4500,134.9240 L 258.4500,134.9240 L 258.4500,146.4240 L 240.4500,146.4240 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_107"/><path d=" M 240.4500,146.4240 L 240.4500,134.9240 L 258.4500,134.9240 L 258.4500,146.4240 L 240.4500,146.4240 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_108"/><text id="ezcGraphTextBox_58" x="240.95" text-length="16.5px" y="145.424" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">-21</text><path d=" M 301.2500,75.1440 L 301.2500,63.6440 L 319.2500,63.6440 L 319.2500,75.1440 L 301.2500,75.1440 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_109"/><path d=" M 301.2500,75.1440 L 301.2500,63.6440 L 319.2500,63.6440 L 319.2500,75.1440 L 301.2500,75.1440 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_110"/><text id="ezcGraphTextBox_61" x="301.75" text-length="16.5px" y="74.144" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">324</text><path d=" M 359.3000,160.6800 L 359.3000,149.1800 L 382.8000,149.1800 L 382.8000,160.6800 L 359.3000,160.6800 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_111"/><path d=" M 359.3000,160.6800 L 359.3000,149.1800 L 382.8000,149.1800 L 382.8000,160.6800 L 359.3000,160.6800 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_112"/><text id="ezcGraphTextBox_64" x="359.8" text-length="22px" y="159.68" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">-120</text><path d=" M 428.3500,121.6560 L 428.3500,110.1560 L 435.3500,110.1560 L 435.3500,121.6560 L 428.3500,121.6560 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_113"/><path d=" M 428.3500,121.6560 L 428.3500,110.1560 L 435.3500,110.1560 L 435.3500,121.6560 L 428.3500,121.6560 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_114"/><text id="ezcGraphTextBox_67" x="428.85" text-length="5.5px" y="120.656" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">1</text><path d=" M 412.8500,43.5280 L 412.8500,32.0280 L 430.8500,32.0280 L 430.8500,43.5280 L 412.8500,43.5280 z " style="fill: #d3d7cf; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_115"/><path d=" M 412.8500,43.5280 L 412.8500,32.0280 L 430.8500,32.0280 L 430.8500,43.5280 L 412.8500,43.5280 z " style="fill: none; stroke: #888a85; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_116"/><text id="ezcGraphTextBox_78" x="413.35" text-length="16.5px" y="42.528" style="font-size: 10px; font-family: sans-serif; fill: #3465a4; fill-opacity: 1.00; stroke: none;">613</text></g></svg>
diff --git a/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBackground.svg b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBackground.svg
new file mode 100644
index 0000000..05d55f4
--- /dev/null
+++ b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBackground.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" version="1.0" id="ezcGraph"><defs/><g id="ezcGraphChart" color-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="optimizeLegibility"><path d=" M 9.5000,81.0000 L 9.5000,9.5000 L 161.0000,9.5000 L 161.0000,81.0000 L 9.5000,81.0000 z " style="fill: #dddddd; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_2"/><text id="ezcGraphTextBox_1" x="10" text-length="149.6px" y="53.5" style="font-size: 17px; font-family: sans-serif; fill: #000000; fill-opacity: 1.00; stroke: none;">Some test string</text></g></svg>
diff --git a/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBorder.svg b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBorder.svg
new file mode 100644
index 0000000..2f19f01
--- /dev/null
+++ b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithBorder.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" version="1.0" id="ezcGraph"><defs/><g id="ezcGraphChart" color-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="optimizeLegibility"><path d=" M 10.5000,80.0000 L 10.5000,10.5000 L 160.0000,10.5000 L 160.0000,80.0000 L 10.5000,80.0000 z " style="fill: none; stroke: #555555; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_2"/><text id="ezcGraphTextBox_1" x="11" text-length="140.8px" y="53" style="font-size: 16px; font-family: sans-serif; fill: #000000; fill-opacity: 1.00; stroke: none;">Some test string</text></g></svg>
diff --git a/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.svg b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.svg
new file mode 100644
index 0000000..f5aeb63
--- /dev/null
+++ b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" version="1.0" id="ezcGraph"><defs/><g id="ezcGraphChart" color-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="optimizeLegibility"><path d=" M 13.7000,82.0000 L 13.7000,58.5000 L 162.0000,58.5000 L 162.0000,82.0000 L 13.7000,82.0000 z " style="fill: #dddddd; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_2"/><path d=" M 13.7000,82.0000 L 13.7000,58.5000 L 162.0000,58.5000 L 162.0000,82.0000 L 13.7000,82.0000 z " style="fill: none; stroke: #555555; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_3"/><text id="ezcGraphTextBox_1" x="16.2" text-length="140.8px" y="77" style="font-size: 16px; font-family: sans-serif; fill: #000000; fill-opacity: 1.00; stroke: none;">Some test string</text></g></svg>
diff --git a/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.svg b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.svg
new file mode 100644
index 0000000..d14c9ec
--- /dev/null
+++ b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" version="1.0" id="ezcGraph"><defs/><g id="ezcGraphChart" color-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="optimizeLegibility"><path d=" M 12.1000,58.0000 L 12.1000,34.5000 L 160.4000,34.5000 L 160.4000,58.0000 L 12.1000,58.0000 z " style="fill: #dddddd; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_2"/><path d=" M 12.1000,58.0000 L 12.1000,34.5000 L 160.4000,34.5000 L 160.4000,58.0000 L 12.1000,58.0000 z " style="fill: none; stroke: #555555; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_3"/><text id="ezcGraphTextBox_1" x="14.6" text-length="140.8px" y="53" style="font-size: 16px; font-family: sans-serif; fill: #000000; fill-opacity: 1.00; stroke: none;">Some test string</text></g></svg>
diff --git a/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.svg b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.svg
new file mode 100644
index 0000000..9d36eda
--- /dev/null
+++ b/tests/data/compare/ezcGraphSvgDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" version="1.0" id="ezcGraph"><defs/><g id="ezcGraphChart" color-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="optimizeLegibility"><path d=" M 10.5000,34.0000 L 10.5000,10.5000 L 158.8000,10.5000 L 158.8000,34.0000 L 10.5000,34.0000 z " style="fill: #dddddd; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_2"/><path d=" M 10.5000,34.0000 L 10.5000,10.5000 L 158.8000,10.5000 L 158.8000,34.0000 L 10.5000,34.0000 z " style="fill: none; stroke: #555555; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_3"/><text id="ezcGraphTextBox_1" x="13" text-length="140.8px" y="29" style="font-size: 16px; font-family: sans-serif; fill: #000000; fill-opacity: 1.00; stroke: none;">Some test string</text></g></svg>
diff --git a/tests/driver_gd_test.php b/tests/driver_gd_test.php
index 45c0382..ee87bc8 100644
--- a/tests/driver_gd_test.php
+++ b/tests/driver_gd_test.php
@@ -1594,6 +1594,162 @@ class ezcGraphGdDriverTest extends ezcImageTestCase
$this->fail( 'Expected ezcGraphFontRenderingException.' );
}
+
+ public function testDrawTextWithBackground()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.png';
+
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = false;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::LEFT | ezcGraph::MIDDLE
+ );
+
+ $this->driver->render( $filename );
+
+ $this->assertTrue(
+ file_exists( $filename ),
+ 'No image was generated.'
+ );
+
+ $this->assertImageSimilar(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png',
+ 'Image does not look as expected.',
+ 2000
+ );
+ }
+
+ public function testDrawTextWithBorder()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.png';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->minimizeBorder = false;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::LEFT | ezcGraph::MIDDLE
+ );
+
+ $this->driver->render( $filename );
+
+ $this->assertTrue(
+ file_exists( $filename ),
+ 'No image was generated.'
+ );
+
+ $this->assertImageSimilar(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png',
+ 'Image does not look as expected.',
+ 2000
+ );
+ }
+
+ public function testDrawTextWithMinimizedBorderAndBackgroundTopLeft()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.png';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = true;
+ $this->driver->options->font->padding = 2;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::LEFT | ezcGraph::TOP
+ );
+
+ $this->driver->render( $filename );
+
+ $this->assertTrue(
+ file_exists( $filename ),
+ 'No image was generated.'
+ );
+
+ $this->assertImageSimilar(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png',
+ 'Image does not look as expected.',
+ 2000
+ );
+ }
+
+ public function testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.png';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = true;
+ $this->driver->options->font->padding = 2;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::CENTER | ezcGraph::MIDDLE
+ );
+
+ $this->driver->render( $filename );
+
+ $this->assertTrue(
+ file_exists( $filename ),
+ 'No image was generated.'
+ );
+
+ $this->assertImageSimilar(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png',
+ 'Image does not look as expected.',
+ 2000
+ );
+ }
+
+ public function testDrawTextWithMinimizedBorderAndBackgroundBottomRight()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.png';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = true;
+ $this->driver->options->font->padding = 2;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::RIGHT | ezcGraph::BOTTOM
+ );
+
+ $this->driver->render( $filename );
+
+ $this->assertTrue(
+ file_exists( $filename ),
+ 'No image was generated.'
+ );
+
+ $this->assertImageSimilar(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png',
+ 'Image does not look as expected.',
+ 2000
+ );
+ }
}
?>
diff --git a/tests/driver_svg_test.php b/tests/driver_svg_test.php
index cd64e49..b23c405 100644
--- a/tests/driver_svg_test.php
+++ b/tests/driver_svg_test.php
@@ -25,7 +25,7 @@ class ezcGraphSvgDriverTest extends ezcTestCase
protected $testFiles = array(
'jpeg' => 'jpeg.jpg',
- 'png' => 'png.png',
+ 'svg' => 'png.png',
);
public static function suite()
@@ -433,7 +433,7 @@ class ezcGraphSvgDriverTest extends ezcTestCase
$filename = $this->tempDir . __FUNCTION__ . '.svg';
$this->driver->drawImage(
- $this->basePath . $this->testFiles['png'],
+ $this->basePath . $this->testFiles['svg'],
new ezcGraphCoordinate( 10, 10 ),
100,
50
@@ -949,6 +949,127 @@ class ezcGraphSvgDriverTest extends ezcTestCase
$this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
);
}
+
+ public function testDrawTextWithBackground()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = false;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::LEFT | ezcGraph::MIDDLE
+ );
+
+ $this->driver->render( $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
+ public function testDrawTextWithBorder()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->minimizeBorder = false;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::LEFT | ezcGraph::MIDDLE
+ );
+
+ $this->driver->render( $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
+ public function testDrawTextWithMinimizedBorderAndBackgroundTopLeft()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = true;
+ $this->driver->options->font->padding = 2;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::LEFT | ezcGraph::TOP
+ );
+
+ $this->driver->render( $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
+ public function testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = true;
+ $this->driver->options->font->padding = 2;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::CENTER | ezcGraph::MIDDLE
+ );
+
+ $this->driver->render( $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
+ public function testDrawTextWithMinimizedBorderAndBackgroundBottomRight()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' );
+ $this->driver->options->font->background = ezcGraphColor::fromHex( '#DDDDDD' );
+ $this->driver->options->font->minimizeBorder = true;
+ $this->driver->options->font->padding = 2;
+
+ $this->driver->drawTextBox(
+ 'Some test string',
+ new ezcGraphCoordinate( 10, 10 ),
+ 150,
+ 70,
+ ezcGraph::RIGHT | ezcGraph::BOTTOM
+ );
+
+ $this->driver->render( $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
}
?>
diff --git a/tests/pie_test.php b/tests/pie_test.php
index b7b1c14..c3d5883 100644
--- a/tests/pie_test.php
+++ b/tests/pie_test.php
@@ -213,8 +213,8 @@ class ezcGraphPieChartTest extends ezcImageTestCase
$chart->data['Skien'] = new ezcGraphArrayDataSet( array( 'Norwegian' => 10, 'Dutch' => 3, 'German' => 2, 'French' => 2, 'Hindi' => 1, 'Taiwanese' => 1, 'Brazilian' => 1, 'Venezuelan' => 1, 'Japanese' => 1, 'Czech' => 1, 'Hungarian' => 1, 'Romanian' => 1 ) );
$chart->data['Skien']->highlight['Norwegian'] = true;
- $chart->renderer->options->pieVerticalSize = .1;
- $chart->renderer->options->pieHorizontalSize = .1;
+ $chart->renderer->options->pieVerticalSize = .2;
+ $chart->renderer->options->pieHorizontalSize = .2;
$chart->render( 500, 200, $filename );
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 6e92989..6acc6e2 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -1859,6 +1859,36 @@ class ezcGraphRenderer2dTest extends ezcTestCase
$this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
);
}
+
+ public function testRenderLineChartWithHighlightedData()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $chart = new ezcGraphLineChart();
+ $chart->palette = new ezcGraphPaletteBlack();
+
+ $chart->data['Line 1'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => -21, 'sample 3' => 324, 'sample 4' => -120, 'sample 5' => 1) );
+ $chart->data['Line 2'] = new ezcGraphArrayDataSet( array( 'sample 1' => 543, 'sample 2' => 234, 'sample 3' => 298, 'sample 4' => 5, 'sample 5' => 613) );
+
+ $chart->data['Line 1']->highlight = true;
+ $chart->data['Line 2']->highlight['sample 5'] = true;
+
+ $chart->data['Line 1']->displayType = ezcGraph::BAR;
+
+ $chart->options->highlightSize = 12;
+ $chart->options->highlightFont->color = ezcGraphColor::fromHex( '#3465A4' );
+ $chart->options->highlightFont->background = ezcGraphColor::fromHex( '#D3D7CF' );
+ $chart->options->highlightFont->border = ezcGraphColor::fromHex( '#888A85' );
+
+ $chart->xAxis->axisLabelRenderer = new ezcGraphAxisBoxedLabelRenderer();
+
+ $chart->render( 500, 200, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
}
?>
diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php
index a851e03..3204b0c 100644
--- a/tests/renderer_3d_test.php
+++ b/tests/renderer_3d_test.php
@@ -1079,6 +1079,38 @@ class ezcGraphRenderer3dTest extends ezcImageTestCase
$this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
);
}
+
+ public function testRenderLineChartWithHighlightedData()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $chart = new ezcGraphLineChart();
+ $chart->palette = new ezcGraphPaletteBlack();
+
+ $chart->data['Line 1'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => -21, 'sample 3' => 324, 'sample 4' => -120, 'sample 5' => 1) );
+ $chart->data['Line 2'] = new ezcGraphArrayDataSet( array( 'sample 1' => 543, 'sample 2' => 234, 'sample 3' => 298, 'sample 4' => 5, 'sample 5' => 613) );
+
+ $chart->data['Line 1']->highlight = true;
+ $chart->data['Line 2']->highlight['sample 5'] = true;
+
+ $chart->options->highlightSize = 12;
+ $chart->options->highlightFont->color = ezcGraphColor::fromHex( '#3465A4' );
+ $chart->options->highlightFont->background = ezcGraphColor::fromHex( '#D3D7CF' );
+ $chart->options->highlightFont->border = ezcGraphColor::fromHex( '#888A85' );
+
+ $chart->xAxis->axisLabelRenderer = new ezcGraphAxisBoxedLabelRenderer();
+
+ $chart->renderer = new ezcGraphRenderer3d();
+ $chart->renderer->options->barChartGleam = .5;
+ $chart->renderer->options->legendSymbolGleam = .5;
+
+ $chart->render( 500, 200, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
}
?>
OpenPOWER on IntegriCloud