diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2019-02-26 14:43:23 +0000 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2019-04-01 14:40:51 +0000 |
| commit | 604c43640a05ea30e085381c90584f31e8bf7f7c (patch) | |
| tree | 8eb67b4911c04f59a6cb537b9b920a017bd8ca85 /addons/web/static/src/xml/chart.xml | |
| parent | a8d3ca771f0d086767ed45a198db37ad3ebce029 (diff) | |
[IMP] web: use Chart.js in graph view
It has been decided to use Chart.js instead of nvd3 to render charts.
In this commit the graph view has been largely rewritten to benefit
from the options offered by Chart.js.
Task ID: 1946138
Diffstat (limited to 'addons/web/static/src/xml/chart.xml')
| -rw-r--r-- | addons/web/static/src/xml/chart.xml | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/addons/web/static/src/xml/chart.xml b/addons/web/static/src/xml/chart.xml index a6f5cccc712..d45bef7af6f 100644 --- a/addons/web/static/src/xml/chart.xml +++ b/addons/web/static/src/xml/chart.xml @@ -7,33 +7,4 @@ </graph> </t> -<t t-name="web.Chart.Tooltip"> - <table> - <thead> - <tr> - <td colspan="3"> - <strong class="x-value"> - <t t-esc="title"/> - </strong> - </td> - </tr> - </thead> - <tbody> - <t t-foreach="lines" t-as="line"> - <tr> - <td class="legend-color-guide"> - <div t-att-style="'background-color:' + line.color +';'"/> - </td> - <td class="key"> - <t t-esc="line.label"/> - </td> - <td class="value"> - <t t-esc="line.value && window.parseFloat(line.value).toFixed(2) || 0"/> - </td> - </tr> - </t> - </tbody> - </table> -</t> - </template> |
