fslaborg / fslaborg/FSharp.Charting

Grid Interval by years, months, weeks, doesn't work (only work by days)

Open
#66 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
F#
Stars
209
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Grid interval by years doesn't work. The following code

```
Interval = 1.0
IntervalOffsetType = DateTimeIntervalType.Years
```

will actually interval by 1 day.

I read the source code, I found out that the coresponding relationship should be:

```
Interval IntervalType
IntervalOffset InterOffsetType
```

(IntervalOffset means to leave the first grid from zero-offset blank for `offset` spaces.)

So probobaily this problem is caused by :

`IntervalType` _missing_ in `type Grid`.

I found this by check the type LabelStyle, the label `interval IntervalType` works well.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.