Skip to content
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

xyTipsOn for LineChart #1724

Open
kum-deepak opened this issue Jul 21, 2020 · 2 comments
Open

xyTipsOn for LineChart #1724

kum-deepak opened this issue Jul 21, 2020 · 2 comments
Labels
Milestone

Comments

@kum-deepak
Copy link
Collaborator

kum-deepak commented Jul 21, 2020

The document (http://dc-js.github.io/dc.js/docs/html/LineChart.html#xyTipsOn__anchor) suggests that xyTipsOn has no effect if brush in on. The document also suggests that it is boolean.

However, the code supports a special value 'always'

if (this.xyTipsOn() === 'always' || (!(this.brushOn() || this.parentBrushOn()) && this.xyTipsOn())) {

@gordonwoodhull is it worth supporting that special value?

@kum-deepak kum-deepak added this to the dc-v5 milestone Jul 21, 2020
@gordonwoodhull
Copy link
Contributor

Yes, it is. As with almost every feature, it is there because people use it.

I agree this is hacky interface for the feature, and if I were to do it again, I probably wouldn't do it this way.

The discussion is in #1152

@kum-deepak
Copy link
Collaborator Author

What is the way you would have done if doing afresh:

  • three strings - 'always', 'never', 'default' (or, 'smart')
  • Typescript Enum (which gets exposed as a class)
  • Any other

We can decide and then implement it in other similar situations as well. We will maintain backward compatibility in compat layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants