Skip to content

improve display of date/time tick labels #108

@swharden

Description

@swharden

Now that the tick module has been refactored, simplified (<200 lines), and is working well, the time has come to add support to display tick labels as date and time. This can probably done in just a few lines of new code by intercepting the function which populates TickCollection.tickLabels:

https://github.com/swharden/ScottPlot/blob/8239f72a94da61aa5c558650ec526ad61732d243/src/ScottPlot/TickCollection.cs#L56-L57

Hopefully we can get this working with as few lines of code as possible, then we can always add complexity later.

A logical next step is to provide smart tick spacing for weeks, days, hours, and minutes (not always multiples of 2 or 5). @Padanian made some excellent progress toward this end, but the code was moved to /dev/code/TickExperimental.cs to be brought out again when date support was added.

Metadata

Metadata

Assignees

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