Commit 5b2c0b52 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix tooltip on pie and donut

parent 8f251ff9
...@@ -150,8 +150,8 @@ ...@@ -150,8 +150,8 @@
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 || title === 0 ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
} }
name = d[i].name; 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