TimeTicks is suitable for axes representing time values.
| 629 | |
| 630 | // TimeTicks is suitable for axes representing time values. |
| 631 | type TimeTicks struct { |
| 632 | // Ticker is used to generate a set of ticks. |
| 633 | // If nil, DefaultTicks will be used. |
| 634 | Ticker Ticker |
| 635 | |
| 636 | // Format is the textual representation of the time value. |
| 637 | // If empty, time.RFC3339 will be used |
| 638 | Format string |
| 639 | |
| 640 | // Time takes a float64 value and converts it into a time.Time. |
| 641 | // If nil, UTCUnixTime is used. |
| 642 | Time func(t float64) time.Time |
| 643 | } |
| 644 | |
| 645 | var _ Ticker = TimeTicks{} |
| 646 |
nothing calls this directly
no outgoing calls
no test coverage detected