-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please make line chart drawDots optional #689
Comments
Davis filed a new PR: #735. Will merge for 2.0 |
I was working with this a bit @gordonwoodhull. I think that PR doesn't satisfy all the cases as the Brush for line charts is drawn on the DOM after the chart body and therefore intercepts the pointer events on the dots. |
Right, #735 only controls whether the dots will show when the brush is off. You are looking for the ability to turn the dots on when the brush is also on? |
Yeah, I locally changed some of the CSS to turn off pointer events on the lines/areas that get generated, but the brush is still on top of the dots. The weirder part is that a composite chart, generates the child |
No doubt, that's a more difficult problem, which is likely why the design has been either/or up until now. |
It might also be confusing to have little dots interfering with the brush action? I'm not sure. |
The brush remains in drag mode when you hover on the dots, so it's not terri-bad. I don't think there's a right answer here, so I'm not going to create a PR. In the mean time, I can work around it in this case with a |
How did you turn the dots on, though? I thought #735 only provided a way to turn them off when the brush is off. |
Ha, ok, good question. Still using composite chart here... the child charts all have brushes, so in the composite chart's
|
Wow. The leaky abstraction that is dc.js. |
You saw nothing! Carry on... 😄 |
If you turn the brush off on a line chart, it will create an extra group with dots and when you mouseover the dot it will show itself and show x/y lines back to the axes.
I want to do something similar, but not quite the same, and now I must either fork and turn this off, or else, remove it post render.
I think this behavior would be better served if it were configurable -- just like
brushOn( )
, adddotsOn( )
function to opt-in to this behavior.The text was updated successfully, but these errors were encountered: