-
Notifications
You must be signed in to change notification settings - Fork 3
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
Scatter plot #5
Scatter plot #5
Conversation
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.
This is looking great! Couple minor things and then we also need to handle resizing
src/ScatterPlot.vue
Outdated
<div | ||
:style="calculateDotPosition(item)" | ||
class="scatter-plot__dot" | ||
:class="item.class?.toLowerCase()" |
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.
toLowerCase()
is unnecessary and unexpected IMO. Let's just bind whatever is passed in. Plus side that means we won't have a ?
in the template.
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.
I have a comment on this below but it might make more sense to provide a slot instead, which can be classed accordingly, instead of requiring markup/styling info to be passed with data
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.
Agreed. If we do that though I'd want to make a way so if you use the slot you can "inherit" to dot from the chart. That way if all you want to do is add a class you can do so without recreating the dot
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.
Some initial comments @marichka-offen
No description provided.