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

Allow per-bubble overrides for fillOpacity #89 #90

Merged
merged 2 commits into from
Jun 2, 2014

Conversation

rimig
Copy link

@rimig rimig commented May 22, 2014

No description provided.

return datum.borderColor || options.borderColor;
})
.style('stroke-width', function ( datum ) {
return datum.borderWidth || options.borderWidth;
Copy link
Owner

Choose a reason for hiding this comment

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

The only issue with these 2 are if datum.borderColor or datum.borderWidth are set to 0, this will return the options version of it, which isn't right.

It should be expanded to see if it's defined first (like typeof datum.borderWidth !== 'undefined' ? datum.borderWidth : options.borderWidth or something)

@rimig
Copy link
Author

rimig commented Jun 2, 2014

Yep, good catch, this patch should take care of that. Thanks.

markmarkoh added a commit that referenced this pull request Jun 2, 2014
Allow per-bubble overrides for fillOpacity #89
@markmarkoh markmarkoh merged commit 37b5b43 into markmarkoh:master Jun 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants