Open gibbopotam opened 5 years ago
@gibbopotam Not sure if this is the cause but be careful with %Y-%W
has it may be invalid.
I don't know the notation using d3
but for exemple with moment
we are talking about Week year and it has a different notation.
gggg
for week yearGGGG
for ISO week yearWhich is different than YYYY
and it may yield different result.
@panthony Yeah, it looks like the use of %W isn't documented though present in d3 (where both %w and %W are present but c3 rejects %w altogether). Still nice to have, and it works almost fine save those singular years.
Expected behavior:
The same chart but the year is changed to 2018:
As one can see the data points moved one week earlier on the chart. There're other "singular" years when this happens: 2007, 2024, 2029, 2035, ...
This is also seen on an older version of C3: 0.4.14
The code used (for convenience):