.partition .chart { display: block; margin: auto; font-size: 11px; } .partition rect { stroke: #eee; fill: #aaa; fill-opacity: .8; transition: fill-opacity 180ms linear; cursor: pointer; } .partition rect:hover { fill-opacity: 1; } .partition g text { font-weight: bold; pointer-events: none; fill: rgba(0, 0, 0, 0.8); } .partition g:hover text { fill: rgba(0, 0, 0, 1); }