From 74f9cc0e886ebee352ee24931e3f70b6d4b2000a Mon Sep 17 00:00:00 2001 From: volterra79 Date: Wed, 22 Jan 2025 14:51:25 +0100 Subject: [PATCH] :bug: Client Qplotly - show right charts order and relation plots --- g3w-admin/qplotly/static/qplotly/js/sidebar.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/g3w-admin/qplotly/static/qplotly/js/sidebar.js b/g3w-admin/qplotly/static/qplotly/js/sidebar.js index 3457b2e3d..056680362 100644 --- a/g3w-admin/qplotly/static/qplotly/js/sidebar.js +++ b/g3w-admin/qplotly/static/qplotly/js/sidebar.js @@ -275,9 +275,7 @@ export default ({ await this.$nextTick(); const promises = []; - - console.log(this.charts, this.order) - + // loop through loop plot ids order and draw Plotly Chart this.order.forEach(plotId => { let promise; @@ -293,10 +291,10 @@ export default ({ // no data component setTimeout(() => this.$refs[`${plotId}`][0].appendChild((new Vue.extend({ template: /* html */ ` -
-

Plot [${plotId}] ${ chart.layout && chart.layout.title ? ' - ' + chart.layout.title : ''}

-
-
` +
+

Plot [${plotId}] ${ chart.layout && chart.layout.title ? ' - ' + chart.layout.title : ''}

+
+
` })()).$mount().$el)); } }); @@ -413,7 +411,7 @@ export default ({ layerIds: this.ids, // provided by query result service otherwise is undefined rel: this.rel, // provided by query result service otherwise is undefined }); - + // set charts await this.setCharts({ charts, order });