Comments (8)
same errors for me.. what version of d3 should we be using?
I was able to resolve this issue by using
"moment": "2.19.1",
"d3": "5.16.0",
from reactjs-calendar-heatmap.
Hi Adam, could you check the version of d3
and moment
you are using? I think I've seen this error before and it was related to a version mismatch. The ones used in the demo are:
"d3": "4.11.0",
"moment": "2.19.1",
If that does not fix it please share a link to your project, I'll be happy to look into the issue.
from reactjs-calendar-heatmap.
Greetings,
I'm using both latest:
"d3": "^6.6.2", "moment": "^2.29.1",
I tried downgrading moment versions, which didn't seem to make any difference. I can't downgrade d3 as I'm dependent on what looks like a reorganization of the exports. It would be amazing if you could dig in!
I'm only passing in a sessions array, which does render the calendar properly.
Is there a way to pass in a height and width? I'd be happy to sponsor some development here to get this sorted out as this looks like exactly what I want in my app.
Thanks again!
Adam
from reactjs-calendar-heatmap.
Unfortunately D3 made some changes in later versions that are not backwards compatible. I can take a look at updating the library to support the latest version of d3 - no idea how big that update would be, it will have to be a major version bump.
If you want me to add width and height as props for the current version - we can do that in a separate issue, thanks!
from reactjs-calendar-heatmap.
It would be fantastic if you were able to upgrade it to work with the latest package versions, and then add the height/width props :)
from reactjs-calendar-heatmap.
Hey @g1eb, love this heat map. Any plans to upgrade to latest versions?
from reactjs-calendar-heatmap.
Just FYI, I get an error mousing over the days whether I use latest d3/moment or the ones you recommended.
"d3": "4.11.0",
"moment": "2.19.1",
from reactjs-calendar-heatmap.
same errors for me.. what version of d3 should we be using?
from reactjs-calendar-heatmap.
Related Issues (19)
- Licence HOT 1
- Rendering as individual components HOT 1
- Trouble to display data in the year mode HOT 11
- Getting a summary.length error and trouble displaying data in year mode HOT 3
- p.scaleLinear is not a function HOT 5
- Height Adjust With Many Projects HOT 6
- Is it possible to change which day begins the week? HOT 2
- Component keep flashing without displaying correct data HOT 3
- Tooltip doesn't take parent element into account HOT 1
- React v18 migration HOT 3
- Demo not working HOT 2
- Use min_value as the lower boundary domain value HOT 2
- Responsiveness of heatmap HOT 1
- using with Next js
- how to use just the 'day overview' HOT 2
- Package size is too large HOT 2
- Publish Typescript Types
- p.scaleLinear is not a function again HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactjs-calendar-heatmap.