Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Feature/improve smoothline chart #183

Merged

Conversation

AmauryLiet
Copy link
Contributor

Thank you for contributing a pull request.

Please ensure that you have signed the CLA.

  • I have signed the CLA

Submitted on behalf of third-party: kraynel.

@marzolfb
Copy link
Contributor

This looks like a great contribution and I'm reviewing it in more detail now. One thing that I think would be a fantastic addition to this pull request would be showing an example of these new options by either adding a new chart or modifying an existing one in the example app.

@marzolfb
Copy link
Contributor

I think this is a wonderful addition and I'm happy to approve and merge it as-is but I'm going to give you a little time to see if you want to add any modifications to the example app to demonstrate these new option additions. I like that you allow for function inputs in the options you've added. Thanks!

@AmauryLiet
Copy link
Contributor Author

Thanks for the comments!
Adding an example app in the repo seems like a great idea. I'd be happy to do, I may take a few days to add it since I'm lacking time right now, is it ok for you to wait before merging?

@marzolfb
Copy link
Contributor

Yes, I can certainly wait. There's already an example app in the example directory - a new chart can be added easily.

Copy link
Contributor

@Minishlink Minishlink left a comment

Choose a reason for hiding this comment

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

Neat! 👍

let strokeWidth = typeof this.props.options.strokeWidth !== 'undefined'
? this.props.options.strokeWidth
: '1';
let strokeDasharray = typeof this.props.options.strokeDasharray !== 'undefined'
Copy link
Contributor

@Minishlink Minishlink Aug 26, 2017

Choose a reason for hiding this comment

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

Maybe rename the prop as strokeDashArray?

@kraynel
Copy link

kraynel commented Aug 28, 2017

Thank you @AmauryLiet for this PR, I did not take the time to do it myself at the time. I also signed the CLA.

Allow functions as options to specify per graph settings.
@AmauryLiet AmauryLiet force-pushed the feature/improve-smoothline-chart branch from 2bf8b66 to c8220d9 Compare September 7, 2017 13:41
@marzolfb
Copy link
Contributor

@AmauryLiet Just checking back in - have you had a chance to add an example?

@AmauryLiet
Copy link
Contributor Author

AmauryLiet commented Sep 17, 2017

@marzolfb Thanks for the reminder, I'll be pushing the changes monday

@AmauryLiet
Copy link
Contributor Author

Hi @marzolfb, finally added an example to the PR where I expose some possible use of the modifications

@marzolfb
Copy link
Contributor

My sincere apologies for the lengthy delay in reviewing this.

Fantastic work. The example is great. Thank you very much.

I'll merge this in for now but I may wait to release and update to npm so I can pull in the latest versions of dependencies to stay current.

@marzolfb marzolfb merged commit 88b76ce into capitalone:master Sep 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants