details:   https://code.tryton.org/tryton/commit/00123388953e
branch:    default
user:      Eva Luadora <[email protected]>
date:      Wed Sep 02 13:57:21 2026 +0200
description:
        Bind graph using the DOM element instead of id

        Billboard must receive the graph element directly because the chart can 
be
        rendered while it is still detached from the document.

        Closes #14970
diffstat:

 sao/src/view/graph.js |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 3f9bfd6ce8b9 -r 00123388953e sao/src/view/graph.js
--- a/sao/src/view/graph.js     Mon Aug 24 11:56:05 2026 +0200
+++ b/sao/src/view/graph.js     Wed Sep 02 13:57:21 2026 +0200
@@ -69,7 +69,6 @@
             this.xfield = xfield;
             this.yfields = yfields;
             this.el = jQuery('<div/>');
-            this.el.uniqueId();
         },
         update_data: function(group) {
             var data = {};
@@ -171,7 +170,7 @@
         _bb_config: function(data) {
             var bb_config = {};
 
-            bb_config.bindto = '#' + this.el.attr('id');
+            bb_config.bindto = this.el.get(0);
             bb_config.data = data;
             bb_config.data.type = this._chart_type;
             bb_config.data.x = 'labels';

Reply via email to