Comments (4)
You means that all domains width equal the width of the larger one, and that there's sometime a gap between domains ?
I'm aware of that glitch, it's due to the fact that the dynamic width has been removed, for performance. I'll try to bring it back in 3.1, I thought that it only affect the months->weeks view.
from cal-heatmap.
Not quite, only the domain with the larger width is affected and I don't think its a problem with widths because if you navigate the domain to be the first one (x=0) it lines up fine, so I reckon the problem is down to how each domain is positioned in the x axis. Currently from what I understand it is calculated along the lines of: x = i*w(d, true) however this assumes that all previous domains were the same width and in the case of the larger domains this is not true, thus pushing the larger domain further along in the x axis. As you can see from the screen shot the positions of all the regular width domains are fine but the larger ones get pushed along by increasing amounts. From my understanding the x position needs to be calculated from the x position of the previous domain: x = previousDomain.x + previousDomain.width + padding etc
In the html March and April have the correct widths (117, 140) but April has x as 140 instead of 117
from cal-heatmap.
Try the 3.0.5 tag
from cal-heatmap.
Thanks, the overlapping is fixed!
from cal-heatmap.
Related Issues (20)
- Feature request - multiple highlights HOT 1
- Can't able to change the months language HOT 2
- Color background doesn't match with condition HOT 1
- Year template goes wrong before the date 1894-01-01 HOT 1
- Not being able to adjust the calendar dimensions to 100% of its div based on the screen size HOT 1
- Resize calendar HOT 1
- Problem with timestamp and timezone HOT 6
- groupY median does not exist HOT 1
- Add custom subdomain classes
- Custom scales in CSS HOT 1
- React project using cal-heatmap and TypeScript cannot be built HOT 2
- Angular/Typescript typing issue HOT 3
- Commonjs export is not working HOT 1
- get other info from source data HOT 3
- Type is not correctly exported in
- Type is not correctly exported in "exports" HOT 1
- data is not filled into cal boxes HOT 8
- Could not find a declaration file for module 'cal-heatmap' HOT 3
- Hours subdomain is not honoring local browser time HOT 1
- New external plugins repositories 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 cal-heatmap.