diff --git a/common/lib/xmodule/xmodule/gst_module.py b/common/lib/xmodule/xmodule/gst_module.py
index 633f5e9406..c07c0670d7 100644
--- a/common/lib/xmodule/xmodule/gst_module.py
+++ b/common/lib/xmodule/xmodule/gst_module.py
@@ -129,8 +129,7 @@ class GraphicalSliderToolModule(XModule):
"""
#substitute plot
plot_div = '
\
- This is plot
'
+ style="width: 600px; height: 600px; padding: 0px; position: relative;">This is plot'
html_string = html_string.replace('$plot$', plot_div)
# substitute sliders
@@ -140,7 +139,7 @@ class GraphicalSliderToolModule(XModule):
vars = [x['@var'] for x in sliders]
slider_div = 'This is slider
'
+ data-var="{var}">'
for var in vars:
html_string = re.sub(r'\$slider\s+' + var + r'\$',
diff --git a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
index 762789cbf5..991cb0a26e 100644
--- a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
+++ b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
@@ -28,6 +28,8 @@ define('Graph', [], function () {
return;
function createFunctions() {
+ var c1;
+
functions = [];
if (typeof config.plot['function'] === 'undefined') {
@@ -39,7 +41,11 @@ define('Graph', [], function () {
} else if ($.isPlainObject(config.plot['function']) === true) {
} else if ($.isArray(config.plot['function'])) {
-
+ for (c1 = 0; c1 < config.plot['function'].length; c1++) {
+ if (typeof config.plot['function'][c1] === 'string') {
+ addFunction(config.plot['function'][c1]);
+ }
+ }
}
return;
diff --git a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js
index e871e9f035..226f53d696 100644
--- a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js
+++ b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js
@@ -112,6 +112,7 @@ define('Sliders', [], function () {
'min': valueMin,
'max': valueMax,
'value': constValue,
+ 'step': 0.01,
'change': sliderOnChange
});