Skip to content

Feature suggestion: Support for timeseries data #52

@archiewood

Description

@archiewood

Firstly, thank you for a wonderful package, love YouPlot

What's the feature?

I often find myself wanting to plot timeseries data. Currently the best solution i've found is converting to unix timestamps, but these are not human readable.

It would be good to be able to plot timeseries data using youplot, where a column of data is provided as a date or datetime.

This would be for:

  • line
  • lines
  • (possibly) scatter
  • (possibly) density

Unicode plot accepts both Date and DateTime types, so this is pretty possible (but may need to work around this bug)

Examples

date
CleanShot 2024-08-12 at 18 09 55

datetime
CleanShot 2024-08-12 at 18 11 22

Potential UX

I'm very open to suggestions here.

A solution that would not cause any breaking changes would be something like

  • uplot lines --xtype date
  • uplot lines --xtype datetime

If you are still considering the API pre-1.0, then an alternative would be to autodetect the type of the x column, and use that to determine what is used

  • uplot lines
  • uplot lines

PR

I would happily open a PR for this feature if you are open to it

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