Skip to content

Commit

Permalink
Merge pull request hacklcx#90 from q1angch0u/master
Browse files Browse the repository at this point in the history
Update display of undefined
  • Loading branch information
sanjinhub authored May 14, 2020
2 parents dbc3d84 + 193a511 commit 54b9cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/data/js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ function main7_data() {
formatter: function (params, ticket, callback) {
var res = "";
var name = params.name;
var value = params.value[params.seriesIndex + 1];
var value = typeof(params.value[params.seriesIndex + 1]) == "undefined" ? 0 : params.value[params.seriesIndex + 1];
res =
"<span style='color:#fff;'>" +
name +
Expand Down Expand Up @@ -886,4 +886,4 @@ function formatDate(d) {
return datex
}

setInterval(getTime, 1000);
setInterval(getTime, 1000);

0 comments on commit 54b9cda

Please sign in to comment.