Skip to content

Commit

Permalink
quarterly interval in cohort getredash#4269
Browse files Browse the repository at this point in the history
  • Loading branch information
zjsun committed Jan 5, 2021
1 parent dcdff66 commit 7ab0a90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions viz-lib/src/visualizations/cohort/Cornelius.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ const momentInterval = {
weekly: "weeks",
monthly: "months",
yearly: "years",
quarterly: "quarters",
};

const timeLabelFormats = {
daily: "MMMM D, YYYY",
weekly: "[Week of] MMM D, YYYY",
monthly: "MMMM YYYY",
yearly: "YYYY",
quarterly: "[Q]Q, YYYY",
};

const defaultOptions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const CohortTimeIntervals = {
daily: "Daily",
weekly: "Weekly",
monthly: "Monthly",
quarterly: "Quarterly",
};

const CohortModes = {
Expand Down
3 changes: 2 additions & 1 deletion viz-lib/src/visualizations/cohort/prepareData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import _ from "lodash";
import moment from "moment";

const momentInterval = {
weekly: "weeks",
daily: "days",
weekly: "weeks",
monthly: "months",
quarterly: "quarters",
};

function groupData(sortedData: any) {
Expand Down

0 comments on commit 7ab0a90

Please sign in to comment.