Help:Extension/CreateGraph

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|author=K, Suwa
 
|author=K, Suwa
 
|version=0.1
 
|version=0.1
|mediawiki=1.11.1
+
|mediawiki=1.11 only
 
}}
 
}}
  
Line 14: Line 14:
 
== Download ==
 
== Download ==
 
<table border="1" cellpadding="3" cellspacing="1">
 
<table border="1" cellpadding="3" cellspacing="1">
  <tr><td>version</td><td>source</td><td>size</td></tr>
+
  <tr><td>version</td><td>source</td><td>md5</td></tr>
  <tr><td>0.1(September 11,2008)</td><td>CreateGraph.phps</td><td></td></tr>
+
  <tr><td>0.1(September 17,2008)</td><td>{{#ifexistfile:/data/src/CreateGraph/CreateGraph.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">abb3cbdb2d65afcccd52e91c7cb7a369</pre></td></tr>
 
</table>
 
</table>
  
  
 
<table border="1" cellpadding="3" cellspacing="1">
 
<table border="1" cellpadding="3" cellspacing="1">
  <tr><td>version</td><td>source</td><td>size</td></tr>
+
  <tr><td>version</td><td>source</td><td>md5</td></tr>
  <tr><td>0.1(September 11,2008)</td><td>graph.phps</td><td></td></tr>
+
  <tr><td>0.1(September 17,2008)</td><td>{{#ifexistfile:/data/src/CreateGraph/graph.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">f43944b3a54577a793edf379ba0ff2a9</pre></td></tr>
 
</table>
 
</table>
  
  
 
<table border="1" cellpadding="3" cellspacing="1">
 
<table border="1" cellpadding="3" cellspacing="1">
  <tr><td>version</td><td>source</td><td>size</td></tr>
+
  <tr><td>version</td><td>source</td><td>md5</td></tr>
  <tr><td>0.1(September 11,2008)</td><td>graph_inc.phps</td><td></td></tr>
+
  <tr><td>0.1(September 17,2008)</td><td>{{#ifexistfile:/data/src/CreateGraph/graph_inc.phps}}</td><td><pre style="border: 0px; background-color: white; padding: 0em; line-height: 0em">1325096054243aa333a98033c4d35c18</pre></td></tr>
 
</table>
 
</table>
  
 
== Installtion ==
 
== Installtion ==
 
<ol>
 
<ol>
 +
<li>Install jpgraph.</li>
 
  <li>Download CreateGraph.phps and rename it to CreateGraph.php.</li>
 
  <li>Download CreateGraph.phps and rename it to CreateGraph.php.</li>
 
  <li>Place it in the extensions/ directory.</li>
 
  <li>Place it in the extensions/ directory.</li>
Line 38: Line 39:
 
  <li>Insert the follow lines to LocalSettings.php
 
  <li>Insert the follow lines to LocalSettings.php
 
  <pre>require_once( "$IP/extensions/CreateGraph.php" );
 
  <pre>require_once( "$IP/extensions/CreateGraph.php" );
$egScriptPath = "path to directory which in graph.php from DocumentRoot";</pre></li>
+
$egScriptPath = "path to directory in graph.php from DocumentRoot"; // ex. "/mediawiki/scripts"</pre></li>
  <li>edit graph.inc
+
  <li>set $jpgraph variable in graph.inc
  <pre>$jpgraph = "path to jpgraph";</pre></li>
+
  <pre>$jpgraph = "path to jpgraph"; // ex. "/var/www/htdocs/mediawiki/scripts/jpgraph</pre></li>
 
</ol>
 
</ol>
  
 
== Function ==
 
== Function ==
 
# [[Help:Extensions#.7B.7B.23graph:type.7Csize.3D.5BWidth.5Dx.5BHheight.5D.3Btitle.3D.5Btitle.5D.3Blegend.3D.5BLeft.5Dx.5BTop.5D.3Blabel.3D.5Blabel1.5D.2C.5Blabel2.5D.2C....3B.5Bdata1.5D.3D.5Bn1-1.5D.2C.5Bn1-2.5D.2C....3B.5Bdata2.5D.3D.5Bn2-1.5D.2C.5Bn2-2.5D.2C....3B....7D.7D|graph]]
 
# [[Help:Extensions#.7B.7B.23graph:type.7Csize.3D.5BWidth.5Dx.5BHheight.5D.3Btitle.3D.5Btitle.5D.3Blegend.3D.5BLeft.5Dx.5BTop.5D.3Blabel.3D.5Blabel1.5D.2C.5Blabel2.5D.2C....3B.5Bdata1.5D.3D.5Bn1-1.5D.2C.5Bn1-2.5D.2C....3B.5Bdata2.5D.3D.5Bn2-1.5D.2C.5Bn2-2.5D.2C....3B....7D.7D|graph]]

Revision as of 13:55, 29 September 2008

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki1.11 only
License
Hooks used
Token type

Contents

 [hide


Extension to display graphs by using jpgraph.

Requirements

jpgraph

Download

versionsourcemd5
0.1(September 17,2008)CreateGraph.phps
abb3cbdb2d65afcccd52e91c7cb7a369


versionsourcemd5
0.1(September 17,2008)graph.phps
f43944b3a54577a793edf379ba0ff2a9


versionsourcemd5
0.1(September 17,2008)graph_inc.phps
1325096054243aa333a98033c4d35c18

Installtion

  1. Install jpgraph.
  2. Download CreateGraph.phps and rename it to CreateGraph.php.
  3. Place it in the extensions/ directory.
  4. Download graph.phps and graph_inc.phps, rename them to graph.php and graph.inc.
  5. Place them in any directory (the same place under DocumentRoot).
  6. Insert the follow lines to LocalSettings.php
    require_once( "$IP/extensions/CreateGraph.php" );
    $egScriptPath = "path to directory in graph.php from DocumentRoot"; // ex. "/mediawiki/scripts"
  7. set $jpgraph variable in graph.inc
    $jpgraph = "path to jpgraph"; // ex. "/var/www/htdocs/mediawiki/scripts/jpgraph

Function

  1. graph
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox