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

Strange behavior in RN 0.26 #36

Open
tuananhdn opened this issue Jun 10, 2016 · 5 comments
Open

Strange behavior in RN 0.26 #36

tuananhdn opened this issue Jun 10, 2016 · 5 comments

Comments

@tuananhdn
Copy link

tuananhdn commented Jun 10, 2016

I update the new version of charts and after that the result is:
screenshot 2016-06-10 10 42 30
I cannot change background color of chart and seem other config is not working too. My code for chart is
<LineChart config={{ dataSets: dataSet, labels: label, backgroundColor: 'white', minOffset: 20, scaleYEnabled: false, legend: { textSize: 12 }, xAxis: { axisLineWidth: 0, drawLabels: false, position: 'bottom', drawGridLines: false }, leftAxis: { customAxisMax: 1, customAxisMin: -1, labelCount: 11, startAtZero: false }, rightAxis: { enabled: false, drawGridLines: false }, valueFormatter: { minimumSignificantDigits: 1, type: 'regular', maximumDecimalPlaces: 1 } }} style={styles.chart} />

and when i click to chart it show duplicate line like that:

screenshot 2016-06-10 10 42 46
:( Any ideas about this issue.

@Jpadilla1
Copy link
Owner

Jpadilla1 commented Jun 10, 2016

Hello! To fix the background you would have to set the background color as part of your styles instead.

const styles = StyleSheet.create({
  chart: {
    backgroundColor: 'white'
  }
});

I'll take a look at the data duplication issue

@Jpadilla1
Copy link
Owner

I can't seem to reproduce the duplication issue on my end in the ChartsExplorer.

@tuananhdn
Copy link
Author

hmm, i will try to reinstall lib, may be some thing wrong when i install it. Thanks guy 👍

@Jpadilla1
Copy link
Owner

Hey, did it work for you or do you still have the issue?

@tuananhdn
Copy link
Author

i still got that issue :(, i try reinstall many times but it still
not work.

On Wed, Jun 29, 2016 at 10:42 AM, Jose Padilla [email protected]
wrote:

Hey, did it work for you or do you still have the issue?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#36 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABjnY7fQy0OKwYWa_JJ31KmnznGo9mSfks5qQem-gaJpZM4IymrD
.

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

No branches or pull requests

2 participants