Skip to content

[Feature]: Set range in x axis explicitly depending on the selected range #49

@martialblog

Description

@martialblog

Describe the feature request

Depending on the backend, the x range minimum value is sometimes set depending on the selected range (e.g. Graphite) others don't do that.

Would be nice if we could set this explicitly.

This needs probably needs the range method on the scale.

scales: {
 x: {
     time: true,
     range: (u, min, max) => {
         // min needs to be the calculated via the duration
         let range = [min, max];
     },
 },
},

ref https://github.com/leeoniya/uPlot/issues/993

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions