-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make chart lines/scatters toggleable
Add the ability to toggle visibility of chart elements by clicking the legend. Legend elements now show with hand cursor to indicate interactivity. Clicking will toggle visibility of line/scatter, and legend text will show with dark-grey color and strikethrough when disabled.
- Loading branch information
1 parent
bc81bd4
commit db10f21
Showing
2 changed files
with
89 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.legend { | ||
cursor: pointer; | ||
} | ||
|
||
.legend-inactive { | ||
@extend .legend; | ||
color: #A9A9A9; | ||
text-decoration: line-through; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db10f21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: