Skip to content

Commit

Permalink
improved tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
pshivale committed Aug 19, 2015
1 parent 234137c commit 3fb7295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/donut_chart_multilevel.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ <h2><a href="../index.html">psd3</a> - Multi-level Donut Chart</h2>
value: "noOfColleges",
inner: "drilldown",
tooltip: function(d) {
return "<p>There are " + d.noOfColleges + " medical colleges in " + d.place + ".</p>";
return "<div style='background-color: #4a4; color: white; padding: 15px; text-align: middle; border: dotted 1px black;'><strong>" + d.place + "</strong> has " + d.noOfColleges + " medical colleges.</div>";
},
transition: "linear",
transitionDuration: 500,
Expand Down

0 comments on commit 3fb7295

Please sign in to comment.