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

Legend grouping #43

Merged
merged 3 commits into from
Dec 21, 2017
Merged

Legend grouping #43

merged 3 commits into from
Dec 21, 2017

Conversation

guimeira
Copy link
Contributor

I've finally found some time to write the tests I promised on issue #38 😄

I basically did all the tests of the clickable part using the legend grouping and making sure the series are shown and hidden accordingly. I think that should be enough since the clicking behavior is what this new feature changes (and all the other tests are passing, so all the other features apparently are not affected by these changes), but if you think something else should be covered, please let me know and I'll write some more tests.

@tarekis
Copy link
Contributor

tarekis commented Sep 26, 2017

@SpaceK33z is there an issue with this PR on your side or is there a reason this is open? If not, I'd review and merge it.

@SpaceK33z
Copy link
Contributor

@tarekis, nope no issue, looks like a very good PR with examples+tests. Just didn't have the time to properly review.

@tarekis
Copy link
Contributor

tarekis commented Sep 27, 2017

@SpaceK33z sweet, thanks for the heads up.
@guimeira are you still interested in finishing this PR with me reviewing it?

@guimeira
Copy link
Contributor Author

Sure!

@tarekis
Copy link
Contributor

tarekis commented Nov 8, 2017

@guimeira Sorry for the huge delay, I've been seriously sick and wasn't available at all, I'll review it this week! 🙂

@tarekis tarekis self-assigned this Nov 12, 2017
@tarekis tarekis self-requested a review November 27, 2017 11:16
@@ -70,6 +70,20 @@
background-color: #453d3f;
border-color: #453d3f;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add all changes to the demo page to the https://github.com/CodeYellowBV/chartist-plugin-legend/tree/gh-pages branch, i will probably rearrange this in the future, but for now all changes need to be done on this branch.

@@ -57,6 +53,25 @@
}

return function legend(chart) {
function updateChart() {
Copy link
Contributor

Choose a reason for hiding this comment

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

That function doesn't really makes sense, does it? It gets called only once, and has local variables referenced it.

@guimeira
Copy link
Contributor Author

Sorry for the huge delay! I hope you are not sick anymore :)

I removed the updateChart function since it really didn't make much sense (I was probably planning on using it somewhere else but ended up not doing so).

I also created #52 adding the documentation to the gh-pages branch.

Please let me know if there is anything else I should change 😃

@tarekis
Copy link
Contributor

tarekis commented Dec 21, 2017

LGTM! Thanks for the contribution! Will look into deploying on npm later today, gotta wait a bit for that, can't do it from work really.

@tarekis tarekis merged commit 50313d7 into CodeYellowBV:master Dec 21, 2017
@tarekis tarekis removed the waiting label Dec 21, 2017
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