diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-07-30 10:20:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-30 10:20:59 +0200 |
| commit | 64bed2851e0145985cf60732ad41a4f8f5a5fbf1 (patch) | |
| tree | d953e04ead5870ddfef8e48d3236a5920b78d6ab /addons/web/static/src/js/views/graph/graph_controller.js | |
| parent | 8a3284685856b6980e3b620abdbbb3e2c79f57c4 (diff) | |
| parent | f781a7acbbe305f09110e8d13c6451270e5596f0 (diff) | |
[MERGE] web: Various graph view improvements
This PR aims to bring several improvements to the graph view.
The main points are:
- custom tooltips in line mode to avoid problems with the Chart.js generic tooltips (those cannot
go outside of the canvas boundary and information is lost).
- tooltips when legend items hovered in case their texts were cut for reason of space.
See task https://www.odoo.com/web#id=1963306&action=333&active_id=133&model=project.task&view_type=form&menu_id=4720
closes odoo/odoo#33910
Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_controller.js')
| -rw-r--r-- | addons/web/static/src/js/views/graph/graph_controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_controller.js b/addons/web/static/src/js/views/graph/graph_controller.js index 9e2ebfc0a78..8cfed52a050 100644 --- a/addons/web/static/src/js/views/graph/graph_controller.js +++ b/addons/web/static/src/js/views/graph/graph_controller.js @@ -172,7 +172,7 @@ var GraphController = AbstractController.extend(GroupByMenuMixin,{ .find('.o_graph_button[data-mode="stack"]') .data('stacked', state.stacked) .toggleClass('active', state.stacked) - .toggleClass('o_hidden', state.mode !== 'bar'); + .toggleClass('o_hidden', state.mode !== 'bar' || !this.renderer.isStackable); _.each(this.$measureList.find('.dropdown-item'), function (item) { var $item = $(item); $item.toggleClass('selected', $item.data('field') === state.measure); |
