Skip to content

an idea for eliminating datetime gaps of time series #3314

Closed
@gzadigo

Description

@gzadigo

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions