Skip to content

Commit

Permalink
Restoring error bubbling
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 17, 2015
1 parent d6b6433 commit 4e3d284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panoramix/static/widgets/viz_bignumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ px.registerWidget('big_number', function(data_attribute) {

function render(done) {
d3.json(json_callback, function(error, payload){
json = payload.data;
div.html("");
//Define the percentage bounds that define color from red to green
div.html("");
if (error != null){
var err = '<div class="alert alert-danger">' + error.responseText + '</div>';
div.html(err);
done(payload);
return '';
}
json = payload.data;
var color_range = [-1, 1];
var compare_pos = -23
var target_url = 'd3js.org';
Expand Down

0 comments on commit 4e3d284

Please sign in to comment.