summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Metzler2013-06-11 16:41:47 (GMT)
committer David Metzler2013-06-11 16:41:47 (GMT)
commitaf22b7348cf71571e7c1785eaa23660dcb786373 (patch)
treecb9ab6299344a19c0c0da73bd3a0c9a1d78b9e83
parent5b4d8740ddd0dc21a3fb70fb7d5ab10819662a7f (diff)
Added update for newer more stable way of doing graphing. 7.x-3.5
-rwxr-xr-xrepos/reports/sample/state_summary.frx13
-rwxr-xr-xrepos/reports/sample/state_summary_ie8.frx52
2 files changed, 58 insertions, 7 deletions
diff --git a/repos/reports/sample/state_summary.frx b/repos/reports/sample/state_summary.frx
index 79f3050..e25908f 100755
--- a/repos/reports/sample/state_summary.frx
+++ b/repos/reports/sample/state_summary.frx
@@ -25,13 +25,12 @@
to see the possibilities for inter-connecting reports</p>
</div>
<div frx:block="sampledb/users_by_state" id="forena-1">
- <div
- frx:src="reports/sample.state_graph.svg?height=400&amp;width=600"
- frx:renderer="FrxInclude" frx:height="480" frx:width="640">
- <p>To see a sample graph embedded in this report. Install
- SVGGraph into your sites/all/libraries folder and enable the SVG
- document type in the forena document types configuration.</p>
- </div>
+ <svg id="state-chart" frx:block="sampledb/users_by_state"
+ frx:renderer="FrxSVGGraph" frx:type="bargraph"
+ frx:xpath="*[total&gt;10000]"
+ frx:link="sample.user_distribution_simple?state={state}"
+ frx:series_1="{total}" frx:label="{state}">
+ </svg>
<table>
<thead>
<tr>
diff --git a/repos/reports/sample/state_summary_ie8.frx b/repos/reports/sample/state_summary_ie8.frx
new file mode 100755
index 0000000..5614d50
--- /dev/null
+++ b/repos/reports/sample/state_summary_ie8.frx
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE root [
+<!ENTITY nbsp "&#160;">
+]>
+<html xmlns:frx="urn:FrxReports">
+<head>
+<title>6. External SVG Graph Example</title>
+<frx:category>Sample</frx:category>
+<frx:options />
+<frx:parameters>
+</frx:parameters>
+<frx:docgen>
+</frx:docgen>
+<frx:fields>
+ <frx:field id="state" link="" format="" format-string="" target="" />
+ <frx:field id="name" link="" format="" format-string="" target="" />
+ <frx:field id="total"
+ link="reports/sample.user_distribution_simple?state={state}#test"
+ format="" format-string="" target="" />
+</frx:fields>
+</head>
+<body>
+ <div>
+ <p>This example demonstrates graphing with SVG in a way that supports
+ older browsers that do not support inline SVG. If using Internet Explorer prior to version
+ 9 you would need an additional plugin to enable SVG support.</p>
+ </div>
+ <div frx:block="sampledb/users_by_state" id="forena-1">
+ <div
+ frx:src="reports/sample.state_graph.svg?height=400&amp;width=600"
+ frx:renderer="FrxInclude" frx:height="480" frx:width="640">
+ <p>To see a sample graph embedded in this report. Install
+ SVGGraph into your sites/all/libraries folder and enable the SVG
+ document type in the forena document types configuration.</p>
+ </div>
+ <table>
+ <thead>
+ <tr>
+ <th>name</th>
+ <th>total</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr frx:foreach="*" id="forena-2">
+ <td>{state} - {name}</td>
+ <td>{total}</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+</body>
+</html>