From 067754f0f6100b0b2a4bc627dbafdaf3955c8102 Mon Sep 17 00:00:00 2001 From: Adrien Dieudonne Date: Wed, 19 Sep 2018 11:42:06 +0200 Subject: [REF] web: Use graph renderer to render pie_chart widget Before this rev., the pie_chart widget was rendered from scratch with nv.d3 and we had duplicated code. In comparison mode, two widgets were instancied and it was a bit difficult to synchronize the size of these svg graphs. nv.d3 graphs are attached when the dom is ready because it needs to calculate the available space. UI bugs can appear if the dom changes... .update() must be executed on the graph to avoid this as we already do in graph renderer. So now, the rendering of the pie_chart widget is done by the graph renderer. As comparaison mode is supported by the rendering, only one widget needs to be instancied. Task ID: 1835644 --- addons/web/static/src/xml/pie_chart.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 addons/web/static/src/xml/pie_chart.xml (limited to 'addons/web/static/src/xml/pie_chart.xml') diff --git a/addons/web/static/src/xml/pie_chart.xml b/addons/web/static/src/xml/pie_chart.xml new file mode 100644 index 00000000000..31f31b5b8d2 --- /dev/null +++ b/addons/web/static/src/xml/pie_chart.xml @@ -0,0 +1,10 @@ + -- cgit v1.2.3