Comments (6)
It's not possible at released version.
I'll be update this feature as soon as possible.
Thank you
from react-native-pure-chart.
@fkhosrow Hi buddy, I'm trying to build a line chart with real time data. And I saw your comments at other place which directs me here. Would you mind sharing your solutions or ideas? Much appreciated.
from react-native-pure-chart.
Hi @Yaweii and @alexandraclaire, I got the chart working "real time". The chart caches the first n input points initially to compute the min/max for scaling. For subsequent calls, the first point is removed and the next new point is added to the existing points (as if the chart is shifting). You can see the source code at fkhosrow/react-native-pure-chart. Note that this code does no animation, there is no concept of series, takes one point data at a time (point has Y and Id values), it does not draw values or points.
from react-native-pure-chart.
@fkhosrow
It would be nice to me when you share your customized code! It could be a good reference for performance refactoring.
from react-native-pure-chart.
Did anyone manage to make the chart update as new data comes through? I can't seem to get it working!
from react-native-pure-chart.
I know it's 2 years later, but maybe I can help those who are trying to solve it right now. Although it is not real-time you can reload/update the line chart with "conditional rendering". This is the solution I used to my problem:
{ !hasSelectedDate ? <Text>Select end date</Text> : <PureChart data={data} type='line' /> }
So I guess you can just change a variable from true to false and then again to true, to force the LineChart component to re-render with the new data. Probably not a good solution, but it worked for me.
from react-native-pure-chart.
Related Issues (20)
- No way to turn off the animation HOT 4
- LineChart (Multi Series) - Not showing info of single line series data. HOT 2
- Bar chart width doesn't change issue with react native 0.61.5 HOT 1
- LineChart (Multi-Series) - Unable to show X axis and Y axis Unit label
- Replace componentWillReceiveProps HOT 8
- Horizontal bar chart
- is it possible to add custom array of X axis values, its taking from series array in line chart?
- lines are not correct on RTL layout
- Undefined values other than 0
- Barcharts display x-axis all labels HOT 1
- Bar chart: How to show y values on top of the every bar HOT 1
- Selected box in Line chart does not work properly
- It changes wrong when it's Rtl
- package.json (5:5) Failed to resolve dependency 'react-native-pure-chart@*' (Network request failed) HOT 1
- Maintenance Status HOT 2
- Warning: componentWillReceiveProps has been renamed
- Hidden tooltip
- background color
- about the tooltip
- any idea about bar graph lable?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-pure-chart.