Skip to content

New feature/bar chart#16

Merged
gabeabrams merged 13 commits intomasterfrom
new-feature/BarChart
Aug 4, 2020
Merged

New feature/bar chart#16
gabeabrams merged 13 commits intomasterfrom
new-feature/BarChart

Conversation

@apandey00
Copy link
Contributor

Implemented shared barchart component and refactored the attempts widget to use it.

  • Need to figure out how to change the color of just a single bar (right now colorMap changes all bars with the same bar label to the specified color so i cant specifically target just the1st bar to be gray)

@gracewhitney gracewhitney added the new-feature A new feature label Aug 3, 2020
Copy link

@gracewhitney gracewhitney left a comment

Choose a reason for hiding this comment

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

Mostly looks good, I had a few comments about code similarity between the horizontal and vertical cases as well as a handful of other very minor issues/questions.

@apandey00 apandey00 requested a review from gabeabrams August 4, 2020 12:36
Copy link
Contributor

@gabeabrams gabeabrams 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 crazy brilliant work. I agree with most of Grace's comments, but in general, this is very complicated work. Great job!

// if tickXOffset defined, set legend offset to be
// tickXOffset + tickSize + tickPadding + 15 extra px,
// Default to 60 otherwise
legendOffset: (tickXOffset ? tickXOffset + 5 + 5 + 15 : 60),
Copy link
Contributor

Choose a reason for hiding this comment

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

Plan: fix in parallel with widget creation.

Discuss later: where will the constants go? How will we structure/modularize constants and math?

@gabeabrams gabeabrams merged commit 15f7de3 into master Aug 4, 2020
@gabeabrams gabeabrams deleted the new-feature/BarChart branch August 4, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants