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

Changing default gray background to transparent #185

Closed
tokict opened this issue Sep 1, 2017 · 2 comments
Closed

Changing default gray background to transparent #185

tokict opened this issue Sep 1, 2017 · 2 comments

Comments

@tokict
Copy link

tokict commented Sep 1, 2017

I dont see any way of changing the background of the chart to transparent. Is this possible?

@shrupa
Copy link

shrupa commented Sep 13, 2017

You should be able to render the chart inside a view with style element.
<View style={styles.container}> <SmoothLine data={data} options={options} xKey='x' yKey='y' /> </View>
And style definition-
const styles = StyleSheet.create({ container: { flex: 0, justifyContent: 'center', alignItems: 'center', backgroundColor: 'transparent', }, });

@tokict
Copy link
Author

tokict commented Sep 14, 2017

Oh, so it takes it from the parent and if there is no background on the parent it will default to gray. I was somehow expecting it to inherit from main container. Thanks for the tip mate!

@tokict tokict closed this as completed Sep 14, 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

No branches or pull requests

2 participants