diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 14:59:40 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 14:59:40 +0000 |
commit | 5d8fa97d077d7d4f385e3a23863c4369851253b2 (patch) | |
tree | b7db0c767eff082ba0695c28258c05d560056dc0 /tests | |
parent | c5c6b9c18a7b0ea73af9c6baa17542178138ce40 (diff) | |
download | zetacomponents-graph-5d8fa97d077d7d4f385e3a23863c4369851253b2.zip zetacomponents-graph-5d8fa97d077d7d4f385e3a23863c4369851253b2.tar.gz |
- Implemented features #10322, #10565: Support for multiple x, y axis,
vertical and horizontal lines in line and bar charts.
Diffstat (limited to 'tests')
3 files changed, 109 insertions, 48 deletions
diff --git a/tests/data/compare/ezcGraphMultipleAxisTest_testRenderNoLabelRendererFallBack.svg b/tests/data/compare/ezcGraphMultipleAxisTest_testRenderNoLabelRendererFallBack.svg new file mode 100644 index 0000000..a15adf1 --- /dev/null +++ b/tests/data/compare/ezcGraphMultipleAxisTest_testRenderNoLabelRendererFallBack.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: #eeeeec; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_1"/><path d=" M 0.0000,200.0000 L 0.0000,0.0000 L 100.0000,0.0000 L 100.0000,200.0000 L 0.0000,200.0000 z " style="fill: #000000; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_2"/><path d=" M 2.0000,16.0000 L 2.0000,2.0000 L 16.0000,2.0000 L 16.0000,16.0000 L 2.0000,16.0000 z " style="fill: #3465a4; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_3"/><path d=" M 2.0000,34.0000 L 2.0000,20.0000 L 16.0000,20.0000 L 16.0000,34.0000 L 2.0000,34.0000 z " style="fill: #4e9a06; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_5"/><path d=" M 2.0000,52.0000 L 2.0000,38.0000 L 16.0000,38.0000 L 16.0000,52.0000 L 2.0000,52.0000 z " style="fill: #cc0000; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_7"/><path d=" M 100.0000,126.6667 L 500.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_9"/><path d=" M 492.0000,122.6667 L 500.0000,126.6667 L 492.0000,130.6667 L 492.0000,122.6667 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_10"/><path d=" M 140.0000,200.0000 L 140.0000,0.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_11"/><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: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_12"/><path d=" M 220.0000,20.0000 L 220.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_13"/><path d=" M 220.0000,123.6667 L 220.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_14"/><path d=" M 300.0000,20.0000 L 300.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_16"/><path d=" M 300.0000,123.6667 L 300.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_17"/><path d=" M 380.0000,20.0000 L 380.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_19"/><path d=" M 380.0000,123.6667 L 380.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_20"/><path d=" M 460.0000,20.0000 L 460.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_22"/><path d=" M 460.0000,123.6667 L 460.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_23"/><path d=" M 140.0000,180.0000 L 460.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_25"/><path d=" M 140.0000,180.0000 L 143.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_26"/><path d=" M 140.0000,170.0000 L 460.0000,170.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_28"/><path d=" M 140.0000,169.3333 L 141.0000,169.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_29"/><path d=" M 140.0000,158.0000 L 460.0000,158.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_30"/><path d=" M 140.0000,158.6667 L 141.0000,158.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_31"/><path d=" M 140.0000,148.0000 L 460.0000,148.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_32"/><path d=" M 140.0000,148.0000 L 141.0000,148.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_33"/><path d=" M 140.0000,138.0000 L 460.0000,138.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_34"/><path d=" M 140.0000,137.3333 L 141.0000,137.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_35"/><path d=" M 140.0000,116.0000 L 460.0000,116.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_37"/><path d=" M 140.0000,116.0000 L 141.0000,116.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_38"/><path d=" M 140.0000,106.0000 L 460.0000,106.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_39"/><path d=" M 140.0000,105.3333 L 141.0000,105.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_40"/><path d=" M 140.0000,94.0000 L 460.0000,94.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_41"/><path d=" M 140.0000,94.6667 L 141.0000,94.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_42"/><path d=" M 140.0000,84.0000 L 460.0000,84.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_43"/><path d=" M 140.0000,84.0000 L 141.0000,84.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_44"/><path d=" M 140.0000,74.0000 L 460.0000,74.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_45"/><path d=" M 140.0000,73.3333 L 143.0000,73.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_46"/><path d=" M 140.0000,62.0000 L 460.0000,62.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_48"/><path d=" M 140.0000,62.6667 L 141.0000,62.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_49"/><path d=" M 140.0000,52.0000 L 460.0000,52.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_50"/><path d=" M 140.0000,52.0000 L 141.0000,52.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_51"/><path d=" M 140.0000,42.0000 L 460.0000,42.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_52"/><path d=" M 140.0000,41.3333 L 141.0000,41.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_53"/><path d=" M 140.0000,30.0000 L 460.0000,30.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_54"/><path d=" M 140.0000,30.6667 L 141.0000,30.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_55"/><path d=" M 140.0000,20.0000 L 460.0000,20.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_56"/><path d=" M 140.0000,20.0000 L 143.0000,20.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_57"/><path d=" M 460.0000,200.0000 L 460.0000,0.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_59"/><path d=" M 457.5000,5.0000 L 460.0000,0.0000 L 462.5000,5.0000 L 457.5000,5.0000 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_60"/><path d=" M 140.0000,180.0000 L 460.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_61"/><path d=" M 460.0000,180.0000 L 463.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_62"/><path d=" M 140.0000,172.0000 L 460.0000,172.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_64"/><path d=" M 460.0000,172.0000 L 461.0000,172.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_65"/><path d=" M 140.0000,164.0000 L 460.0000,164.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_66"/><path d=" M 460.0000,164.0000 L 461.0000,164.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_67"/><path d=" M 140.0000,156.0000 L 460.0000,156.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_68"/><path d=" M 460.0000,156.0000 L 461.0000,156.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_69"/><path d=" M 140.0000,148.0000 L 460.0000,148.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_70"/><path d=" M 460.0000,148.0000 L 461.0000,148.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_71"/><path d=" M 140.0000,132.0000 L 460.0000,132.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_73"/><path d=" M 460.0000,132.0000 L 461.0000,132.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_74"/><path d=" M 140.0000,124.0000 L 460.0000,124.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_75"/><path d=" M 460.0000,124.0000 L 461.0000,124.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_76"/><path d=" M 140.0000,116.0000 L 460.0000,116.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_77"/><path d=" M 460.0000,116.0000 L 461.0000,116.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_78"/><path d=" M 140.0000,108.0000 L 460.0000,108.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_79"/><path d=" M 460.0000,108.0000 L 461.0000,108.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_80"/><path d=" M 140.0000,100.0000 L 460.0000,100.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_81"/><path d=" M 460.0000,100.0000 L 463.0000,100.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_82"/><path d=" M 140.0000,92.0000 L 460.0000,92.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_84"/><path d=" M 460.0000,92.0000 L 461.0000,92.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_85"/><path d=" M 140.0000,84.0000 L 460.0000,84.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_86"/><path d=" M 460.0000,84.0000 L 461.0000,84.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_87"/><path d=" M 140.0000,76.0000 L 460.0000,76.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_88"/><path d=" M 460.0000,76.0000 L 461.0000,76.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_89"/><path d=" M 140.0000,68.0000 L 460.0000,68.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_90"/><path d=" M 460.0000,68.0000 L 461.0000,68.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_91"/><path d=" M 140.0000,60.0000 L 460.0000,60.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_92"/><path d=" M 460.0000,60.0000 L 463.0000,60.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_93"/><path d=" M 140.0000,52.0000 L 460.0000,52.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_95"/><path d=" M 460.0000,52.0000 L 461.0000,52.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_96"/><path d=" M 140.0000,44.0000 L 460.0000,44.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_97"/><path d=" M 460.0000,44.0000 L 461.0000,44.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_98"/><path d=" M 140.0000,36.0000 L 460.0000,36.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_99"/><path d=" M 460.0000,36.0000 L 461.0000,36.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_100"/><path d=" M 140.0000,28.0000 L 460.0000,28.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_101"/><path d=" M 460.0000,28.0000 L 461.0000,28.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_102"/><path d=" M 140.0000,20.0000 L 460.0000,20.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_103"/><path d=" M 460.0000,20.0000 L 463.0000,20.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_104"/><path d=" M 300.0000,200.0000 L 300.0000,0.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_106"/><path d=" M 297.5000,5.0000 L 300.0000,0.0000 L 302.5000,5.0000 L 297.5000,5.0000 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_107"/><path d=" M 140.0000,102.5600 L 140.0000,102.5600" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_109"/><path d=" M 140.0000,102.5600 L 220.0000,143.3600" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_110"/><path d=" M 220.0000,143.3600 L 300.0000,88.1600" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_111"/><path d=" M 300.0000,88.1600 L 380.0000,40.8000" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_112"/><path d=" M 380.0000,40.8000 L 460.0000,139.8400" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_113"/><path d=" M 140.0000,102.7733 L 140.0000,102.7733" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_114"/><path d=" M 140.0000,102.7733 L 220.0000,115.1467" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_115"/><path d=" M 220.0000,115.1467 L 300.0000,124.1067" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_116"/><path d=" M 300.0000,124.1067 L 380.0000,162.2933" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_117"/><path d=" M 380.0000,162.2933 L 460.0000,56.4800" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_118"/><path d=" M 140.0000,62.6667 L 140.0000,62.6667" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_119"/><path d=" M 140.0000,62.6667 L 220.0000,133.0667" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_120"/><path d=" M 220.0000,133.0667 L 300.0000,79.7333" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_121"/><path d=" M 300.0000,79.7333 L 380.0000,112.3733" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_122"/><path d=" M 380.0000,112.3733 L 460.0000,30.6667" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_123"/><g id="ezcGraphTextBox_4"><path d=" M 16.5000,15.0000 L 16.5000,3.5000 L 71.0000,3.5000 L 71.0000,15.0000 L 16.5000,15.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_124"/><text id="ezcGraphTextBox_4_text" x="17.0000" text-length="53.0000px" y="12.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sampleData</text></g><g id="ezcGraphTextBox_6"><path d=" M 16.5000,33.0000 L 16.5000,21.5000 L 60.4000,21.5000 L 60.4000,33.0000 L 16.5000,33.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_125"/><text id="ezcGraphTextBox_6_text" x="17.0000" text-length="42.4000px" y="30.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">moreData</text></g><g id="ezcGraphTextBox_8"><path d=" M 16.5000,51.0000 L 16.5000,39.5000 L 92.2000,39.5000 L 92.2000,51.0000 L 16.5000,51.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_126"/><text id="ezcGraphTextBox_8_text" x="17.0000" text-length="74.2000px" y="48.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Even more data</text></g><g id="ezcGraphTextBox_15"><path d=" M 189.8200,143.6667 L 189.8200,128.1667 L 250.6800,128.1667 L 250.6800,143.6667 L 189.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_127"/><text id="ezcGraphTextBox_15_text" x="190.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 2</text></g><g id="ezcGraphTextBox_18"><path d=" M 269.8200,143.6667 L 269.8200,128.1667 L 330.6800,128.1667 L 330.6800,143.6667 L 269.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_128"/><text id="ezcGraphTextBox_18_text" x="270.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 3</text></g><g id="ezcGraphTextBox_21"><path d=" M 349.8200,143.6667 L 349.8200,128.1667 L 410.6800,128.1667 L 410.6800,143.6667 L 349.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_129"/><text id="ezcGraphTextBox_21_text" x="350.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 4</text></g><g id="ezcGraphTextBox_24"><path d=" M 429.8200,143.6667 L 429.8200,128.1667 L 490.6800,128.1667 L 490.6800,143.6667 L 429.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_130"/><text id="ezcGraphTextBox_24_text" x="430.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 5</text></g><g id="ezcGraphTextBox_27"><path d=" M 102.7800,179.0000 L 102.7800,163.5000 L 139.0000,163.5000 L 139.0000,179.0000 L 102.7800,179.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_131"/><text id="ezcGraphTextBox_27_text" x="103.2800" text-length="34.7200px" y="175.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">-250</text></g><g id="ezcGraphTextBox_36"><path d=" M 128.8200,125.6667 L 128.8200,110.1667 L 139.0000,110.1667 L 139.0000,125.6667 L 128.8200,125.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_132"/><text id="ezcGraphTextBox_36_text" x="129.3200" text-length="8.6800px" y="122.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">0</text></g><g id="ezcGraphTextBox_47"><path d=" M 111.4600,72.3333 L 111.4600,56.8333 L 139.0000,56.8333 L 139.0000,72.3333 L 111.4600,72.3333 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_133"/><text id="ezcGraphTextBox_47_text" x="111.9600" text-length="26.0400px" y="69.2333" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">250</text></g><g id="ezcGraphTextBox_58"><path d=" M 111.4600,37.0000 L 111.4600,21.5000 L 139.0000,21.5000 L 139.0000,37.0000 L 111.4600,37.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_134"/><text id="ezcGraphTextBox_58_text" x="111.9600" text-length="26.0400px" y="33.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">500</text></g><g id="ezcGraphTextBox_63"><path d=" M 422.7800,179.0000 L 422.7800,163.5000 L 459.0000,163.5000 L 459.0000,179.0000 L 422.7800,179.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_135"/><text id="ezcGraphTextBox_63_text" x="423.2800" text-length="34.7200px" y="175.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">-250</text></g><g id="ezcGraphTextBox_72"><path d=" M 448.8200,139.0000 L 448.8200,123.5000 L 459.0000,123.5000 L 459.0000,139.0000 L 448.8200,139.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_136"/><text id="ezcGraphTextBox_72_text" x="449.3200" text-length="8.6800px" y="135.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">0</text></g><g id="ezcGraphTextBox_83"><path d=" M 431.4600,99.0000 L 431.4600,83.5000 L 459.0000,83.5000 L 459.0000,99.0000 L 431.4600,99.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_137"/><text id="ezcGraphTextBox_83_text" x="431.9600" text-length="26.0400px" y="95.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">250</text></g><g id="ezcGraphTextBox_94"><path d=" M 431.4600,59.0000 L 431.4600,43.5000 L 459.0000,43.5000 L 459.0000,59.0000 L 431.4600,59.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_138"/><text id="ezcGraphTextBox_94_text" x="431.9600" text-length="26.0400px" y="55.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">500</text></g><g id="ezcGraphTextBox_105"><path d=" M 431.4600,37.0000 L 431.4600,21.5000 L 459.0000,21.5000 L 459.0000,37.0000 L 431.4600,37.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_139"/><text id="ezcGraphTextBox_105_text" x="431.9600" text-length="26.0400px" y="33.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">750</text></g><g id="ezcGraphTextBox_108"><path d=" M 301.5000,17.0000 L 301.5000,1.5000 L 347.5200,1.5000 L 347.5200,17.0000 L 301.5000,17.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_140"/><text id="ezcGraphTextBox_108_text" x="302.0000" text-length="44.5200px" y="13.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Marker</text></g></g></svg> diff --git a/tests/data/compare/ezcGraphMultipleAxisTest_testRenderNoLabelRendererFallBackXAxis.svg b/tests/data/compare/ezcGraphMultipleAxisTest_testRenderNoLabelRendererFallBackXAxis.svg new file mode 100644 index 0000000..4f204d3 --- /dev/null +++ b/tests/data/compare/ezcGraphMultipleAxisTest_testRenderNoLabelRendererFallBackXAxis.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: #eeeeec; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_1"/><path d=" M 0.0000,200.0000 L 0.0000,0.0000 L 100.0000,0.0000 L 100.0000,200.0000 L 0.0000,200.0000 z " style="fill: #000000; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_2"/><path d=" M 2.0000,16.0000 L 2.0000,2.0000 L 16.0000,2.0000 L 16.0000,16.0000 L 2.0000,16.0000 z " style="fill: #3465a4; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_3"/><path d=" M 2.0000,34.0000 L 2.0000,20.0000 L 16.0000,20.0000 L 16.0000,34.0000 L 2.0000,34.0000 z " style="fill: #4e9a06; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_5"/><path d=" M 2.0000,52.0000 L 2.0000,38.0000 L 16.0000,38.0000 L 16.0000,52.0000 L 2.0000,52.0000 z " style="fill: #cc0000; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_7"/><path d=" M 100.0000,126.6667 L 500.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_9"/><path d=" M 492.0000,122.6667 L 500.0000,126.6667 L 492.0000,130.6667 L 492.0000,122.6667 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_10"/><path d=" M 140.0000,200.0000 L 140.0000,0.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_11"/><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: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_12"/><path d=" M 220.0000,20.0000 L 220.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_13"/><path d=" M 220.0000,123.6667 L 220.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_14"/><path d=" M 300.0000,20.0000 L 300.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_16"/><path d=" M 300.0000,123.6667 L 300.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_17"/><path d=" M 380.0000,20.0000 L 380.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_19"/><path d=" M 380.0000,123.6667 L 380.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_20"/><path d=" M 460.0000,20.0000 L 460.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_22"/><path d=" M 460.0000,123.6667 L 460.0000,126.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_23"/><path d=" M 140.0000,180.0000 L 460.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_25"/><path d=" M 140.0000,180.0000 L 143.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_26"/><path d=" M 140.0000,170.0000 L 460.0000,170.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_28"/><path d=" M 140.0000,169.3333 L 141.0000,169.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_29"/><path d=" M 140.0000,158.0000 L 460.0000,158.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_30"/><path d=" M 140.0000,158.6667 L 141.0000,158.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_31"/><path d=" M 140.0000,148.0000 L 460.0000,148.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_32"/><path d=" M 140.0000,148.0000 L 141.0000,148.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_33"/><path d=" M 140.0000,138.0000 L 460.0000,138.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_34"/><path d=" M 140.0000,137.3333 L 141.0000,137.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_35"/><path d=" M 140.0000,116.0000 L 460.0000,116.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_37"/><path d=" M 140.0000,116.0000 L 141.0000,116.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_38"/><path d=" M 140.0000,106.0000 L 460.0000,106.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_39"/><path d=" M 140.0000,105.3333 L 141.0000,105.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_40"/><path d=" M 140.0000,94.0000 L 460.0000,94.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_41"/><path d=" M 140.0000,94.6667 L 141.0000,94.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_42"/><path d=" M 140.0000,84.0000 L 460.0000,84.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_43"/><path d=" M 140.0000,84.0000 L 141.0000,84.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_44"/><path d=" M 140.0000,74.0000 L 460.0000,74.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_45"/><path d=" M 140.0000,73.3333 L 143.0000,73.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_46"/><path d=" M 140.0000,62.0000 L 460.0000,62.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_48"/><path d=" M 140.0000,62.6667 L 141.0000,62.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_49"/><path d=" M 140.0000,52.0000 L 460.0000,52.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_50"/><path d=" M 140.0000,52.0000 L 141.0000,52.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_51"/><path d=" M 140.0000,42.0000 L 460.0000,42.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_52"/><path d=" M 140.0000,41.3333 L 141.0000,41.3333" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_53"/><path d=" M 140.0000,30.0000 L 460.0000,30.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_54"/><path d=" M 140.0000,30.6667 L 141.0000,30.6667" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_55"/><path d=" M 140.0000,20.0000 L 460.0000,20.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_56"/><path d=" M 140.0000,20.0000 L 143.0000,20.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_57"/><path d=" M 100.0000,180.0000 L 500.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_59"/><path d=" M 492.0000,176.0000 L 500.0000,180.0000 L 492.0000,184.0000 L 492.0000,176.0000 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_60"/><path d=" M 204.0000,20.0000 L 204.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_61"/><path d=" M 204.0000,177.0000 L 204.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_62"/><path d=" M 268.0000,20.0000 L 268.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_64"/><path d=" M 268.0000,177.0000 L 268.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_65"/><path d=" M 332.0000,20.0000 L 332.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_67"/><path d=" M 332.0000,177.0000 L 332.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_68"/><path d=" M 396.0000,20.0000 L 396.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_70"/><path d=" M 396.0000,177.0000 L 396.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_71"/><path d=" M 460.0000,20.0000 L 460.0000,180.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 0.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_73"/><path d=" M 460.0000,177.0000 L 460.0000,180.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_74"/><path d=" M 500.0000,20.0000 L 100.0000,20.0000" style="fill: none; stroke: #2e3436; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_76"/><path d=" M 108.0000,24.0000 L 100.0000,20.0000 L 108.0000,16.0000 L 108.0000,24.0000 z " style="fill: #2e3436; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_77"/><path d=" M 140.0000,76.7467 L 140.0000,76.7467" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_79"/><path d=" M 140.0000,76.7467 L 204.0000,131.1467" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_80"/><path d=" M 204.0000,131.1467 L 268.0000,57.5467" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_81"/><path d=" M 268.0000,57.5467 L 332.0000,101.0667" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_82"/><path d=" M 332.0000,101.0667 L 396.0000,126.4533" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_83"/><path d=" M 396.0000,126.4533 L 460.0000,110.8800" style="fill: none; stroke: #3465a4; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_84"/><path d=" M 140.0000,102.7733 L 140.0000,102.7733" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_85"/><path d=" M 140.0000,102.7733 L 220.0000,115.1467" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_86"/><path d=" M 220.0000,115.1467 L 300.0000,124.1067" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_87"/><path d=" M 300.0000,124.1067 L 380.0000,162.2933" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_88"/><path d=" M 380.0000,162.2933 L 460.0000,56.4800" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_89"/><path d=" M 140.0000,62.6667 L 140.0000,62.6667" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_90"/><path d=" M 140.0000,62.6667 L 220.0000,133.0667" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_91"/><path d=" M 220.0000,133.0667 L 300.0000,79.7333" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_92"/><path d=" M 300.0000,79.7333 L 380.0000,112.3733" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_93"/><path d=" M 380.0000,112.3733 L 460.0000,30.6667" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_94"/><g id="ezcGraphTextBox_4"><path d=" M 16.5000,15.0000 L 16.5000,3.5000 L 71.0000,3.5000 L 71.0000,15.0000 L 16.5000,15.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_95"/><text id="ezcGraphTextBox_4_text" x="17.0000" text-length="53.0000px" y="12.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sampleData</text></g><g id="ezcGraphTextBox_6"><path d=" M 16.5000,33.0000 L 16.5000,21.5000 L 60.4000,21.5000 L 60.4000,33.0000 L 16.5000,33.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_96"/><text id="ezcGraphTextBox_6_text" x="17.0000" text-length="42.4000px" y="30.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">moreData</text></g><g id="ezcGraphTextBox_8"><path d=" M 16.5000,51.0000 L 16.5000,39.5000 L 92.2000,39.5000 L 92.2000,51.0000 L 16.5000,51.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_97"/><text id="ezcGraphTextBox_8_text" x="17.0000" text-length="74.2000px" y="48.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Even more data</text></g><g id="ezcGraphTextBox_15"><path d=" M 189.8200,143.6667 L 189.8200,128.1667 L 250.6800,128.1667 L 250.6800,143.6667 L 189.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_98"/><text id="ezcGraphTextBox_15_text" x="190.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 2</text></g><g id="ezcGraphTextBox_18"><path d=" M 269.8200,143.6667 L 269.8200,128.1667 L 330.6800,128.1667 L 330.6800,143.6667 L 269.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_99"/><text id="ezcGraphTextBox_18_text" x="270.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 3</text></g><g id="ezcGraphTextBox_21"><path d=" M 349.8200,143.6667 L 349.8200,128.1667 L 410.6800,128.1667 L 410.6800,143.6667 L 349.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_100"/><text id="ezcGraphTextBox_21_text" x="350.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 4</text></g><g id="ezcGraphTextBox_24"><path d=" M 429.8200,143.6667 L 429.8200,128.1667 L 490.6800,128.1667 L 490.6800,143.6667 L 429.8200,143.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_101"/><text id="ezcGraphTextBox_24_text" x="430.3200" text-length="59.3600px" y="140.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 5</text></g><g id="ezcGraphTextBox_27"><path d=" M 102.7800,179.0000 L 102.7800,163.5000 L 139.0000,163.5000 L 139.0000,179.0000 L 102.7800,179.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_102"/><text id="ezcGraphTextBox_27_text" x="103.2800" text-length="34.7200px" y="175.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">-250</text></g><g id="ezcGraphTextBox_36"><path d=" M 128.8200,125.6667 L 128.8200,110.1667 L 139.0000,110.1667 L 139.0000,125.6667 L 128.8200,125.6667 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_103"/><text id="ezcGraphTextBox_36_text" x="129.3200" text-length="8.6800px" y="122.5667" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">0</text></g><g id="ezcGraphTextBox_47"><path d=" M 111.4600,72.3333 L 111.4600,56.8333 L 139.0000,56.8333 L 139.0000,72.3333 L 111.4600,72.3333 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_104"/><text id="ezcGraphTextBox_47_text" x="111.9600" text-length="26.0400px" y="69.2333" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">250</text></g><g id="ezcGraphTextBox_58"><path d=" M 111.4600,37.0000 L 111.4600,21.5000 L 139.0000,21.5000 L 139.0000,37.0000 L 111.4600,37.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_105"/><text id="ezcGraphTextBox_58_text" x="111.9600" text-length="26.0400px" y="33.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">500</text></g><g id="ezcGraphTextBox_63"><path d=" M 173.8200,197.0000 L 173.8200,181.5000 L 234.6800,181.5000 L 234.6800,197.0000 L 173.8200,197.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_106"/><text id="ezcGraphTextBox_63_text" x="174.3200" text-length="59.3600px" y="193.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 2</text></g><g id="ezcGraphTextBox_66"><path d=" M 237.8200,197.0000 L 237.8200,181.5000 L 298.6800,181.5000 L 298.6800,197.0000 L 237.8200,197.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_107"/><text id="ezcGraphTextBox_66_text" x="238.3200" text-length="59.3600px" y="193.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 3</text></g><g id="ezcGraphTextBox_69"><path d=" M 301.8200,197.0000 L 301.8200,181.5000 L 362.6800,181.5000 L 362.6800,197.0000 L 301.8200,197.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_108"/><text id="ezcGraphTextBox_69_text" x="302.3200" text-length="59.3600px" y="193.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 4</text></g><g id="ezcGraphTextBox_72"><path d=" M 365.8200,197.0000 L 365.8200,181.5000 L 426.6800,181.5000 L 426.6800,197.0000 L 365.8200,197.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_109"/><text id="ezcGraphTextBox_72_text" x="366.3200" text-length="59.3600px" y="193.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 5</text></g><g id="ezcGraphTextBox_75"><path d=" M 429.8200,197.0000 L 429.8200,181.5000 L 490.6800,181.5000 L 490.6800,197.0000 L 429.8200,197.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_110"/><text id="ezcGraphTextBox_75_text" x="430.3200" text-length="59.3600px" y="193.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">sample 6</text></g><g id="ezcGraphTextBox_78"><path d=" M 99.5000,19.0000 L 99.5000,3.5000 L 145.5200,3.5000 L 145.5200,19.0000 L 99.5000,19.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_111"/><text id="ezcGraphTextBox_78_text" x="100.0000" text-length="44.5200px" y="15.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Marker</text></g></g></svg> diff --git a/tests/multiple_axis_test.php b/tests/multiple_axis_test.php index ab32db8..3b58d40 100644 --- a/tests/multiple_axis_test.php +++ b/tests/multiple_axis_test.php @@ -9,13 +9,15 @@ * @license http://ez.no/licenses/new_bsd New BSD License */ +require_once dirname( __FILE__ ) . '/test_case.php'; + /** * Tests for ezcGraph class. * * @package ImageAnalysis * @subpackage Tests */ -class ezcGraphMultipleAxisTest extends ezcTestCase +class ezcGraphMultipleAxisTest extends ezcGraphTestCase { protected $basePath; @@ -36,36 +38,10 @@ class ezcGraphMultipleAxisTest extends ezcTestCase protected function tearDown() { - $this->removeTempDir(); - } - - public function testLineChartOptionsPropertyAdditionalAxis() - { - $options = new ezcGraphLineChartOptions(); - - $this->assertEquals( - new ezcGraphAxisContainer(), - $options->additionalAxis, - 'Wrong default value for property additionalAxis in class ezcGraphLineChartOptions' - ); - - $options->additionalAxis = $new = new ezcGraphAxisContainer; - $this->assertSame( - $new, - $options->additionalAxis, - 'Setting property value did not work for property additionalAxis in class ezcGraphLineChartOptions' - ); - - try - { - $options->additionalAxis = false; - } - catch ( ezcBaseValueException $e ) + if ( !$this->hasFailed() ) { - return true; + $this->removeTempDir(); } - - $this->fail( 'Expected ezcBaseValueException.' ); } public function testAxisPropertyChartPosition() @@ -99,7 +75,7 @@ class ezcGraphMultipleAxisTest extends ezcTestCase public function testAxisContainerIterator() { - $options = new ezcGraphLineChartOptions(); + $options = new ezcGraphLineChart(); $axis = array(); @@ -127,35 +103,35 @@ class ezcGraphMultipleAxisTest extends ezcTestCase $chart = new ezcGraphLineChart(); $this->assertTrue( - $chart->options->additionalAxis instanceof ezcGraphAxisContainer, + $chart->additionalAxis instanceof ezcGraphAxisContainer, 'Line chart option additionalAxis should be of ezcGraphAxisContainer.' ); $this->assertSame( - count( $chart->options->additionalAxis ), + count( $chart->additionalAxis ), 0, 'The initial count of additional axis should be zero.' ); - $chart->options->additionalAxis[] = new ezcGraphChartElementNumericAxis(); + $chart->additionalAxis[] = new ezcGraphChartElementNumericAxis(); $this->assertSame( - count( $chart->options->additionalAxis ), + count( $chart->additionalAxis ), 1, 'The count of additional axis should be one.' ); - $chart->options->additionalAxis[] = new ezcGraphChartElementLabeledAxis(); + $chart->additionalAxis[] = new ezcGraphChartElementLabeledAxis(); $this->assertSame( - count( $chart->options->additionalAxis ), + count( $chart->additionalAxis ), 2, 'The count of additional axis should be two.' ); try { - $chart->options->additionalAxis[] = $chart; + $chart->additionalAxis[] = $chart; } catch( ezcBaseValueException $e ) { @@ -169,28 +145,26 @@ class ezcGraphMultipleAxisTest extends ezcTestCase { $chart = new ezcGraphLineChart(); - $chart->options->additionalAxis['marker'] = new ezcGraphChartElementNumericAxis(); - $chart->options->additionalAxis['new base'] = new ezcGraphChartElementLabeledAxis(); + $chart->additionalAxis['marker'] = new ezcGraphChartElementNumericAxis(); + $chart->additionalAxis['new base'] = new ezcGraphChartElementLabeledAxis(); $chart->data['sampleData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => -21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1) ); - $chart->data['sampleData']->yAxis = $chart->options->additionalAxis['marker']; - $chart->data['sampleData']->xAxis = $chart->options->additionalAxis['new base']; + $chart->data['sampleData']->yAxis = $chart->additionalAxis['marker']; + $chart->data['sampleData']->xAxis = $chart->additionalAxis['new base']; - $this->assertEquals( - new ezcGraphChartElementNumericAxis(), - $chart->data['sampleData']->yAxis->default, + $this->assertTrue( + $chart->data['sampleData']->yAxis->default instanceof ezcGraphChartElementNumericAxis, 'yAxis property should point to a ezcGraphChartElementNumericAxis.' ); - $this->assertEquals( - new ezcGraphChartElementLabeledAxis(), - $chart->data['sampleData']->xAxis->default, + $this->assertTrue( + $chart->data['sampleData']->xAxis->default instanceof ezcGraphChartElementLabeledAxis, 'xAxis property should point to a ezcGraphChartElementLabeledAxis.' ); try { - $chart->data['sampleData']->yAxis['sample 1'] = $chart->options->additionalAxis['marker']; + $chart->data['sampleData']->yAxis['sample 1'] = $chart->additionalAxis['marker']; } catch ( ezcGraphInvalidAssignementException $e ) { @@ -231,5 +205,88 @@ class ezcGraphMultipleAxisTest extends ezcTestCase $this->fail( 'Expected ezcGraphInvalidAssignementException.' ); } + + public function testRenderNoMainAxisAssignement() + { + $chart = new ezcGraphLineChart(); + + $chart->additionalAxis['marker'] = new ezcGraphChartElementNumericAxis(); + $chart->additionalAxis['new base'] = new ezcGraphChartElementLabeledAxis(); + + $chart->data['sampleData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => -21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1) ); + $chart->data['sampleData']->yAxis = $chart->additionalAxis['marker']; + $chart->data['sampleData']->xAxis = $chart->additionalAxis['new base']; + + try + { + $chart->render( 400, 200 ); + } + catch ( ezcGraphNoDataException $e ) + { + return true; + } + + $this->fail( 'Expected ezcGraphNoDataException.' ); + } + + public function testRenderNoLabelRendererFallBack() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + + $chart->additionalAxis['marker'] = $marker = new ezcGraphChartElementNumericAxis(); + $chart->additionalAxis['empty'] = $empty = new ezcGraphChartElementNumericAxis(); + + $marker->position = ezcGraph::BOTTOM; + $marker->chartPosition = 1; + + $empty->position = ezcGraph::BOTTOM; + $empty->chartPosition = .5; + $empty->label = 'Marker'; + + $chart->data['sampleData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => -21, 'sample 3' => 324, 'sample 4' => 620, 'sample 5' => 1) ); + $chart->data['sampleData']->yAxis = $chart->additionalAxis['marker']; + + $chart->data['moreData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 112, 'sample 2' => 54, 'sample 3' => 12, 'sample 4' => -167, 'sample 5' => 329) ); + $chart->data['Even more data'] = new ezcGraphArrayDataSet( array( 'sample 1' => 300, 'sample 2' => -30, 'sample 3' => 220, 'sample 4' => 67, 'sample 5' => 450) ); + + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + + public function testRenderNoLabelRendererFallBackXAxis() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + + $chart->additionalAxis['marker'] = $marker = new ezcGraphChartElementLabeledAxis(); + $chart->additionalAxis['empty'] = $empty = new ezcGraphChartElementLabeledAxis(); + + $marker->position = ezcGraph::LEFT; + $marker->chartPosition = 1; + + $empty->position = ezcGraph::RIGHT; + $empty->chartPosition = .0; + $empty->label = 'Marker'; + + $chart->data['sampleData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 234, 'sample 2' => -21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1, 'sample 6' => 74) ); + $chart->data['sampleData']->xAxis = $chart->additionalAxis['marker']; + + $chart->data['moreData'] = new ezcGraphArrayDataSet( array( 'sample 1' => 112, 'sample 2' => 54, 'sample 3' => 12, 'sample 4' => -167, 'sample 5' => 329) ); + $chart->data['Even more data'] = new ezcGraphArrayDataSet( array( 'sample 1' => 300, 'sample 2' => -30, 'sample 3' => 220, 'sample 4' => 67, 'sample 5' => 450) ); + + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } } ?> |