Search 1.9 billion lines of Odoo code on GitHub

web_google_chart

Author:
License: no license
Branch: master
Repository: dw250100785/web_google_chart
Dependencies: web, and web_graph
Languages: Bourne Shell (117, 16.1%), JavaScript (486, 66.9%), PO File (17, 2.3%), Python (13, 1.8%), Windows Resource File (27, 3.7%), XML (4, 0.6%), and reStructuredText (63, 8.7%)
Other repositories: hgsoft/web_google_chart, and vaab/web_google_chart

<h1 class="title">Web Google Chart for OpenERP</h1> <p>This is an OpenERP addons to replace all chart of the web client by <a class="reference external" href="https://developers.google.com/chart/">google chart</a> version. It also adds several new features. Please consult the list of features further down.</p> <a name="acknowledgments"></a> <h2>Acknowledgments</h2> <p>Many thanks to <a class="reference external" href="http://www.cariforef-reunion.net/">CARIF-OREF La RĂ©union</a> which has funded the near entirety of the development of this code.</p> <a name="requirements"></a> <h2>Requirements</h2> <p>This addons is made for OpenERP version 6.1</p> <p>Please bear in mind that Google Charts library need to be downloaded from google's site. So if you have an intranet OpenERP without access to Internet, this module is not for you.</p> <a name="installation"></a> <h2>Installation</h2> <p>Install this as any OpenERP addons, and then look at your charts.</p> <a name="features"></a> <h2>Features</h2> <p>Besides all charts of OpenERP being replaced by google version:</p> <blockquote> <ul> <li><p class="first">several bugs were fixed from original <code>chart.js</code> from version 6.1.1</p> </li> <li><p class="first">support of new type 'gauge' and 'pyramid' type of charts.</p> <p>For a population pyramid, for example:</p> <pre> <code>&lt;graph type=&quot;pyramid&quot;&gt; &lt;field name=&quot;age&quot; /&gt; &lt;field name=&quot;gender_id&quot; group=&quot;True&quot; /&gt; &lt;field name=&quot;nbr&quot; operator=&quot;+&quot;/&gt; &lt;/graph&gt;</code> </pre> </li> <li><p class="first">new aggregation operator <code>#</code> (namely equivalent to COUNT in SQL), and <code>avg</code> which is self explanatory.</p> </li> <li><p class="first">all graphs can be customized much more than OpenERP, for example:</p> <pre> <code>&lt;graph string=&quot;Gauge Example&quot; type=&quot;gauge&quot;&gt; &lt;field name=&quot;name&quot;/&gt; &lt;field name=&quot;nbr&quot; operator=&quot;+&quot;/&gt; &lt;html&gt; &lt;graph-options&gt; { width: 400, height: 120, redFrom: 90, redTo: 100, yellowFrom:75, yellowTo: 90, minorTicks: 5 } &lt;/graph-options&gt; &lt;/html&gt; &lt;/graph&gt;</code> </pre> </li> </ul> <blockquote> Options are the google chart ones. So documentation is available on <a class="reference external" href="https://developers.google.com/chart/">google chart</a> site.</blockquote> </blockquote> <a name="troubleshooting"></a> <h2>Troubleshooting</h2> <ul> <li><p class="first">It has occurred on some rare occasion that legacy <code>chart.js</code> seems to be loaded after the javascript code of this module, leading to google chart NOT replacing legacy charts. This remains to be confirmed as I cannot reproduce it.</p> <p>To check if this is the case in your installation, you can comment the line in <code>addons/web_graph/static/src/js/chart.js</code>:</p> <pre> <code>openerp.web.views.add('graph', 'openerp.web_graph.GraphView');</code> </pre> <p>which you'll find in the 20 first line of this file. Then ensure your browser cache is emptied (<code>Ctrl-Shift Del</code> and select only <code>cache</code>, or use <code>Ctrl-F5</code>) to ensure you reload the new javascript. This could help you using <code>web_google_chart</code> if ever it didn't work on your installation.</p> <p>Send me the result through the <code>Issues</code> tab if can reproduce this bug or have any information on it.</p> </li> </ul>