From 36f89b961562299c721c14e2281ac10fb72a060c Mon Sep 17 00:00:00 2001 From: alxndrkalinin <1107762+alxndrkalinin@users.noreply.github.com> Date: Tue, 25 Jan 2022 19:08:22 +0100 Subject: [PATCH] fix(StatsMainCtrl): fix chart embedding for CI for one proportion --- app/scripts/analysis/tools/Stats/StatsMainCtrl.ctrl.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/scripts/analysis/tools/Stats/StatsMainCtrl.ctrl.coffee b/app/scripts/analysis/tools/Stats/StatsMainCtrl.ctrl.coffee index 4d044d4b..40427b79 100644 --- a/app/scripts/analysis/tools/Stats/StatsMainCtrl.ctrl.coffee +++ b/app/scripts/analysis/tools/Stats/StatsMainCtrl.ctrl.coffee @@ -272,7 +272,6 @@ module.exports = class StatsMainCtrl extends BaseCtrl #Chart Visualization CIOPChart:() -> - @ve = require 'vega-embed' nums = [{"lower" : @lowbound}, {"upper" : @upbound}, {"center" : @CIOPP}] title = "LowerBound: ".concat (@lowbound.toFixed(3)).toString() title = title.concat " Center: " @@ -307,9 +306,11 @@ module.exports = class StatsMainCtrl extends BaseCtrl } }] } - opt = "actions": {export: true, source: false, editor: false} #Embed the visualization in the container with id `vis` - @ve '#visCIOP', vlSpec, opt, (error, result) -> + opt = {mode: "vega-lite", "actions": {export: true, source: false, editor: true}} + @ve('#visCIOP', vlSpec, opt, (error, result) -> return).then((result) => + ) + #example update function in chi squared service update PilotStudyRetrieve:() ->