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

Scatter plot #5

Merged
merged 30 commits into from
Apr 12, 2022
Merged

Scatter plot #5

merged 30 commits into from
Apr 12, 2022

Conversation

marichka-offen
Copy link
Contributor

No description provided.

@marichka-offen marichka-offen marked this pull request as ready for review April 12, 2022 13:34
Copy link
Contributor

@pleek91 pleek91 left a 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

<div
:style="calculateDotPosition(item)"
class="scatter-plot__dot"
:class="item.class?.toLowerCase()"
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor

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

src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
Copy link
Contributor

@znicholasbrown znicholasbrown left a 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

package.json Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/ScatterPlot.vue Outdated Show resolved Hide resolved
src/types.ts Outdated Show resolved Hide resolved
@pleek91 pleek91 merged commit 27cbf6b into main Apr 12, 2022
@pleek91 pleek91 deleted the scatter-plot branch April 19, 2022 21:16
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.

3 participants