Skip to content

Added background opacity props#163

Merged
Hermanya merged 2 commits into
chart-kit:masterfrom
cleybertandre:master
Sep 22, 2019
Merged

Added background opacity props#163
Hermanya merged 2 commits into
chart-kit:masterfrom
cleybertandre:master

Conversation

@cleybertandre

@cleybertandre cleybertandre commented Sep 20, 2019

Copy link
Copy Markdown
Contributor

As requested on PR #137 and based on a personal need to have a transparent chart background, just added two options on chartConfig: backgroundGradientFromOpacity and backgroundGradientToOpacity, which controls the opacity of the start and the end gradient colors, respectively.

This way we can get a completely transparent chart background this way:
<LineChart chartConfig={{ ..., backgroundGradientFromOpacity: 0, backgroundGradientToOpacity: 0 }} />

@Hermanya Hermanya self-requested a review September 20, 2019 18:33
@Hermanya Hermanya merged commit e440d33 into chart-kit:master Sep 22, 2019
@Hermanya

Copy link
Copy Markdown
Contributor

Great job 👍
Thank you, this is now available in v3.4.0

@cleybertandre

Copy link
Copy Markdown
Contributor Author

Glad to help some way :)

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.

2 participants