new boolean property on linechart to toggle mouseover dots #735
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So, on line charts, this feature:
i.e. the x/y tracking to the axes, and the dot that tracks the line on mouseover is something that is currently not optional. It is always generated. I had a need to build something else for my line charts...namely a tracker that shows up not just if you mouseover on the line but on the whole chart, and also a linear regression slope, and I wanted a larger dot to make it more visible.
Seeing as how my linechart features collided with the built-in features, I wanted to make the built-in features optional, so I added a new property on linechart:
By default, the behavior is still on, so it should affect nothing. This just gives me the ability to disable it to inject my own behavior that doesn't collide with it.
Added documentation for the new public API, as well as a few unit tests.