Skip to content

Commit

Permalink
fix: fixed periodusage mouseout error (reset color) (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 24, 2023
1 parent bd4ac3d commit 47a4687
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/visualizations/periodusage.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ function update(svg_elem, usage_arr, onPeriodClicked) {
.on('mouseover', () => {
rect.style('fill', diagramcolor_focused);
})
.on('mouseout', (d, j, n) => {
const a = n[j];
rect.style('fill', a.getAttribute('color'));
.on('mouseout', e => {
rect.style('fill', e.target.attributes.color.value);
})
.on('click', function () {
onPeriodClicked(date);
Expand Down

1 comment on commit 47a4687

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.1 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.1 (click to expand)

Please sign in to comment.