Author: abrice
Date: 2010-03-12 15:37:19 +0100 (Fri, 12 Mar 2010)
New Revision: 28505

Added:
   plugins/sfdisichartPlugin/sfdisichartPlugin/LICENSE
   plugins/sfdisichartPlugin/sfdisichartPlugin/README
Removed:
   plugins/sfdisichartPlugin/LICENSE
   plugins/sfdisichartPlugin/README
Log:
commit sfdisichart : 2010/03/12

Deleted: plugins/sfdisichartPlugin/LICENSE
===================================================================
--- plugins/sfdisichartPlugin/LICENSE   2010-03-12 14:34:46 UTC (rev 28504)
+++ plugins/sfdisichartPlugin/LICENSE   2010-03-12 14:37:19 UTC (rev 28505)
@@ -1,23 +0,0 @@
-Plugin by Brice IADY and Tahiry RABENANAHARY. 
-Original library by Highcharts (www.highcharts.com).
-Highcharts is a charting library written in pure JavaScript, 
-offering an easy way of adding interactive charts to your web site or web 
application. 
-Highcharts currently supports line, spline, area, areaspline, column, bar, pie 
and scatter chart types.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy 
of this software 
-and associated documentation files (the "Software"), to deal in the Software 
without restriction, 
-including without limitation the rights to use, copy, modify, merge, publish, 
distribute, sublicense, 
-and/or sell copies of the Software, and to permit persons to whom the Software 
is furnished 
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all 
copies 
-or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
IMPLIED, 
-INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR 
-PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
HOLDERS BE LIABLE FOR ANY CLAIM, 
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 
-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 
OR 
-OTHER DEALINGS IN THE SOFTWARE.
-
-To Read original library's license see README.txt in plugin's lib folder

Deleted: plugins/sfdisichartPlugin/README
===================================================================
--- plugins/sfdisichartPlugin/README    2010-03-12 14:34:46 UTC (rev 28504)
+++ plugins/sfdisichartPlugin/README    2010-03-12 14:37:19 UTC (rev 28505)
@@ -1,231 +0,0 @@
-sfdisichartPlugin
-=================
-
-`sfdisichartPlugin` is a plugin symfony with javascript to create chart based 
on Highcharts-1.1.3(plugin javascript).
-
-Using sfdisichartPlugin you can create different types of charts like,
-
-  * Bar Chart
-  
-  * Line Chart
-     
-  * Pie Chart
-  
-  * Bars + Lines
-  
-  * Area Chart
-  
-  * Scatter Chart
-    
-  * Combination
-  
-  * etc
-
-Installation
-============
-
-Install the plugin:
-
-    $ symfony plugin:install sfdisichartPlugin
- 
-Or download it and unzip in your /plugins directory
-
->**Note**
-symfony 1.3/1.4: Enable the plugin by hand in ProjectConfiguration.class.php 
as it was not installed via the plugin:install task
-
-    [php]
-    // config/ProjectConfiguration.class.php
-    class ProjectConfiguration extends sfProjectConfiguration
-    {
-      public function setup()
-      {
-        $this->enablePlugins('sfdisichartPlugin');
-      }
-    }
-
-Clear you cache:
-
-    $ symfony cc
-
-Usage
-=====
-
-You just need to add the following line of code in your template where you 
want to create graph
-
-    [php]
-    <?php createdisichart_tag('disichart/areabasic','width:600px; 
height:300px; margin-top: 20px; background-color:#EEF2F7;'); ?> ?>
-
->**Note**
->The first parameter is URL for data and the second the style of the div. 
-
-
-
-Bar Chart
----------
-
-Following is an example of a bar chart:
-
-    [php]
-    public function executeBarbasic(sfWebRequest $request){
-            
-        $graphtype = new barchart("barbasic");
-        $graphtype->gettitle()->settext("Historic World Population by Region");
-        $graphtype->getsubtitle()->settext("Source: Wikipedia.org");
-        
-        $graphtype->getxAxis()->setcategories("['Africa', 'America', 'Asia', 
'Europe', 'Oceania']");
-        $graphtype->getxAxis()->gettitle()->settext(null);
-                
-        $graphtype->getyAxis()->gettitle()->settext("Population (millions)");
-        $graphtype->getyAxis()->gettitle()->setalign("high");
-        $graphtype->getyAxis()->setmin(0);
-        
-        $graphtype->gettooltip()->setformatter("function() {
-                                                                       return 
'<b>'+ this.x +'</b><br/>'+
-                                                                               
 this.series.name +': '+ this.y +' millions';
-                                                                  }");
-        
-        
$graphtype->getplotOptions()->getbar()->getdataLabels()->setenabled(true);
-        
-        $graphtype->getlegend()->setlayout("vertical");
-        $graphtype->getlegend()->setstyle("{position: 'absolute',bottom: 
'auto',left: 'auto',right: '100px',top: '100px'}");
-        $graphtype->getlegend()->setborderWidth(1);
-        $graphtype->getlegend()->setbackgroundColor("#ffffff");
-        
-        $graphtype->getcredits()->setenabled(false);
-        
-        $arrSeriesvalues = "[{
-                                       name: 'Year 1800',
-                                       data: [107, 31, 635, 203, 2]
-                               }, {
-                                       name: 'Year 1900',
-                                       data: [133, 156, 947, 408, 6]
-                               }, {
-                                       name: 'Year 2008',
-                                       data: [973, 914, 4054, 732, 34]
-                               }]" ;
-              
-        $graphtype->setseries($arrSeriesvalues);
-
-        $graphtype->render();
-        
-        return sfView::NONE;    
-       }  
-       
-Line Chart
-----------
-
-Following is an example of a line chart:
-
-    [php]
-       public function executeLinebasic(sfWebRequest $request){
-            
-        $graphtype = new linechart("div_linegraph");
-        
-        $graphtype->gettitle()->settext("Monthly Average Temperature");
-        $graphtype->gettitle()->setstyle("{margin: '0 100px 0 0'}");
-        $graphtype->getxAxis()->setcategories("['Jan', 'Feb', 'Mar', 'Apr', 
'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']");
-        $graphtype->getxAxis()->gettitle()->settext("Month");
-        $graphtype->getsubtitle()->settext("Source: WorldClimate.com");
-        $graphtype->getsubtitle()->setstyle("{margin: '0 100px 0 0'}");
-        
-        $graphtype->getyAxis()->gettitle()->settext("Temperature (&#176;C)");
-        $graphtype->getyAxis()->setplotLines("[{value: 0,width: 1,color: 
'#808080'}]");
-        
-        $graphtype->gettooltip()->setformatter("function() {return '<b>'+ 
this.series.name +'</b><br/>'+       this.x +': '+ this.y +'&#176;C'}");
-        
-        $graphtype->getlegend()->setlayout("vertical");
-        $graphtype->getlegend()->setstyle("{left: 'auto',bottom: 'auto',right: 
'10px',top: '100px'}");
-
-      
-        $arrSeriesvalues = "[{
-                                       name: 'Tokyo',
-                                       data: [10.0, 7.9, 11.5, 14.5, 18.2, 
21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
-                               }, {
-                                       name: 'New York',
-                                       data: [-0.2, 0.8, 5.7, 11.3, 17.0, 
22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
-                               }, {
-                                       name: 'Berlin',
-                                       data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 
18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
-                               }, {
-                                       name: 'London',
-                                       data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 
17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
-                               }]" ;
-              
-        $graphtype->setseries($arrSeriesvalues);
-
-        $graphtype->render();
-        
-        return sfView::NONE;    
-       }
-
-Pie Chart
----------
-
-Following is an example of pie chart,
-
-    [php]
-       public function executePie(sfWebRequest $request){
-        
-        $graphtype = new otherchart("pie");
-        $graphtype->getchart()->setmargin("[50, 200, 60, 170]");
-        
-        $graphtype->gettitle()->settext("Browser market shares at a specific 
website, 2008");
-        
-        $graphtype->gettooltip()->setformatter("function() {
-                                                                               
                        return '<b>'+ this.point.name +'</b>: '+ this.y +' %';
-                                                                  }");
-        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setenabled(true);
-        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setformatter("function()
 {
-                                                                               
                        if (this.y > 5) return this.point.name;
-                                                                               
                }");
-        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setcolor("yellow");
-        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setstyle("{font: '13px 
Trebuchet MS, Verdana, sans-serif'}");
-        
-        $graphtype->getlegend()->setlayout("vertical");
-        $graphtype->getlegend()->setstyle("{left: 'auto',bottom: 'auto',right: 
'50px',top: '100px'}");
-        
-        $arrSeriesvalues = "[{
-                                       type: 'pie',
-                                       name: 'Browser share',
-                                       data: [{
-                                                       name: 'Firefox',
-                                                       y: 44.2,
-                                                       sliced: false
-                                               },
-                                               ['IE7', 26.6],
-                                               {
-                                                       name: 'IE6',
-                                                       y: 20,
-                                                       sliced: true
-                                               },
-                                               ['Chrome', 3.1],
-                                               {
-                                                       name: 'Safari',
-                                                       y: 2.7,
-                                                       sliced: false
-                                               },
-                                               ['Opera', 2.3],
-                                               ['Mozilla', 0.4]
-                                       ]
-                               }]" ;
-              
-        $graphtype->setseries($arrSeriesvalues);
-        
-        $graphtype->render();
-        
-        return sfView::NONE;    
-       }   
-
-
->See sfdisichartExample module for details.
-
-Configuration
-=============
-
- * To test sfdisichartExample, enable the __sfdisichartExample__ module in 
your `settings.yml``file, then call __sfdisichartExample__ in your browser
-  
-setting.yml
-
-    all:
-      .settings:
-        enabled_modules:        [sfdisichartExample]

Added: plugins/sfdisichartPlugin/sfdisichartPlugin/LICENSE
===================================================================
--- plugins/sfdisichartPlugin/sfdisichartPlugin/LICENSE                         
(rev 0)
+++ plugins/sfdisichartPlugin/sfdisichartPlugin/LICENSE 2010-03-12 14:37:19 UTC 
(rev 28505)
@@ -0,0 +1,23 @@
+Plugin by Brice IADY and Tahiry RABENANAHARY. 
+Original library by Highcharts (www.highcharts.com).
+Highcharts is a charting library written in pure JavaScript, 
+offering an easy way of adding interactive charts to your web site or web 
application. 
+Highcharts currently supports line, spline, area, areaspline, column, bar, pie 
and scatter chart types.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy 
of this software 
+and associated documentation files (the "Software"), to deal in the Software 
without restriction, 
+including without limitation the rights to use, copy, modify, merge, publish, 
distribute, sublicense, 
+and/or sell copies of the Software, and to permit persons to whom the Software 
is furnished 
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all 
copies 
+or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
IMPLIED, 
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR 
+PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
HOLDERS BE LIABLE FOR ANY CLAIM, 
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 
OR 
+OTHER DEALINGS IN THE SOFTWARE.
+
+To Read original library's license see README.txt in plugin's lib folder

Added: plugins/sfdisichartPlugin/sfdisichartPlugin/README
===================================================================
--- plugins/sfdisichartPlugin/sfdisichartPlugin/README                          
(rev 0)
+++ plugins/sfdisichartPlugin/sfdisichartPlugin/README  2010-03-12 14:37:19 UTC 
(rev 28505)
@@ -0,0 +1,231 @@
+sfdisichartPlugin
+=================
+
+`sfdisichartPlugin` is a plugin symfony with javascript to create chart based 
on Highcharts-1.1.3(plugin javascript).
+
+Using sfdisichartPlugin you can create different types of charts like,
+
+  * Bar Chart
+  
+  * Line Chart
+     
+  * Pie Chart
+  
+  * Bars + Lines
+  
+  * Area Chart
+  
+  * Scatter Chart
+    
+  * Combination
+  
+  * etc
+
+Installation
+============
+
+Install the plugin:
+
+    $ symfony plugin:install sfdisichartPlugin
+ 
+Or download it and unzip in your /plugins directory
+
+>**Note**
+symfony 1.3/1.4: Enable the plugin by hand in ProjectConfiguration.class.php 
as it was not installed via the plugin:install task
+
+    [php]
+    // config/ProjectConfiguration.class.php
+    class ProjectConfiguration extends sfProjectConfiguration
+    {
+      public function setup()
+      {
+        $this->enablePlugins('sfdisichartPlugin');
+      }
+    }
+
+Clear you cache:
+
+    $ symfony cc
+
+Usage
+=====
+
+You just need to add the following line of code in your template where you 
want to create graph
+
+    [php]
+    <?php createdisichart_tag('disichart/areabasic','width:600px; 
height:300px; margin-top: 20px; background-color:#EEF2F7;'); ?> ?>
+
+>**Note**
+>The first parameter is URL for data and the second the style of the div. 
+
+
+
+Bar Chart
+---------
+
+Following is an example of a bar chart:
+
+    [php]
+    public function executeBarbasic(sfWebRequest $request){
+            
+        $graphtype = new barchart("barbasic");
+        $graphtype->gettitle()->settext("Historic World Population by Region");
+        $graphtype->getsubtitle()->settext("Source: Wikipedia.org");
+        
+        $graphtype->getxAxis()->setcategories("['Africa', 'America', 'Asia', 
'Europe', 'Oceania']");
+        $graphtype->getxAxis()->gettitle()->settext(null);
+                
+        $graphtype->getyAxis()->gettitle()->settext("Population (millions)");
+        $graphtype->getyAxis()->gettitle()->setalign("high");
+        $graphtype->getyAxis()->setmin(0);
+        
+        $graphtype->gettooltip()->setformatter("function() {
+                                                                       return 
'<b>'+ this.x +'</b><br/>'+
+                                                                               
 this.series.name +': '+ this.y +' millions';
+                                                                  }");
+        
+        
$graphtype->getplotOptions()->getbar()->getdataLabels()->setenabled(true);
+        
+        $graphtype->getlegend()->setlayout("vertical");
+        $graphtype->getlegend()->setstyle("{position: 'absolute',bottom: 
'auto',left: 'auto',right: '100px',top: '100px'}");
+        $graphtype->getlegend()->setborderWidth(1);
+        $graphtype->getlegend()->setbackgroundColor("#ffffff");
+        
+        $graphtype->getcredits()->setenabled(false);
+        
+        $arrSeriesvalues = "[{
+                                       name: 'Year 1800',
+                                       data: [107, 31, 635, 203, 2]
+                               }, {
+                                       name: 'Year 1900',
+                                       data: [133, 156, 947, 408, 6]
+                               }, {
+                                       name: 'Year 2008',
+                                       data: [973, 914, 4054, 732, 34]
+                               }]" ;
+              
+        $graphtype->setseries($arrSeriesvalues);
+
+        $graphtype->render();
+        
+        return sfView::NONE;    
+       }  
+       
+Line Chart
+----------
+
+Following is an example of a line chart:
+
+    [php]
+       public function executeLinebasic(sfWebRequest $request){
+            
+        $graphtype = new linechart("div_linegraph");
+        
+        $graphtype->gettitle()->settext("Monthly Average Temperature");
+        $graphtype->gettitle()->setstyle("{margin: '0 100px 0 0'}");
+        $graphtype->getxAxis()->setcategories("['Jan', 'Feb', 'Mar', 'Apr', 
'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']");
+        $graphtype->getxAxis()->gettitle()->settext("Month");
+        $graphtype->getsubtitle()->settext("Source: WorldClimate.com");
+        $graphtype->getsubtitle()->setstyle("{margin: '0 100px 0 0'}");
+        
+        $graphtype->getyAxis()->gettitle()->settext("Temperature (&#176;C)");
+        $graphtype->getyAxis()->setplotLines("[{value: 0,width: 1,color: 
'#808080'}]");
+        
+        $graphtype->gettooltip()->setformatter("function() {return '<b>'+ 
this.series.name +'</b><br/>'+       this.x +': '+ this.y +'&#176;C'}");
+        
+        $graphtype->getlegend()->setlayout("vertical");
+        $graphtype->getlegend()->setstyle("{left: 'auto',bottom: 'auto',right: 
'10px',top: '100px'}");
+
+      
+        $arrSeriesvalues = "[{
+                                       name: 'Tokyo',
+                                       data: [10.0, 7.9, 11.5, 14.5, 18.2, 
21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
+                               }, {
+                                       name: 'New York',
+                                       data: [-0.2, 0.8, 5.7, 11.3, 17.0, 
22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
+                               }, {
+                                       name: 'Berlin',
+                                       data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 
18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
+                               }, {
+                                       name: 'London',
+                                       data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 
17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
+                               }]" ;
+              
+        $graphtype->setseries($arrSeriesvalues);
+
+        $graphtype->render();
+        
+        return sfView::NONE;    
+       }
+
+Pie Chart
+---------
+
+Following is an example of pie chart,
+
+    [php]
+       public function executePie(sfWebRequest $request){
+        
+        $graphtype = new otherchart("pie");
+        $graphtype->getchart()->setmargin("[50, 200, 60, 170]");
+        
+        $graphtype->gettitle()->settext("Browser market shares at a specific 
website, 2008");
+        
+        $graphtype->gettooltip()->setformatter("function() {
+                                                                               
                        return '<b>'+ this.point.name +'</b>: '+ this.y +' %';
+                                                                  }");
+        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setenabled(true);
+        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setformatter("function()
 {
+                                                                               
                        if (this.y > 5) return this.point.name;
+                                                                               
                }");
+        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setcolor("yellow");
+        
$graphtype->getplotOptions()->getpie()->getdataLabels()->setstyle("{font: '13px 
Trebuchet MS, Verdana, sans-serif'}");
+        
+        $graphtype->getlegend()->setlayout("vertical");
+        $graphtype->getlegend()->setstyle("{left: 'auto',bottom: 'auto',right: 
'50px',top: '100px'}");
+        
+        $arrSeriesvalues = "[{
+                                       type: 'pie',
+                                       name: 'Browser share',
+                                       data: [{
+                                                       name: 'Firefox',
+                                                       y: 44.2,
+                                                       sliced: false
+                                               },
+                                               ['IE7', 26.6],
+                                               {
+                                                       name: 'IE6',
+                                                       y: 20,
+                                                       sliced: true
+                                               },
+                                               ['Chrome', 3.1],
+                                               {
+                                                       name: 'Safari',
+                                                       y: 2.7,
+                                                       sliced: false
+                                               },
+                                               ['Opera', 2.3],
+                                               ['Mozilla', 0.4]
+                                       ]
+                               }]" ;
+              
+        $graphtype->setseries($arrSeriesvalues);
+        
+        $graphtype->render();
+        
+        return sfView::NONE;    
+       }   
+
+
+>See sfdisichartExample module for details.
+
+Configuration
+=============
+
+ * To test sfdisichartExample, enable the __sfdisichartExample__ module in 
your `settings.yml``file, then call __sfdisichartExample__ in your browser
+  
+setting.yml
+
+    all:
+      .settings:
+        enabled_modules:        [sfdisichartExample]

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to