Skip to content

Commit

Permalink
Fix trend diagram with multiple series, fix #358
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Apr 15, 2024
1 parent 1910f56 commit d26fb59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- Correct order of numbers in trend diagram table (first relative, then absolute)
- Update number formatting in statistics table when switching language
- Disable Trend diagram and Map buttons while waiting for statistics search to finish [#346](https://github.com/spraakbanken/korp-frontend/issues/346)
- Error when clicking trend diagram with multiple series [#358](https://github.com/spraakbanken/korp-frontend/issues/358)
- Strip HTML from total hits in annotated KWIC dowload
- Fix dynamic translation for tabs etc
- Modes in "More" menu sorted locale-awarely
Expand Down
2 changes: 1 addition & 1 deletion app/config/statistics_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getCqp(hitValues, ignoreCase) {
}
tokens.push("[" + andExpr.join(" & ") + "]")
}
return `<match> ${tokens.join(" ")} []* </match>`
return `<match> ${tokens.join(" ")} []{0,} </match>`
}

function reduceCqp(type, tokens, ignoreCase) {
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/trend_diagram/trend_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function getTimeCQP(time, zoom, coarseGranularity) {
timecqp = `[(${startsSameDate} & ${timeInside}) | (${startsBefore} & ${endsAfter})]`
}

timecqp = `<match> ${timecqp} []* </match>`
timecqp = `<match> ${timecqp} []{0,} </match>`
return timecqp
}

Expand Down

0 comments on commit d26fb59

Please sign in to comment.