Skip to content

Exact dates contained in the data not being displayed  #167

Open
@chrislkeller

Description

@chrislkeller

Have to say this refactor is a dream. Nice work all around.

I'm working to get our version at KPCC updated and in some test data I'm not getting the years to display verbatim. By default dates are rendered every five years. I did add a four year frequency to the dateFrequencies object, but that ignores the minDate (1962) and the maxDate (2014).

Any hints on where I can begin to address and configure to only 1962, 1966, 1970, etc are displayed?

Data is:

year,Midterm Primary Turnout,Midterm General Turnout
2014,17.08%,25.25%
2010,23.45%,53.77%
2006,27.44%,52.14%
2002,25.85%,45.03%
1998,38.44%,53.41%
1994,31.78%,58.59%
1990,37.71%,55.23%
1986,38.61%,59.99%
1982,52.96%,69.72%
1978,74.09%,68.68%
1974,51.70%,62.60%
1970,61.32%,75.50%
1966,64.14%,79.55%
1962,60.86%,78.14%

Using Auto date frequency
image

Attempt at 4-year date frequency
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions