increase bar graph width

- change card info texts
	- add fixed faction digits to 2
	- add map marker css
This commit is contained in:
Pritimay Sarkar
2023-08-01 11:54:48 +05:30
parent 3ab6510bfd
commit 75f65e81b4
6 changed files with 38 additions and 33 deletions

View File

@@ -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")