Restoring error bubbling

This commit is contained in:
Maxime Beauchemin 2015-12-17 13:49:36 -08:00
parent d6b6433d52
commit 4e3d284785
1 changed files with 2 additions and 2 deletions

View File

@ -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';