Giter Site home page Giter Site logo

Comments (5)

ignatvilesov avatar ignatvilesov commented on May 17, 2024 1

Thanks for your feedback.
I'll address and fix this issue soon.

Ignat Vilesov,
Software Engineer

Microsoft Power BI Custom Visuals
[email protected]

from powerbi-visuals-gantt.

erapade avatar erapade commented on May 17, 2024

I looked in the code, but as I don't know Java Script, I will not manage this of my own. But I did see this line in gantt.js that probably is a type:
const MillisecondsInWeek: number = 4 * MillisecondsInADay;

Also: I have seen that duration is always at minimum one day. So if the task starts at 6 AM, it will always stop at 6 AM some days later.

I have come soo far that I can re-compile the code, but I can't figure out what to change

from powerbi-visuals-gantt.

erapade avatar erapade commented on May 17, 2024

This still haven't been adressed. The week of 4 days still remains, as well as the ability to specify duration in shorter shuncks that one day. Please fix, the code change is very easy. For changing from 4 to 7 days in a week is also submitted as a pull request

from powerbi-visuals-gantt.

erapade avatar erapade commented on May 17, 2024

I have done some updates here. I added new scales for Hours, Minutes, and Seconds as well. This now works fine for me, but it will need some fine tuning for a final release.

  • The scales/axis for Hours, Minutes, and Seconds needs to be handled better
  • The resolution for duration when hovering needs to have better resolution than just one day
  • The resolution for start time needs to have better resolution than just one day
  • I have noticed that sometimes there's a 1 second glitch (white space between two bars). I have checked my start time, the calculated duration, and the next start time, and they are correct. This is not at all a big problem though
  • I also noticed that using Resources does not perform well with the Grouping settings. The color will disappear. Maybe this is an issue for itself.
  • Would also be nice to be able to use Date Hierarchies to drill up and down in time scale, but that's out of my capacity, and maybe requires a new issue/branch as well

I have added example data below. In this case there's a 1 second glitch 29 seconds from start

ref_num	Start time	End time	Task	Legend	Next legend (not used)	duration in seconds (not used)	duration in days
i-4954942	2017-05-02 11:41:09	2017-05-02 11:41:51	group	I-SSO-IN-SMD-INT-SDV_INTEL	I-SSO-IN-SMD-INT-SDV_INTEL	42	0,0005
i-4954942	2017-05-02 11:41:09	2017-05-02 11:41:51	priority	2	1	42	0,0005
i-4954942	2017-05-02 11:41:09	2017-05-02 11:41:51	status	Closed	Closed	42	0,0005
i-4954942	2017-05-01 21:40:52	2017-05-02 11:41:09	group	I-SSO-IN-SMD-INT-SDV_INTEL	I-SSO-IN-SMD-INT-SDV_INTEL	50417	0,5835
i-4954942	2017-05-01 21:40:52	2017-05-02 11:41:09	priority	2	2	50417	0,5835
i-4954942	2017-05-01 21:40:52	2017-05-02 11:41:09	status	Closed	Closed	50417	0,5835
i-4954942	2017-04-20 14:19:19	2017-05-01 21:40:52	status	Resolved	Closed	976893	11,3066
i-4954942	2017-04-20 14:17:09	2017-04-20 14:19:19	status	More Information Requested	Resolved	130	0,0015
i-4954942	2017-04-20 14:15:13	2017-04-20 14:17:09	status	Transferred to external provider	More Information Requested	116	0,0013
i-4954942	2017-04-20 13:35:48	2017-05-01 21:40:52	priority	2	2	979504	11,3369
i-4954942	2017-04-20 13:18:53	2017-04-20 14:15:13	status	More Information Requested	Transferred to external provider	3380	0,0391
i-4954942	2017-04-20 11:40:14	2017-04-20 13:35:48	priority	1	2	6934	0,0803
i-4954942	2017-04-20 11:13:38	2017-04-20 13:18:53	status	Transferred to external provider	More Information Requested	7515	0,087
i-4954942	2017-04-20 11:13:09	2017-05-01 21:40:52	group	I-SSO-IN-SMD-INT-SDV_INTEL	I-SSO-IN-SMD-INT-SDV_INTEL	988063	11,4359
i-4954942	2017-04-20 11:13:09	2017-04-20 11:40:14	priority	3	1	1625	0,0188
i-4954942	2017-04-20 11:13:09	2017-04-20 11:13:38	status	Open	Transferred to external provider	29	0,0003

from powerbi-visuals-gantt.

erapade avatar erapade commented on May 17, 2024

This has now been implemented

from powerbi-visuals-gantt.

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.