Papouche Guinslyzinho
Papouche Guinslyzinho

Reputation: 5448

how can I add the count value in a cal-heatmap

I want to display the 'count' value instead of the date in a calendar

e.g this represents a heatmap of the month of July but instead of the day (1-31) I want to output the number of occurences (count of items)

code playground enter image description here

I am using the package cal-heatmap. I added this property:

subDomainTitleFormat: {
                         filled: 'count'
                     },

but it doesn't change the value displayed in the month

Upvotes: 1

Views: 178

Answers (1)

user1609429
user1609429

Reputation: 84

You have to use it as filled: '{count}' and it will work. 'count' refers to a simple string and not a variable . Check out this edited code

Upvotes: 0

Related Questions