Browse Source

Fix tooltip when x is 0

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

2
c3.js

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

2
c3.min.js vendored

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