Ok, so I have made a piechart with angular and svg. It looks ok, but it is not really responding that well to hover events.
<path (click)="pieClick(cat)" class="slice" [attr.fill]="getColor(i)" [attr.d]="getArc()"></path>
That is the path that draws a pie slice. it should be noted here that the colors must be fetched from a backend server, so I cannot simply hardcode this into the css.
The css that I have right now looks like this
.slice {
cursor: pointer;
}
.slice:hover {
fill: #333;
}
And it works, but preferably I would like to just lighten the color on hover instead of setting it to #333.
Can this be done with pure CSS or do I need to somehow map that property to angular code?