Giter VIP home page Giter VIP logo

Comments (4)

wa0x6e avatar wa0x6e commented on May 19, 2024

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.

lukemilts avatar lukemilts commented on May 19, 2024

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
screen shot 2013-07-23 at 9 54 37 pm
screen shot 2013-07-23 at 10 05 16 pm
In the html March and April have the correct widths (117, 140) but April has x as 140 instead of 117

from cal-heatmap.

wa0x6e avatar wa0x6e commented on May 19, 2024

Try the 3.0.5 tag

from cal-heatmap.

lukemilts avatar lukemilts commented on May 19, 2024

Thanks, the overlapping is fixed!

from cal-heatmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.