Commit 2773c4ae authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix tooltip when x is 0

parent b7e0f52d
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
if (! (d[i] && (d[i].value || d[i].value === 0))) { continue; } if (! (d[i] && (d[i].value || d[i].value === 0))) { continue; }
if (! text) { 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>" : ""); text = "<table class='-tooltip'>" + (title ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment