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

Fix tooltip when x is 0

parent b7e0f52d
......@@ -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;
......
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