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

Limit of weekday labels #165

Open
nikfedotoff opened this issue Oct 7, 2021 · 1 comment
Open

Limit of weekday labels #165

nikfedotoff opened this issue Oct 7, 2021 · 1 comment

Comments

@nikfedotoff
Copy link

nikfedotoff commented Oct 7, 2021

Is it possible to display all 7 weekday labels?

@aditodkar
Copy link

I am facing same problem:

<CalendarHeatmap
        startDate={shiftDate(today, -30)}
        endDate={today}
        values={randomValues}
        classForValue={(value) => {
          if (!value) {
            return "color-empty";
          }
          return `color-github-${value.count}`;
        }}
        tooltipDataAttrs={(value) => {
          return {
            "data-tip": `${value.date.toISOString().slice(0, 10)} has count: ${
              value.count
            }`
          };
        }}
        weekdayLabels={[
          "Sunday",
          "Monday",
          "Tuesday",
          "wed",
          "Thursday",
          "Friday",
          "Sat"
        ]}
        onClick={(value) =>
          alert(`Clicked on value with count: ${value.count}`)
        }
      />

Even after passing weekdayLabels prop it does not render all the 7 weekday labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants