Commit 0809fbff authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/scatterPlot.js: changeSplitMethod(), check

parent 5163573d
...@@ -1719,10 +1719,12 @@ ScatterPlot.prototype = { ...@@ -1719,10 +1719,12 @@ ScatterPlot.prototype = {
if (typeof reverse === "undefined") reverse = false; if (typeof reverse === "undefined") reverse = false;
var axis; var axis;
var aa = this.available_axis[splitMethod] var aa = this.available_axis[splitMethod]
if (aa !== undefined) { if (aa == undefined) {
axis = aa.axis; console.log('Undefined axis: ' + splitMethod)
return
} }
axis = aa.axis;
axis.reverse = reverse; axis.reverse = reverse;
axis.init(this.m.clones, aa.fct, aa.labels, aa.sort, aa.min, aa.max, aa.log, aa.display_label); axis.init(this.m.clones, aa.fct, aa.labels, aa.sort, aa.min, aa.max, aa.log, aa.display_label);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment