metadata as var, maxsize todo

This commit is contained in:
Colin Megill
2021-07-23 13:28:17 -07:00
parent f0e9b1ab91
commit 2b29a152b9
3 changed files with 17 additions and 6 deletions
+5 -2
View File
@@ -19,7 +19,10 @@ const Dot = (props) => {
(acc, current) => acc + current
); /* SUM REMAINING ELEMENTS */
/* TODO(colinmegill) #632 colorscale */
/* TODO(colinmegill) #632 scale between correct dimensions */
const _maxSize = rowColumnSize;
const _radius =
(rest / zeros) * 10 > _maxSize ? _maxSize : (rest / zeros) * 10;
return (
<g
@@ -38,7 +41,7 @@ const Dot = (props) => {
</text>
)}
<circle
r={(rest / zeros) * 10 > 20 ? 20 : (rest / zeros) * 10}
r={_radius}
cx="11"
cy="-3.5"
style={{