diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-11-02 09:44:35 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-11-02 10:06:13 +0100 |
| commit | cd71fe6687ff92c9de2b26ca4f4bd593b92c2f44 (patch) | |
| tree | b54e640db07000d69b3708b3e5fc7bc48da6cbe7 /addons/survey/static/src | |
| parent | f83cf7172e3e312231c209dde87df90014b0c402 (diff) | |
[FIX] web,survey: update graphs tooltip to new nvd3
with the update of nvd3/d3, the tooltip api was changed. This commit
updates the 3 last places where we were using the tooltips.
Diffstat (limited to 'addons/survey/static/src')
| -rw-r--r-- | addons/survey/static/src/js/survey_result.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/survey/static/src/js/survey_result.js b/addons/survey/static/src/js/survey_result.js index 8fdb794d567..8f8ca83efc9 100644 --- a/addons/survey/static/src/js/survey_result.js +++ b/addons/survey/static/src/js/survey_result.js @@ -50,12 +50,14 @@ if(!$('.js_surveyresult').length) { //initialize discreteBar Chart function init_bar_chart(){ - return nv.models.discreteBarChart() + var chart = nv.models.discreteBarChart() .x(function(d) { return d.text; }) .y(function(d) { return d.count; }) .staggerLabels(true) - .tooltips(false) .showValues(true); + + chart.tooltip.enabled(false); + return chart; } //initialize Pie Chart |
