Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue labels in graph.

yticks for flot need to be sorted first.
Firefox has issues with unsorted yticks.
  • Loading branch information...
commit e011690c90aed73c7647c26af75178417a460f4c 1 parent a0a1fb1
@rvanlaar rvanlaar authored
View
7 lizard_blockbox/static/lizard_blockbox/blockbox.coffee
@@ -466,6 +466,7 @@ setMeasureGraph = (control_data, cities_data) ->
for measure in control_data
label_mapping[measure.type_index] = measure.type_indicator
yticks = ([key, value] for key, value of label_mapping)
+ yticks = _.sortBy yticks, (u) -> u[0]
selected_river = $("#blockbox-river .chzn-select")[0].value
d4 = undefined
@@ -546,12 +547,6 @@ setMeasureGraph = (control_data, cities_data) ->
]
pl_control = $.plot($("#measure_graph"), measures_controls, options)
-
- # (city[0], city[1], city[2]) for city in pl_control.getData()[0].data
- # showLabel(city[0], city[1], city[2]) for city in pl_control.getData()[0].data
-
- # showLabel(city[0], city[1], city[2]) for city in pl_control.getData()[0].data
-
$("#measure_graph").bind "plotclick", (event, pos, item) ->
if item
if item.series.label is "Steden"
View
3  lizard_blockbox/static/lizard_blockbox/blockbox.js
@@ -569,6 +569,9 @@
}
return _results;
})();
+ yticks = _.sortBy(yticks, function(u) {
+ return u[0];
+ });
selected_river = $("#blockbox-river .chzn-select")[0].value;
d4 = void 0;
d5 = void 0;
Please sign in to comment.
Something went wrong with that request. Please try again.