-
Notifications
You must be signed in to change notification settings - Fork 956
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
Updating data #10
Comments
can you share a plunker with the xAxis problem. a few things you can check for assuming you are using
a working example is available in http://plnkr.co/edit/gist:1eac0cb78f27b31415ac?p=preview about the data updating every second, it used to work before in |
chart not updating when data is updated is a bug. It think was never fully working in However I question why you need to update at regular intervals, do you plan to show intra day data which is updated every second? While the fix I am yet to make will make the chart change, the zoom out will have a problem I presume. When you zoom out beyond a certain point, it does not make sense to display so many periods, so the stockscale automatically switches from If all you need is just a chart which updates a rolling period, this fix should make that work. |
I need to update, lets say, every second. It involves changing values inside of a period as well as adding new bars. Here is plunkr: So current problems involve:
I would also love to see an instruction how to add custom components! |
With every update of the chart mouse position also breaks and I cannot see side indicators, date, OHLC, and hairlines. |
I see what you are trying, you expect the state of the chart except the data to be retained. Some of these are new feature requests but the xAxis breaking is because of a mistake in your code you do as for the rest
|
I've updated plunkr, but zoom still breaks on update. |
I am not following zoom breaks on update, do you mean when the update happens every second, the chart fits the entire width? |
question about how you feel about having a separate api to push data <ChartCanvas ref="chart" ...>
...
...
</ChartCanvas> this.refs.chart.pushData( [ {...}, {...}, {...} ] ); This will help with shifting the chart by the length of the array added, else I am having a tough time finding out that it is only the Any ideas or preference you have? |
About zoom. Try constantly pan to the right. After several times of panning I ended up without zoom. Well, push data may work, but what if I want to change existing bar? And pushing data doesn't seem react way of doing this. |
good feedback. still not published to npm or released a new version, let me know how this is http://rrag.github.io/react-stockcharts/documentation.html#/updating_data There are still some issues when new ticks appear after zoom out, but few of the problems you have mentioned are addressed. |
Decided to use the above option of Highstock also have a similar function for this purpose See the example in action. |
published 0.2.1 with some of the fixes. except for retina support, which is a separate issue from updating data. Please open a new issue if you find problems with this build |
Awesome! Thanks for your work! 👍 |
added documentation on creating custom Series components and custom indicators http://rrag.github.io/react-stockcharts/documentation.html#/custom_create_indicator Appreceate feedback |
fix: opening text modal
fix: chart candles
Is it possible to use component with new data? Let's say I want to update graph every second. If yes, then how to update it. Because right now I'm getting a mess with xAxis. Also how to make graph follow updates and always show the new data in the viewport?
The text was updated successfully, but these errors were encountered: