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

past data not showing #71

Closed
rashearth opened this issue Mar 30, 2019 · 6 comments
Closed

past data not showing #71

rashearth opened this issue Mar 30, 2019 · 6 comments
Assignees
Labels

Comments

@rashearth
Copy link

Hi, thank you for your great support one again.
now, i have a question for inserting past time information on this streaming plugin.

This plugin could insert the future information, but not for the past?

Whenever i insert any past time data in the dataset, the array data disappears, and wont work out properly.
Is it impossible to insert past time data?
I want to make some realtime stock chart, and including past data is necessary.
Please kindly confirm.

@nagix
Copy link
Owner

nagix commented Mar 30, 2019

The ttl option can be used to specify how long the data is retained. By setting it to a large number, you can prevent the past time data from being deleted. Then, you can show them by modifying the duration and/or delay options.

@nagix nagix self-assigned this Mar 30, 2019
@nagix nagix added the question label Mar 30, 2019
@rashearth
Copy link
Author

Thanks for the prompt reply.
Actualy its not about how long it would retain.
I wanted to confirm if i could plot past time data.
But when i try it, i confirmed thst i could only plot future time, not for the past time.

Is there any way icould plot past data?

@nagix
Copy link
Owner

nagix commented Mar 30, 2019

If you don't set ttl, the data points off the chart will be deleted immediately. So, ttl must be set if you want to keep the past time data.

@rashearth
Copy link
Author

hi, thanks for your advise.
I have set the ttl to various numbers (including 10000000)
but the array all gets deleted when the plotting starts, and no plotting will happen for the past data.
the array will be looked like this( i think its deleted).
I have plotted down 30 past datas by using push function. ( i have done this by uing chart.update, or onrefresh function)

スクリーンショット 2019-03-31 18 02 01

@nagix
Copy link
Owner

nagix commented Mar 31, 2019

The unit of ttl is milliseconds, so 10000000 ms is equals to about 2 hours and 47 minutes. How old was the data you inserted?

@rashearth
Copy link
Author

thanks! there was some mistake for the ttl number ,
it worked fine! thank you!

@nagix nagix closed this as completed May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants