Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #38: Trend diagram: Correct x-axis decade labels for decades 1900 and before #176

Merged
merged 1 commit into from
Jun 22, 2021

Commits on May 26, 2021

  1. Fix spraakbanken#38: Correct trend diagram labels for decades <=1900

    results.js: view.GraphResults.renderGraph:
    - Render correct x-axis decade labels in the trend diagram for decades
      1900 and before by passing to Rickshaw.Graph.Axis.Time constructor the
      existing fixed time.ceil function with special handling of decades.
      (Previously, labels for decades 1900 and before were shifted back by
      one (1890 instead of 1900 and so on), probably resulting from
      Rickshaw's approximate handling of leap years.)
    - Modify the fixed time.ceil to work for decades 1800 and before.
    janiemi committed May 26, 2021
    Configuration menu
    Copy the full SHA
    c09ce2e View commit details
    Browse the repository at this point in the history