Code Monkey home page Code Monkey logo

one-day's People

Contributors

vlio20 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

one-day's Issues

Event with id = 0

Hello

First of all - great job!

I think i've found a little bug. In test project, when i use generated events:

events = generateEvents(7);

sometimes i got wrong positioning, for example for data:

    var events = [
    {id: 0, start: 524, end: 572},
    {id: 1, start: 166, end: 350},    
    {id: 2, start: 294, end: 379},
    {id: 3, start: 334, end: 518},
    {id: 4, start: 455, end: 475},    
    {id: 5, start: 460, end: 540},
    {id: 6, start: 510, end: 561}
    ];

schedule

I think i is something with id = 0, because if i change id = 0 to id = 7, i works:

schedule7

not working for following data set

[
{"id": 1, "start": 60, "end": 150},
{"id": 2, "start": 540, "end": 570},
{"id": 3, "start": 555, "end": 600},
{"id": 4, "start": 585, "end": 660},
{"id": 5, "start": 90, "end": 600},
{"id": 6, "start": 180, "end": 240},
{"id": 7, "start": 300, "end": 345},
{"id": 8, "start": 210, "end": 240}
]

for the this data set the solution is not working. as for id 1 and 7, the width is not appropriate.

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.