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

Object with YYYY-MM-DD Keys Doesn't work #14

Open
JamoCA opened this issue Oct 22, 2021 · 1 comment
Open

Object with YYYY-MM-DD Keys Doesn't work #14

JamoCA opened this issue Oct 22, 2021 · 1 comment
Assignees

Comments

@JamoCA
Copy link

JamoCA commented Oct 22, 2021

I've tried using an object with v.1.3.1 and it doesn't render anything when passed as data to the CalendarHeatmap function.

// Provide dates as an object.
// The key is the date, the value is event count. Make sure the date has this format: `YYYY-MM-DD`
var data = { "2017-09-23": 2, ...}

In order to render a graph, the only thing that works is to use an array of objects.

// Provide dates as an array of objects.
// Provide the keys `count` and date. Make sure, each date provided is unique for that day.
var data = [{count: 2, date: "2017-09-23"}, ...]
@SeBassTian23 SeBassTian23 self-assigned this Nov 11, 2021
@SeBassTian23
Copy link
Owner

Thank you for reporting the issue, I will check and provide a fix as soon as I find the time.

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