From 329552b78ee6c9efb8abc2a4a3c78f37d43871ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 29 Oct 2015 10:39:56 +0100 Subject: [FIX] web,account,website_links: update nvd3 to last version This commit was necessary to fix weird problems in 9.0-nightly. Phantomjs and the old nvd3 implementations did not play well together. * transitionDuration() replaced by duration() * tooltips() & tooltipContent replaced by tooltip.enable and tooltip.contentGenerator * remove useless less for tooltip Thanks to mge for his help --- addons/web/static/src/js/views/graph_widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/views/graph_widget.js') diff --git a/addons/web/static/src/js/views/graph_widget.js b/addons/web/static/src/js/views/graph_widget.js index aaeb8404f94..989db33c289 100644 --- a/addons/web/static/src/js/views/graph_widget.js +++ b/addons/web/static/src/js/views/graph_widget.js @@ -158,7 +158,7 @@ return Widget.extend({ var chart = nv.models.multiBarChart(); chart.options({ delay: 250, - transitionDuration: 10, + transition: 10, showLegend: true, showXAxis: true, showYAxis: true, @@ -212,7 +212,7 @@ return Widget.extend({ var chart = nv.models.pieChart(); chart.options({ delay: 250, - transitionDuration: 100, + transition: 100, color: d3.scale.category10().range(), }); -- cgit v1.2.3