diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-05-25 09:17:11 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-05-25 09:17:11 +0000 |
commit | f17590aed8790e6142b7d5b1c345068abe8f3ebc (patch) | |
tree | dd22a6400feff4588eb4e496a1a3d95f684a7ff0 | |
parent | aa49d9ec7aaa79cc42043224386ffc30bf7c7b0f (diff) | |
download | zetacomponents-graph-f17590aed8790e6142b7d5b1c345068abe8f3ebc.zip zetacomponents-graph-f17590aed8790e6142b7d5b1c345068abe8f3ebc.tar.gz |
- Fixed issue #10848: Missing pie segment labels in pie charts with 3d
renderer
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | tests/data/compare/ezcGraphRenderer3dTest_testRenderer3dPieChartMissingLabels.svg | 2 | ||||
-rw-r--r-- | tests/renderer_3d_test.php | 17 |
3 files changed, 21 insertions, 0 deletions
@@ -15,6 +15,8 @@ with edge lengths < reducement - Fixed issue #10750: SVG drivers output broken with wrong LC_NUMERIC - Fixed issue #10842: Pie charts fatal error with datasets with value sum <= 0 +- Fixed issue #10848: Missing pie segment labels in pie charts with 3d + renderer 1.1beta1 - Monday 07 May 2007 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/data/compare/ezcGraphRenderer3dTest_testRenderer3dPieChartMissingLabels.svg b/tests/data/compare/ezcGraphRenderer3dTest_testRenderer3dPieChartMissingLabels.svg new file mode 100644 index 0000000..f4b322c --- /dev/null +++ b/tests/data/compare/ezcGraphRenderer3dTest_testRenderer3dPieChartMissingLabels.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_210_95_390_95_ffffffbf_0000007f"><stop offset="0" style="stop-color: #ffffff; stop-opacity: 0.25;"/><stop offset="1" style="stop-color: #000000; stop-opacity: 0.50;"/></linearGradient><linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="LinearGradient_210_95_390_95_ffffffbf_0000007f" x1="210.0000" y1="95.0000" x2="390.0000" y2="95.0000" gradientUnits="userSpaceOnUse" xlink:href="#Definition_LinearGradient_210_95_390_95_ffffffbf_0000007f"/></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: #4e9a06; 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: #cc0000; 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: #edd400; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_7"/><path d=" M 2.0000,70.0000 L 2.0000,56.0000 L 16.0000,56.0000 L 16.0000,70.0000 L 2.0000,70.0000 z " style="fill: #75505b; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_9"/><path d=" M 2.0000,88.0000 L 2.0000,74.0000 L 16.0000,74.0000 L 16.0000,88.0000 L 2.0000,88.0000 z " style="fill: #f57900; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_11"/><path d="M 290.12,56.30 A 90.00,49.00 0 0,0 285.92,56.60 L 285.92,46.60 A 90.00,49.000000 0 0,1 290.12,46.30 z" style="fill: #cc0000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircularArc_13"/><path d="M 290.12,56.30 A 90.00,49.00 0 0,0 285.92,56.60 L 285.92,46.60 A 90.00,49.000000 0 0,1 290.12,46.30 z" style="fill: url(#LinearGradient_210_95_390_95_ffffffbf_0000007f); stroke: none;"/><path d="M 295.76,56.05 A 90.00,49.00 0 0,0 290.12,56.30 L 290.12,46.30 A 90.00,49.000000 0 0,1 295.76,46.05 z" style="fill: #edd400; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircularArc_14"/><path d="M 295.76,56.05 A 90.00,49.00 0 0,0 290.12,56.30 L 290.12,46.30 A 90.00,49.000000 0 0,1 295.76,46.05 z" style="fill: url(#LinearGradient_210_95_390_95_ffffffbf_0000007f); stroke: none;"/><path d="M 300.00,56.00 A 90.00,49.00 0 0,0 295.76,56.05 L 295.76,46.05 A 90.00,49.000000 0 0,1 300.00,46.00 z" style="fill: #75505b; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircularArc_15"/><path d="M 300.00,56.00 A 90.00,49.00 0 0,0 295.76,56.05 L 295.76,46.05 A 90.00,49.000000 0 0,1 300.00,46.00 z" style="fill: url(#LinearGradient_210_95_390_95_ffffffbf_0000007f); stroke: none;"/><path d="M 390.00,105.00 A 90.00,49.00 0 0,0 300.00,56.00 L 300.00,46.00 A 90.00,49.000000 0 0,1 390.00,95.00 z" style="fill: #f57900; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircularArc_16"/><path d="M 390.00,105.00 A 90.00,49.00 0 0,0 300.00,56.00 L 300.00,46.00 A 90.00,49.000000 0 0,1 390.00,95.00 z" style="fill: url(#LinearGradient_210_95_390_95_ffffffbf_0000007f); stroke: none;"/><path d=" M 285.9209,46.6033 L 300.0000,95.0000 L 300.0000,105.0000 L 285.9209,56.6033 L 285.9209,46.6033 z " style="fill: #4e9a06; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_17"/><path d=" M 299.5000,95.0713 L 299.5000,101.4913 L 286.4209,56.5320 L 286.4209,50.1120 L 299.5000,95.0713 z " style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_18"/><path d=" M 285.9209,46.6033 L 300.0000,95.0000 L 300.0000,105.0000 L 285.9209,56.6033 L 285.9209,46.6033 z " style="fill: #cc0000; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_19"/><path d=" M 299.5000,95.0713 L 299.5000,101.4913 L 286.4209,56.5320 L 286.4209,50.1120 L 299.5000,95.0713 z " style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_20"/><path d=" M 290.1239,46.2959 L 300.0000,95.0000 L 300.0000,105.0000 L 290.1239,56.2959 L 290.1239,46.2959 z " style="fill: #cc0000; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_21"/><path d=" M 299.5000,95.0502 L 299.5000,100.0183 L 290.6239,56.2457 L 290.6239,51.2776 L 299.5000,95.0502 z " style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_22"/><path d=" M 290.1239,46.2959 L 300.0000,95.0000 L 300.0000,105.0000 L 290.1239,56.2959 L 290.1239,46.2959 z " style="fill: #edd400; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_23"/><path d=" M 299.5000,95.0502 L 299.5000,100.0183 L 290.6239,56.2457 L 290.6239,51.2776 L 299.5000,95.0502 z " style="fill: none; stroke: #edd400; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_24"/><path d=" M 295.7604,46.0544 L 300.0000,95.0000 L 300.0000,105.0000 L 295.7604,56.0544 L 295.7604,46.0544 z " style="fill: #edd400; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_25"/><path d=" M 299.5000,95.0216 L 299.5000,93.4335 L 296.2604,56.0328 L 296.2604,57.6209 L 299.5000,95.0216 z " style="fill: none; stroke: #edd400; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_26"/><path d=" M 295.7604,46.0544 L 300.0000,95.0000 L 300.0000,105.0000 L 295.7604,56.0544 L 295.7604,46.0544 z " style="fill: #75505b; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_27"/><path d=" M 299.5000,95.0216 L 299.5000,93.4335 L 296.2604,56.0328 L 296.2604,57.6209 L 299.5000,95.0216 z " style="fill: none; stroke: #75505b; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_28"/><path d=" M 300.0000,46.0000 L 300.0000,95.0000 L 300.0000,105.0000 L 300.0000,56.0000 L 300.0000,46.0000 z " style="fill: #75505b; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_29"/><path d=" M 300.0000,46.0000 L 300.0000,95.0000 L 300.0000,105.0000 L 300.0000,46.0000 z " style="fill: none; stroke: #75505b; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_30"/><path d=" M 300.0000,46.0000 L 300.0000,95.0000 L 300.0000,105.0000 L 300.0000,56.0000 L 300.0000,46.0000 z " style="fill: #f57900; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_31"/><path d=" M 300.0000,46.0000 L 300.0000,95.0000 L 300.0000,105.0000 L 300.0000,46.0000 z " style="fill: none; stroke: #f57900; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_32"/><path d=" M 390.0000,95.0000 L 300.0000,95.0000 L 300.0000,105.0000 L 390.0000,105.0000 L 390.0000,95.0000 z " style="fill: #4e9a06; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_33"/><path d=" M 300.5000,95.5000 L 300.5000,104.5000 L 389.5000,104.5000 L 389.5000,95.5000 L 300.5000,95.5000 z " style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_34"/><path d=" M 390.0000,95.0000 L 300.0000,95.0000 L 300.0000,105.0000 L 390.0000,105.0000 L 390.0000,95.0000 z " style="fill: #f57900; fill-opacity: 1.00; stroke: none;" id="ezcGraphPolygon_35"/><path d=" M 300.5000,95.5000 L 300.5000,104.5000 L 389.5000,104.5000 L 389.5000,95.5000 L 300.5000,95.5000 z " style="fill: none; stroke: #f57900; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphPolygon_36"/><path d="M 210.00,105.00 A 90.00,49.00 0 0,0 390.00,105.00 L 390.00,95.00 A 90.00,49.000000 0 0,1 210.00,95.00 z" style="fill: #4e9a06; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircularArc_37"/><path d="M 210.00,105.00 A 90.00,49.00 0 0,0 390.00,105.00 L 390.00,95.00 A 90.00,49.000000 0 0,1 210.00,95.00 z" style="fill: url(#LinearGradient_210_95_390_95_ffffffbf_0000007f); stroke: none;"/><path d="M 285.92,56.60 A 90.00,49.00 0 0,0 210.00,105.00 L 210.00,95.00 A 90.00,49.000000 0 0,1 285.92,46.60 z" style="fill: #4e9a06; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircularArc_38"/><path d="M 285.92,56.60 A 90.00,49.00 0 0,0 210.00,105.00 L 210.00,95.00 A 90.00,49.000000 0 0,1 285.92,46.60 z" style="fill: url(#LinearGradient_210_95_390_95_ffffffbf_0000007f); stroke: none;"/><path d="M 300.00,95.00 L 390.00,95.00 A 90.00,49.00 0 1,1 285.92,46.60 z" style="fill: #4e9a06; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircleSector_39"/><path d="M 299.57,95.50 L 389.50,95.50 A 89.50,48.50 0 1,1 285.56,47.13 z" style="fill: none; stroke: #4e9a06; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphCircleSector_40"/><path d="M 300.00,95.00 L 285.92,46.60 A 90.00,49.00 0 0,1 290.12,46.30 z" style="fill: #cc0000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircleSector_41"/><path d="M 294.55,74.49 L 286.56,47.04 A 89.50,48.50 0 0,1 289.72,46.82 z" style="fill: none; stroke: #cc0000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphCircleSector_42"/><path d="M 300.00,95.00 L 290.12,46.30 A 90.00,49.00 0 0,1 295.76,46.05 z" style="fill: #edd400; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircleSector_43"/><path d="M 297.33,79.31 L 290.72,46.76 A 89.50,48.50 0 0,1 295.30,46.57 z" style="fill: none; stroke: #edd400; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphCircleSector_44"/><path d="M 300.00,95.00 L 295.76,46.05 A 90.00,49.00 0 0,1 300.00,46.00 z" style="fill: #75505b; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircleSector_45"/><path d="M 298.67,73.82 L 296.30,46.54 A 89.50,48.50 0 0,1 299.50,46.50 z" style="fill: none; stroke: #75505b; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphCircleSector_46"/><path d="M 300.00,95.00 L 300.00,46.00 A 90.00,49.00 0 0,1 390.00,95.00 z" style="fill: #f57900; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircleSector_47"/><path d="M 300.50,94.50 L 300.50,46.50 A 89.50,48.50 0 0,1 389.50,94.50 z" style="fill: none; stroke: #f57900; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphCircleSector_48"/><path d=" M 298.5864,62.6090 L 218.0066,35.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_49"/><ellipse cx="298.5864" cy="62.6090" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_50"/><ellipse cx="218.0066" cy="35.0000" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_51"/><path d=" M 295.2925,62.6999 L 204.6971,55.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_53"/><ellipse cx="295.2925" cy="62.6999" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_54"/><ellipse cx="204.6971" cy="55.0000" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_55"/><path d=" M 292.0127,62.8884 L 197.1754,75.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_57"/><ellipse cx="292.0127" cy="62.8884" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_58"/><ellipse cx="197.1754" cy="75.0000" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_59"/><path d=" M 261.0331,119.6372 L 202.3485,140.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_61"/><ellipse cx="261.0331" cy="119.6372" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_62"/><ellipse cx="202.3485" cy="140.0000" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_63"/><path d=" M 342.4264,72.0897 L 393.7268,52.0000" style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_65"/><ellipse cx="342.4264" cy="72.0897" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_66"/><ellipse cx="393.7268" cy="52.0000" rx="3.0000" ry="3.0000" style="fill: #000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_67"/><g id="ezcGraphTextBox_4"><path d=" M 16.5000,17.0000 L 16.5000,1.5000 L 40.2600,1.5000 L 40.2600,17.0000 L 16.5000,17.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_69"/><text id="ezcGraphTextBox_4_text" x="17.0000" text-length="22.2600px" y="13.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Big</text></g><g id="ezcGraphTextBox_6"><path d=" M 16.5000,35.0000 L 16.5000,19.5000 L 69.9400,19.5000 L 69.9400,35.0000 L 16.5000,35.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_70"/><text id="ezcGraphTextBox_6_text" x="17.0000" text-length="51.9400px" y="31.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Small 1</text></g><g id="ezcGraphTextBox_8"><path d=" M 16.5000,53.0000 L 16.5000,37.5000 L 69.9400,37.5000 L 69.9400,53.0000 L 16.5000,53.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_71"/><text id="ezcGraphTextBox_8_text" x="17.0000" text-length="51.9400px" y="49.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Small 2</text></g><g id="ezcGraphTextBox_10"><path d=" M 16.5000,71.0000 L 16.5000,55.5000 L 69.9400,55.5000 L 69.9400,71.0000 L 16.5000,71.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_72"/><text id="ezcGraphTextBox_10_text" x="17.0000" text-length="51.9400px" y="67.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Small 3</text></g><g id="ezcGraphTextBox_12"><path d=" M 16.5000,89.0000 L 16.5000,73.5000 L 47.6800,73.5000 L 47.6800,89.0000 L 16.5000,89.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_73"/><text id="ezcGraphTextBox_12_text" x="17.0000" text-length="29.6800px" y="85.9000" style="font-size: 14px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Last</text></g><g id="ezcGraphTextBox_52"><path d=" M 121.4066,41.0000 L 121.4066,29.5000 L 213.0066,29.5000 L 213.0066,41.0000 L 121.4066,41.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_74"/><text id="ezcGraphTextBox_52_text" x="121.9066" text-length="90.1000px" y="38.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Small 3: 0 (0.8%)</text></g><g id="ezcGraphTextBox_56"><path d=" M 108.0971,61.0000 L 108.0971,49.5000 L 199.6971,49.5000 L 199.6971,61.0000 L 108.0971,61.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_75"/><text id="ezcGraphTextBox_56_text" x="108.5971" text-length="90.1000px" y="58.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Small 2: 0 (1.0%)</text></g><g id="ezcGraphTextBox_60"><path d=" M 100.5754,81.0000 L 100.5754,69.5000 L 192.1754,69.5000 L 192.1754,81.0000 L 100.5754,81.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_76"/><text id="ezcGraphTextBox_60_text" x="101.0754" text-length="90.1000px" y="78.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Small 1: 0 (0.8%)</text></g><g id="ezcGraphTextBox_64"><path d=" M 121.6485,146.0000 L 121.6485,134.5000 L 197.3485,134.5000 L 197.3485,146.0000 L 121.6485,146.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_77"/><text id="ezcGraphTextBox_64_text" x="122.1485" text-length="74.2000px" y="143.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Big: 2 (72.5%)</text></g><g id="ezcGraphTextBox_68"><path d=" M 399.2268,58.0000 L 399.2268,46.5000 L 480.2268,46.5000 L 480.2268,58.0000 L 399.2268,58.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_78"/><text id="ezcGraphTextBox_68_text" x="399.7268" text-length="79.5000px" y="55.5000" style="font-size: 10px; font-family: sans-serif; fill: #2e3436; fill-opacity: 1.00; stroke: none;">Last: 1 (25.0%)</text></g></g></svg> diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index 63fa015..0d2464b 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -1670,5 +1670,22 @@ class ezcGraphRenderer3dTest extends ezcGraphTestCase $this->fail( 'Expected ezcBaseValueException.' ); } + + public function testRenderer3dPieChartMissingLabels() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphPieChart(); + $chart->data['TestCase'] = new ezcGraphArrayDataSet( array( 'Big' => 2.9, 'Small 1' => 0.03, 'Small 2' => 0.04, 'Small 3' => 0.03, 'Last' => 1 ) ); + + $chart->renderer = new ezcGraphRenderer3d(); + $chart->renderer->options->dataBorder = false; + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } } ?> |