diff --git a/beat/web/experiments/static/experiments/js/utils.js b/beat/web/experiments/static/experiments/js/utils.js index 017bb0b48ece0da2a0606359f08e08eb155c579c..5f9bef84624325b9248078af735476487f187df0 100644 --- a/beat/web/experiments/static/experiments/js/utils.js +++ b/beat/web/experiments/static/experiments/js/utils.js @@ -74,10 +74,16 @@ beat.experiments.utils.displayPlot = function(prefix, container, value, availabl //sample data plot or real plot required? var default_post_prefix = '/plotters/plot/'; var sampledata_post_prefix = '/plotters/plot_sample/'; + var sampledatawithparams_post_prefix = '/plotters/plot_sample_with_params/'; var post_prefix = default_post_prefix; if('sample_data' in data) + { post_prefix = sampledata_post_prefix; + if('dynamic_params' in data) + post_prefix = sampledatawithparams_post_prefix; + } + data.content_type = 'image/png'; data.base64 = true;