Closed JaLe29 closed 6 years ago
Hi, what version of d3 are you using? The heatmap depends on d3 v4.x
In my project, there is not included d3 library. It is necessary? Why does this not include in your library?
For testing I added:
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.19.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.11.0/d3.min.js"></script>
But there is a still same problem.
p.scaleLinear is not a function
Hmm, interesting... I've literally copy pasted your snippet and it worked fine here :) https://i.imgur.com/SxO3Idi.png
I don't package d3 or moment for the same reason I don't package react, those are peer dependencies and users should already have a copy of those libs running. It also allows for more flexibility with specific d3/moment versions.
The d3 version you include should work fine (we use the same one in the demo). If you still get the error could you please make a jsfiddle to show it?
Okay, you're right.
This is my problem, in some library in my project, so far I have not figured out why.
You can close this issue. Your calendar working properly.
Thanks, let me know if you have any other issues and if I can help :)
Hi, I am getting a error when I use your heatmap!
Usage:
Can you please fix it? Thank you, it's amazing heat map.. :-)