increase bar graph width
- change card info texts - add fixed faction digits to 2 - add map marker css
This commit is contained in:
@@ -71,7 +71,7 @@ class TestAnalyticsPie extends Component {
|
||||
.attr("d", path)
|
||||
.attr("fill", function (d) { return color(d.data.category); })
|
||||
.on('mouseover', (event, d) => {
|
||||
tooltip.text(`${d.data.category}: ${d.data.count}, ${100 * d.data.count / data.reduce((a, c) => a + c.count, 0)}%`);
|
||||
tooltip.text(`${d.data.category}: ${d.data.count}, ${Math.floor(100 * d.data.count / data.reduce((a, c) => a + c.count, 0)).toFixed(2)}%`);
|
||||
return tooltip
|
||||
.style("visibility", "visible")
|
||||
.style("font-size", "0.65em")
|
||||
|
||||
Reference in New Issue
Block a user