logo       

4128 - in trunk/Graph/docs: . img [eZComponents: Trunk]: msg#00301

web.ezcomponents.cvs

Subject: 4128 - in trunk/Graph/docs: . img [eZComponents: Trunk]

Author: Kore Nordmann
Date: 2006-11-29 12:44:25 +0100 (Wed, 29 Nov 2006)
New Revision: 4128

Log:
- Increased example numbers

Added:
trunk/Graph/docs/img/tutorial_example_25.svg.png
trunk/Graph/docs/img/tutorial_example_26.jpg
trunk/Graph/docs/img/tutorial_example_27.swf
trunk/Graph/docs/img/tutorial_example_28.svg
trunk/Graph/docs/img/tutorial_example_29.html
trunk/Graph/docs/img/tutorial_example_29.png
trunk/Graph/docs/tutorial_example_25.php
trunk/Graph/docs/tutorial_example_26.php
trunk/Graph/docs/tutorial_example_27.php
trunk/Graph/docs/tutorial_example_28.php
trunk/Graph/docs/tutorial_example_29.php
Removed:
trunk/Graph/docs/img/tutorial_example_24.svg.png
trunk/Graph/docs/img/tutorial_example_25.jpg
trunk/Graph/docs/img/tutorial_example_26.swf
trunk/Graph/docs/img/tutorial_example_27.svg
trunk/Graph/docs/img/tutorial_example_28.html
trunk/Graph/docs/img/tutorial_example_28.png
trunk/Graph/docs/tutorial_example_24.php
trunk/Graph/docs/tutorial_example_25.php
trunk/Graph/docs/tutorial_example_26.php
trunk/Graph/docs/tutorial_example_27.php
trunk/Graph/docs/tutorial_example_28.php

Deleted: trunk/Graph/docs/img/tutorial_example_24.svg.png
===================================================================
(Binary files differ)

Deleted: trunk/Graph/docs/img/tutorial_example_25.jpg
===================================================================
(Binary files differ)

Copied: trunk/Graph/docs/img/tutorial_example_25.svg.png (from rev 4122,
trunk/Graph/docs/img/tutorial_example_24.svg.png)

Copied: trunk/Graph/docs/img/tutorial_example_26.jpg (from rev 4122,
trunk/Graph/docs/img/tutorial_example_25.jpg)

Deleted: trunk/Graph/docs/img/tutorial_example_26.swf
===================================================================
(Binary files differ)

Deleted: trunk/Graph/docs/img/tutorial_example_27.svg
===================================================================
--- trunk/Graph/docs/img/tutorial_example_27.svg 2006-11-29 10:06:51 UTC
(rev 4127)
+++ trunk/Graph/docs/img/tutorial_example_27.svg 2006-11-29 11:44:25 UTC
(rev 4128)
@@ -1,2 +0,0 @@
-<?xml version="1.0"?>
-<svg xmlns="http://www.w3.org/2000/svg"; width="400" 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 400.0000,0.0000 L 400.0000,200.0000 L
0.0000,200.0000 z " style="fill: #ffffff; fill-opacity: 0.00; stroke: none;"
id="ezcGraphPolygon_1"/><path d=" M 0.0000,20.0000 L 0.0000,0.0000 L
400.0000,0.0000 L 400.0000,20.0000 L 0.0000,20.0000 z " style="fill: #000000;
fill-opacity: 0.00; stroke: none;" id="ezcGraphPolygon_2"/><path d=" M
0.0000,200.0000 L 0.0000,20.0000 L 80.0000,20.0000 L 80.0000,200.0000 L
0.0000,200.0000 z " style="fill: #000000; fill-opacity: 0.00; stroke: none;"
id="ezcGraphPolygon_4"/><ellipse cx="9" cy="29" rx="7" ry="7" style="fill:
#c90062; fill-opacity: 1.00; stroke: none; cursor: pointer;" id="ez
cGraphCircle_5" onclick="top.location =
'/detailedData.php?browser=Mozilla'"/><ellipse cx="9" cy="47" rx="7" ry="7"
style="fill: #e05206; fill-opacity: 1.00; stroke: none; cursor: pointer;"
id="ezcGraphCircle_7" onclick="top.location =
'/detailedData.php?browser=Explorer'"/><ellipse cx="9" cy="65" rx="7" ry="7"
style="fill: #f0ab00; fill-opacity: 1.00; stroke: none; cursor: pointer;"
id="ezcGraphCircle_9" onclick="top.location =
'/detailedData.php?browser=Opera'"/><ellipse cx="9" cy="83" rx="7" ry="7"
style="fill: #d4ba00; fill-opacity: 1.00; stroke: none; cursor: pointer;"
id="ezcGraphCircle_11" onclick="top.location =
'/detailedData.php?browser=Safari'"/><ellipse cx="9" cy="101" rx="7" ry="7"
style="fill: #9c9a00; fill-opacity: 1.00; stroke: none; cursor: pointer;"
id="ezcGraphCircle_13" onclick="top.location =
'/detailedData.php?browser=Konqueror'"/><path d="M 240.00,110.00 L 312.00
,110.00 A 72.00,72.00 0 1,1 178.24,72.99 z" style="fill: #c90062;
fill-opacity: 1.00; stroke: none; cursor: pointer;"
id="ezcGraphCircleSector_15" onclick="top.location =
'/detailedData.php?browser=Mozilla'"/><path d="M 240.00,110.00 L 312.00,110.00
A 72.00,72.00 0 1,1 178.24,72.99 z" style="fill: none; stroke: #650031;
stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin:
round;" id="ezcGraphCircleSector_16"/><path d="M 240.00,110.00 L 178.24,72.99 A
72.00,72.00 0 0,1 303.22,75.55 z" style="fill: #e05206; fill-opacity: 1.00;
stroke: none; cursor: pointer;" id="ezcGraphCircleSector_17"
onclick="top.location = '/detailedData.php?browser=Explorer'"/><path d="M
240.00,110.00 L 178.24,72.99 A 72.00,72.00 0 0,1 303.22,75.55 z" style="fill:
none; stroke: #702903; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap:
round; stroke-linejoin: round;" id="ezcGraphCircle
Sector_18"/><path d="M 240.00,110.00 L 303.22,75.55 A 72.00,72.00 0 0,1
310.31,94.51 z" style="fill: #f0ab00; fill-opacity: 1.00; stroke: none; cursor:
pointer;" id="ezcGraphCircleSector_19" onclick="top.location =
'/detailedData.php?browser=Opera'"/><path d="M 240.00,110.00 L 303.22,75.55 A
72.00,72.00 0 0,1 310.31,94.51 z" style="fill: none; stroke: #785600;
stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin:
round;" id="ezcGraphCircleSector_20"/><path d="M 240.00,110.00 L 310.31,94.51 A
72.00,72.00 0 0,1 311.70,103.44 z" style="fill: #d4ba00; fill-opacity: 1.00;
stroke: none; cursor: pointer;" id="ezcGraphCircleSector_21"
onclick="top.location = '/detailedData.php?browser=Safari'"/><path d="M
240.00,110.00 L 310.31,94.51 A 72.00,72.00 0 0,1 311.70,103.44 z" style="fill:
none; stroke: #6a5d00; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap:
round; st
roke-linejoin: round;" id="ezcGraphCircleSector_22"/><path d="M 240.00,110.00
L 311.70,103.44 A 72.00,72.00 0 0,1 312.00,110.00 z" style="fill: #9c9a00;
fill-opacity: 1.00; stroke: none; cursor: pointer;"
id="ezcGraphCircleSector_23" onclick="top.location =
'/detailedData.php?browser=Konqueror'"/><path d="M 240.00,110.00 L
311.70,103.44 A 72.00,72.00 0 0,1 312.00,110.00 z" style="fill: none; stroke:
#4e4d00; stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round;
stroke-linejoin: round;" id="ezcGraphCircleSector_24"/><path d=" M
225.7767,161.4018 L 212.2975,187.0000" style="fill: none; stroke: #000000;
stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin:
round;" id="ezcGraphLine_25"/><ellipse cx="225.77671190812"
cy="161.40177545864" rx="3" ry="3" style="fill: #000000; fill-opacity: 1.00;
stroke: none;" id="ezcGraphCircle_26"/><ellipse cx="212.2974655857
9" cy="187" rx="3" ry="3" style="fill: #000000; fill-opacity: 1.00; stroke:
none;" id="ezcGraphCircle_27"/><path d=" M 241.0940,56.6779 L 246.0000,30.0000"
style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00;
stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_29"/><ellipse
cx="241.09399109615" cy="56.677888002012" rx="3" ry="3" style="fill: #000000;
fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_30"/><ellipse cx="246"
cy="30" rx="3" ry="3" style="fill: #000000; fill-opacity: 1.00; stroke: none;"
id="ezcGraphCircle_31"/><path d=" M 289.9542,91.3177 L 320.5587,81.0000"
style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00;
stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_33"/><ellipse
cx="289.95415099231" cy="91.317729177593" rx="3" ry="3" style="fill: #000000;
fill-opacity: 1.00; stroke: none;" id="ezcGraphCi
rcle_34"/><ellipse cx="320.55870170543" cy="81" rx="3" ry="3" style="fill:
#000000; fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_35"/><path d=" M
292.7014,101.8141 L 325.2401,99.0000" style="fill: none; stroke: #000000;
stroke-width: 1; stroke-opacity: 1.00; stroke-linecap: round; stroke-linejoin:
round;" id="ezcGraphLine_37"/><ellipse cx="292.7013858335" cy="101.81413561844"
rx="3" ry="3" style="fill: #000000; fill-opacity: 1.00; stroke: none;"
id="ezcGraphCircle_38"/><ellipse cx="325.24014134263" cy="99" rx="3" ry="3"
style="fill: #000000; fill-opacity: 1.00; stroke: none;"
id="ezcGraphCircle_39"/><path d=" M 293.2778,107.5662 L 325.6932,117.0000"
style="fill: none; stroke: #000000; stroke-width: 1; stroke-opacity: 1.00;
stroke-linecap: round; stroke-linejoin: round;" id="ezcGraphLine_41"/><ellipse
cx="293.27777082731" cy="107.5661593895" rx="3" ry="3" style="fill: #000000;
fill-opacity: 1.00; stroke: none;" id="ezcGraphCircle_42"/><ellipse
cx="325.69316156359" cy="117" rx="3" ry="3" style="fill: #000000; fill-opacity:
1.00; stroke: none;" id="ezcGraphCircle_43"/><text id="ezcGraphTextBox_3"
x="118.91" text-length="162.18px" y="16.3" style="font-size: 18px; font-family:
sans-serif; fill: #1e1e1e; fill-opacity: 1.00; stroke: none;">Access
statistics</text><text id="ezcGraphTextBox_6" x="17" text-length="44.52px"
y="33.2" style="font-size: 12px; font-family: sans-serif; fill: #1e1e1e;
fill-opacity: 1.00; stroke: none; cursor: pointer;" onclick="top.location =
'/detailedData.php?browser=Mozilla'">Mozilla</text><text id="ezcGraphTextBox_8"
x="17" text-length="50.88px" y="51.2" style="font-size: 12px; font-family:
sans-serif; fill: #1e1e1e; fill-opacity: 1.00; stroke: none; cursor: pointer;"
onclick="top.location = '/detailedData.php?browser=Explorer'">Explore
r</text><text id="ezcGraphTextBox_10" x="17" text-length="31.8px" y="69.2"
style="font-size: 12px; font-family: sans-serif; fill: #1e1e1e; fill-opacity:
1.00; stroke: none; cursor: pointer;" onclick="top.location =
'/detailedData.php?browser=Opera'">Opera</text><text id="ezcGraphTextBox_12"
x="17" text-length="38.16px" y="87.2" style="font-size: 12px; font-family:
sans-serif; fill: #1e1e1e; fill-opacity: 1.00; stroke: none; cursor: pointer;"
onclick="top.location = '/detailedData.php?browser=Safari'">Safari</text><text
id="ezcGraphTextBox_14" x="17" text-length="57.24px" y="105.2"
style="font-size: 12px; font-family: sans-serif; fill: #1e1e1e; fill-opacity:
1.00; stroke: none; cursor: pointer;" onclick="top.location =
'/detailedData.php?browser=Konqueror'">Konqueror</text><text
id="ezcGraphTextBox_28" x="113.01746558579" text-length="93.28px" y="189.8"
style="font-size: 8px; font-famil
y: sans-serif; fill: #1e1e1e; fill-opacity: 1.00; stroke: none; cursor:
pointer;" onclick="top.location = '/detailedData.php?browser=Mozilla'">Mozilla:
19113 (58.6%)</text><text id="ezcGraphTextBox_32" x="252" text-length="97.52px"
y="32.8" style="font-size: 8px; font-family: sans-serif; fill: #1e1e1e;
fill-opacity: 1.00; stroke: none; cursor: pointer;" onclick="top.location =
'/detailedData.php?browser=Explorer'">Explorer: 10917 (33.5%)</text><text
id="ezcGraphTextBox_36" x="326.55870170543" text-length="46.64px" y="79.75"
style="font-size: 8px; font-family: sans-serif; fill: #1e1e1e; fill-opacity:
1.00; stroke: none; cursor: pointer;" onclick="top.location =
'/detailedData.php?browser=Opera'">Opera: 1464</text><text
id="ezcGraphTextBox_36" x="326.55870170543" text-length="25.44px" y="88.55"
style="font-size: 8px; font-family: sans-serif; fill: #1e1e1e; fill-opacity:
1.00; stroke: non
e;">(4.5%)</text><text id="ezcGraphTextBox_40" x="331.24014134263"
text-length="46.64px" y="97.75" style="font-size: 8px; font-family: sans-serif;
fill: #1e1e1e; fill-opacity: 1.00; stroke: none; cursor: pointer;"
onclick="top.location = '/detailedData.php?browser=Safari'">Safari:
652</text><text id="ezcGraphTextBox_40" x="331.24014134263"
text-length="25.44px" y="106.55" style="font-size: 8px; font-family:
sans-serif; fill: #1e1e1e; fill-opacity: 1.00; stroke:
none;">(2.0%)</text><text id="ezcGraphTextBox_44" x="331.69316156359"
text-length="59.36px" y="115.75" style="font-size: 8px; font-family:
sans-serif; fill: #1e1e1e; fill-opacity: 1.00; stroke: none; cursor: pointer;"
onclick="top.location = '/detailedData.php?browser=Konqueror'">Konqueror:
474</text><text id="ezcGraphTextBox_44" x="331.69316156359"
text-length="25.44px" y="124.55" style="font-size: 8px; font-family: sans-serif;
fill: #1e1e1e; fill-opacity: 1.00; stroke: none;">(1.5%)</text></g></svg>

Copied: trunk/Graph/docs/img/tutorial_example_27.swf (from rev 4122,
trunk/Graph/docs/img/tutorial_example_26.swf)

Deleted: trunk/Graph/docs/img/tutorial_example_28.html
===================================================================
--- trunk/Graph/docs/img/tutorial_example_28.html 2006-11-29 10:06:51 UTC
(rev 4127)
+++ trunk/Graph/docs/img/tutorial_example_28.html 2006-11-29 11:44:25 UTC
(rev 4128)
@@ -1,22 +0,0 @@
-<html>
- <head><title>Image map example</title></head>
- <body>
- <map
- name="ezcGraphPieChartMap">
-<area shape="poly"
coords="16,29,15,30,15,31,15,32,14,33,13,34,12,35,11,35,10,35,9,36,7,35,6,35,5,35,4,34,3,33,2,32,2,31,2,30,2,29,2,27,2,26,2,25,3,24,4,23,5,22,6,22,7,22,8,22,10,22,11,22,12,22,13,23,14,24,15,25,15,26,15,27"
href="/detailedData.php?browser=Mozilla" alt="symbol: Mozilla" title="symbol:
Mozilla" />
-<area shape="poly" coords="17,22,78,22,78,36,17,36"
href="/detailedData.php?browser=Mozilla" alt="text: Mozilla" title="text:
Mozilla" />
-<area shape="poly"
coords="16,47,15,48,15,49,15,50,14,51,13,52,12,53,11,53,10,53,9,54,7,53,6,53,5,53,4,52,3,51,2,50,2,49,2,48,2,47,2,45,2,44,2,43,3,42,4,41,5,40,6,40,7,40,8,40,10,40,11,40,12,40,13,41,14,42,15,43,15,44,15,45"
href="/detailedData.php?browser=Explorer" alt="symbol: Explorer"
title="symbol: Explorer" />
-<area shape="poly" coords="17,40,78,40,78,54,17,54"
href="/detailedData.php?browser=Explorer" alt="text: Explorer" title="text:
Explorer" />
-<area shape="poly"
coords="16,65,15,66,15,67,15,68,14,69,13,70,12,71,11,71,10,71,9,72,7,71,6,71,5,71,4,70,3,69,2,68,2,67,2,66,2,65,2,63,2,62,2,61,3,60,4,59,5,58,6,58,7,58,8,58,10,58,11,58,12,58,13,59,14,60,15,61,15,62,15,63"
href="/detailedData.php?browser=Opera" alt="symbol: Opera" title="symbol:
Opera" />
-<area shape="poly" coords="17,58,78,58,78,72,17,72"
href="/detailedData.php?browser=Opera" alt="text: Opera" title="text: Opera" />
-<area shape="poly"
coords="16,83,15,84,15,85,15,86,14,87,13,88,12,89,11,89,10,89,9,90,7,89,6,89,5,89,4,88,3,87,2,86,2,85,2,84,2,83,2,81,2,80,2,79,3,78,4,77,5,76,6,76,7,76,8,76,10,76,11,76,12,76,13,77,14,78,15,79,15,80,15,81"
href="/detailedData.php?browser=Safari" alt="symbol: Safari" title="symbol:
Safari" />
-<area shape="poly" coords="17,76,78,76,78,90,17,90"
href="/detailedData.php?browser=Safari" alt="text: Safari" title="text: Safari"
/>
-<area shape="poly"
coords="16,101,15,102,15,103,15,104,14,105,13,106,12,107,11,107,10,107,9,108,7,107,6,107,5,107,4,106,3,105,2,104,2,103,2,102,2,101,2,99,2,98,2,97,3,96,4,95,5,94,6,94,7,94,8,94,10,94,11,94,12,94,13,95,14,96,15,97,15,98,15,99"
href="/detailedData.php?browser=Konqueror" alt="symbol: Konqueror"
title="symbol: Konqueror" />
-<area shape="poly" coords="17,94,78,94,78,108,17,108"
href="/detailedData.php?browser=Konqueror" alt="text: Konqueror" title="text:
Konqueror" />
- </map>
- <img
- src="tutorial_example_28.png"
- width="400" height="200"
- usemap="#ezcGraphPieChartMap"
- </body>
-</html>

Deleted: trunk/Graph/docs/img/tutorial_example_28.png
===================================================================
(Binary files differ)

Copied: trunk/Graph/docs/img/tutorial_example_28.svg (from rev 4122,
trunk/Graph/docs/img/tutorial_example_27.svg)

Copied: trunk/Graph/docs/img/tutorial_example_29.html (from rev 4122,
trunk/Graph/docs/img/tutorial_example_28.html)

Copied: trunk/Graph/docs/img/tutorial_example_29.png (from rev 4122,
trunk/Graph/docs/img/tutorial_example_28.png)

Deleted: trunk/Graph/docs/tutorial_example_24.php
===================================================================
--- trunk/Graph/docs/tutorial_example_24.php 2006-11-29 10:06:51 UTC (rev
4127)
+++ trunk/Graph/docs/tutorial_example_24.php 2006-11-29 11:44:25 UTC (rev
4128)
@@ -1,31 +0,0 @@
-<?php
-
-require_once 'tutorial_autoload.php';
-
-$graph = new ezcGraphPieChart();
-$graph->background->color = '#FFFFFFFF';
-$graph->title = 'Access statistics';
-$graph->legend = false;
-
-$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
- 'Mozilla' => 19113,
- 'Explorer' => 10917,
- 'Opera' => 1464,
- 'Safari' => 652,
- 'Konqueror' => 474,
-) );
-
-$graph->renderer = new ezcGraphRenderer3d();
-$graph->renderer->options->pieChartShadowSize = 10;
-$graph->renderer->options->pieChartGleam = .5;
-$graph->renderer->options->dataBorder = false;
-$graph->renderer->options->pieChartHeight = 16;
-$graph->renderer->options->legendSymbolGleam = .5;
-
-$graph->driver->options->templateDocument = 'template.svg';
-$graph->driver->options->graphOffset = new ezcGraphCoordinate( 25, 40 );
-$graph->driver->options->insertIntoGroup = 'ezcGraph';
-
-$graph->render( 400, 200, 'tutorial_example_24.svg' );
-
-?>

Deleted: trunk/Graph/docs/tutorial_example_25.php
===================================================================
--- trunk/Graph/docs/tutorial_example_25.php 2006-11-29 10:06:51 UTC (rev
4127)
+++ trunk/Graph/docs/tutorial_example_25.php 2006-11-29 11:44:25 UTC (rev
4128)
@@ -1,27 +0,0 @@
-<?php
-
-require_once 'tutorial_autoload.php';
-
-$graph = new ezcGraphPieChart();
-$graph->palette = new ezcGraphPaletteEzGreen();
-$graph->title = 'Access statistics';
-$graph->legend = false;
-
-$graph->driver = new ezcGraphGdDriver();
-$graph->options->font = 'tutorial_font.ttf';
-
-$graph->driver->options->supersampling = 1;
-$graph->driver->options->jpegQuality = 100;
-$graph->driver->options->imageFormat = IMG_JPEG;
-
-$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
- 'Mozilla' => 19113,
- 'Explorer' => 10917,
- 'Opera' => 1464,
- 'Safari' => 652,
- 'Konqueror' => 474,
-) );
-
-$graph->render( 400, 200, 'tutorial_example_25.jpg' );
-
-?>

Copied: trunk/Graph/docs/tutorial_example_25.php (from rev 4122,
trunk/Graph/docs/tutorial_example_24.php)

Deleted: trunk/Graph/docs/tutorial_example_26.php
===================================================================
--- trunk/Graph/docs/tutorial_example_26.php 2006-11-29 10:06:51 UTC (rev
4127)
+++ trunk/Graph/docs/tutorial_example_26.php 2006-11-29 11:44:25 UTC (rev
4128)
@@ -1,31 +0,0 @@
-<?php
-
-require_once 'tutorial_autoload.php';
-
-$graph = new ezcGraphPieChart();
-$graph->title = 'Access statistics';
-$graph->legend = false;
-
-$graph->driver = new ezcGraphMingDriver();
-$graph->options->font = 'tutorial_font.fdb';
-
-$graph->driver->options->compression = 7;
-
-$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
- 'Mozilla' => 19113,
- 'Explorer' => 10917,
- 'Opera' => 1464,
- 'Safari' => 652,
- 'Konqueror' => 474,
-) );
-
-$graph->renderer = new ezcGraphRenderer3d();
-$graph->renderer->options->pieChartShadowSize = 10;
-$graph->renderer->options->pieChartGleam = .5;
-$graph->renderer->options->dataBorder = false;
-$graph->renderer->options->pieChartHeight = 16;
-$graph->renderer->options->legendSymbolGleam = .5;
-
-$graph->render( 400, 200, 'tutorial_example_26.swf' );
-
-?>

Copied: trunk/Graph/docs/tutorial_example_26.php (from rev 4122,
trunk/Graph/docs/tutorial_example_25.php)

Deleted: trunk/Graph/docs/tutorial_example_27.php
===================================================================
--- trunk/Graph/docs/tutorial_example_27.php 2006-11-29 10:06:51 UTC (rev
4127)
+++ trunk/Graph/docs/tutorial_example_27.php 2006-11-29 11:44:25 UTC (rev
4128)
@@ -1,55 +0,0 @@
-<?php
-
-require_once 'tutorial_autoload.php';
-
-$graph = new ezcGraphPieChart();
-$graph->palette = new ezcGraphPaletteEz();
-$graph->title = 'Access statistics';
-
-$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
- 'Mozilla' => 19113,
- 'Explorer' => 10917,
- 'Opera' => 1464,
- 'Safari' => 652,
- 'Konqueror' => 474,
-) );
-
-$graph->render( 400, 200, 'tutorial_example_27.svg' );
-
-// Get element references from renderer
-$elements = $graph->renderer->getElementReferences();
-
-// Add links to charts
-$dom = new DOMDocument();
-$dom->load( 'tutorial_example_27.svg' );
-$xpath = new DomXPath( $dom );
-
-// Link chart elements
-foreach( $elements['data']['Access statistics'] as $objectName => $ids )
-{
- foreach( $ids as $id )
- {
- echo "Link: $id\n";
- $element = $xpath->query( '//*[@id = \'' . $id . '\']' )->item( 0 );
-
- $element->setAttribute( 'style', $element->getAttribute( 'style' ) . '
cursor: pointer;' );
- $element->setAttribute( 'onclick', 'top.location =
\'/detailedData.php?browser=' . $objectName . '\'' );
- }
-}
-
-// Link legend elements
-foreach( $elements['legend'] as $objectName => $ids )
-{
- foreach( $ids as $id )
- {
- echo "Link: $id\n";
- $element = $xpath->query( '//*[@id = \'' . $id . '\']' )->item( 0 );
-
- $element->setAttribute( 'style', $element->getAttribute( 'style' ) . '
cursor: pointer;' );
- $element->setAttribute( 'onclick', 'top.location =
\'/detailedData.php?browser=' . $objectName . '\'' );
- }
-}
-
-$dom->save( 'tutorial_example_27.svg' );
-
-?>

Copied: trunk/Graph/docs/tutorial_example_27.php (from rev 4122,
trunk/Graph/docs/tutorial_example_26.php)

Deleted: trunk/Graph/docs/tutorial_example_28.php
===================================================================
--- trunk/Graph/docs/tutorial_example_28.php 2006-11-29 10:06:51 UTC (rev
4127)
+++ trunk/Graph/docs/tutorial_example_28.php 2006-11-29 11:44:25 UTC (rev
4128)
@@ -1,58 +0,0 @@
-<?php
-
-require_once 'tutorial_autoload.php';
-
-$graph = new ezcGraphPieChart();
-$graph->palette = new ezcGraphPaletteEzGreen();
-$graph->title = 'Access statistics';
-
-$graph->driver = new ezcGraphGdDriver();
-$graph->options->font = 'tutorial_font.ttf';
-
-$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
- 'Mozilla' => 19113,
- 'Explorer' => 10917,
- 'Opera' => 1464,
- 'Safari' => 652,
- 'Konqueror' => 474,
-) );
-
-$graph->render( 400, 200, 'tutorial_example_28.png' );
-
-$elements = $graph->renderer->getElementReferences();
-
-?>
-<html>
- <head><title>Image map example</title></head>
- <body>
- <map
- name="ezcGraphPieChartMap">
-<?php
- foreach ( $elements['legend'] as $objectName => $polygones )
- {
- foreach ( $polygones as $shape => $polygone )
- {
- $coordinateString = '';
- foreach( $polygone as $coordinate )
- {
- $coordinateString .= sprintf( '%d,%d,', $coordinate->x,
$coordinate->y );
- }
-
- printf( "<area shape=\"poly\" coords=\"%s\"
href=\"/detailedData.php?browser=%s\" alt=\"%s: %s\" title=\"%s: %s\" />\n",
- substr( $coordinateString, 0, -1 ),
- $objectName,
- $shape, $objectName,
- $shape, $objectName
- );
- }
- }
-?>
- </map>
- <img
- src="tutorial_example_28.png"
- width="400" height="200"
- usemap="#ezcGraphPieChartMap"
- </body>
-</html>
-<?php
-?>

Copied: trunk/Graph/docs/tutorial_example_28.php (from rev 4122,
trunk/Graph/docs/tutorial_example_27.php)

Copied: trunk/Graph/docs/tutorial_example_29.php (from rev 4122,
trunk/Graph/docs/tutorial_example_28.php)



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise