Browse Source

Fix tooltip when x is 0

pull/80/head
Masayuki Tanaka 11 years ago
parent
commit
2773c4ae7d
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -150,8 +150,8 @@
if (! (d[i] && (d[i].value || d[i].value === 0))) { continue; }
if (! text) {
title = titleFormat ? titleFormat(d[i].x) : d[i].x;
text = "<table class='-tooltip'>" + (title ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
title = titleFormat ? titleFormat(d[i].x) : d[i].x + "";
text = "<table class='-tooltip'>" + (title ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
}
name = d[i].name;

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save