Skip to content

Commit

Permalink
fix(StatsMainCtrl): fix chart embedding for CI for one proportion
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrkalinin committed Jan 25, 2022
1 parent 221102a commit 36f89b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/scripts/analysis/tools/Stats/StatsMainCtrl.ctrl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down Expand Up @@ -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:() ->
Expand Down

0 comments on commit 36f89b9

Please sign in to comment.