Skip to content

Relative date on x-axis #1744

Closed
Closed
@Romainpetit

Description

@Romainpetit

Problem
I'm using plotly to display timed data, but here the exact date is of no importance, only the relative time between the values is. I'm wondering if there is any existing setting about this.

For the moment, I get this result with tickmode: 'auto', type: 'date'
image
image

Wish
I'd like to set my first point as the zero, and then have all other times relative to it.
The tick would display the time relatively to this first date :
image
image

Since I'll be displaying various data of different time scales, tickformat is of little help. I'd need an automatic date formatter with customizable format settings.

This is related to this debate on the pertinence of this automatic date format: #99

Any help appreciated!

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