Skip to content

an idea for eliminating datetime gaps of time series #3314

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

Closed
gzadigo opened this issue Dec 9, 2018 · 2 comments
Closed

an idea for eliminating datetime gaps of time series #3314

gzadigo opened this issue Dec 9, 2018 · 2 comments

Comments

@gzadigo
Copy link

gzadigo commented Dec 9, 2018

when I display stock price series on minutes basis, you know, in a day there are many minutes without trading, so we see discontinous price on the chart. I think this could be done like this (in python):

    ts = pd.Series(index=datetime_list, value=stock_price_list)
    params = {
        'title':title,
        'xaxis':dict(title=xaxis, x=range(len(ts)), mark=datetime_list)
        'yaxis':dict(title=yaxis),
    }
    layout = go.Layout(**params)

this is a straigforward way and easy to implement, please consider it. thanks a lot!!!

@gzadigo
Copy link
Author

gzadigo commented Dec 14, 2018

why no one replay on this topic? I hope to know whether I am wrong or not?

@etpinard
Copy link
Contributor

etpinard commented Dec 14, 2018

Your solution looks a lot like the existing tickvals and ticktext:

https://plot.ly/javascript/axes/#enumerated-ticks-with-tickvals-and-ticktext


We already have #1382 for discussing this topic, so I'll close this ticket. Thanks for writing in!

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