New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar Chart Extension (proof of concept) #1051

Open
hede5562 opened this Issue Sep 10, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@hede5562

hede5562 commented Sep 10, 2017

I've combined some d3 chart demo and the demo extension. With the result of some interesting statistics tool I think.

Think of a graphical analysis of "when is the most productive daytime for which project?". Watch out for the mouse pointer and the tooltip on the bottom left. And ask yourself why there's 13 bars with only 11 lines of data. ;-)

Is anyone interested in this?

Currently it's not ready for a pull request I think... but if there's any interest I will improve the code to do so.

Demo:
barchar-demo
Data:
barchar-data

@hede5562

This comment has been minimized.

Show comment
Hide comment
@hede5562

hede5562 Sep 11, 2017

  • improved animation (d3 offers some fancy loading animations)
  • improved tooltips (now floating - like with the original d3 demo)
  • improved tooltips content (for multi-day events)
  • still a long list of TODOs - like code cleanups

it's still a proof of concept - even a working one ;-)

try it:
170911-barcharts-for-ki_demoextension.tar.gz

install instructions: extract it to your .../kimai/extensions/ folder - the demo extension name space should be already activated for your kimai install - that's my reason for using it for now; for kimai 1.2 (current development) nothing more has to be done; for kimai 1.1 (current stable) you have to change the $dateformat variable in processor.php - see comments in php-file.

a github fork / pull request will follow soon, I think; I won't invest too much time here, there are other projects which need my attention

hede5562 commented Sep 11, 2017

  • improved animation (d3 offers some fancy loading animations)
  • improved tooltips (now floating - like with the original d3 demo)
  • improved tooltips content (for multi-day events)
  • still a long list of TODOs - like code cleanups

it's still a proof of concept - even a working one ;-)

try it:
170911-barcharts-for-ki_demoextension.tar.gz

install instructions: extract it to your .../kimai/extensions/ folder - the demo extension name space should be already activated for your kimai install - that's my reason for using it for now; for kimai 1.2 (current development) nothing more has to be done; for kimai 1.1 (current stable) you have to change the $dateformat variable in processor.php - see comments in php-file.

a github fork / pull request will follow soon, I think; I won't invest too much time here, there are other projects which need my attention

@simonschaufi

This comment has been minimized.

Show comment
Hide comment
@simonschaufi

simonschaufi Sep 11, 2017

Member

Thanx for sharing the code. At least from there we can integrate it a lot easier. You could still do a pull request and prefix it with [WIP]. Then everybody knows, that it is not ready to be merged yet.

Member

simonschaufi commented Sep 11, 2017

Thanx for sharing the code. At least from there we can integrate it a lot easier. You could still do a pull request and prefix it with [WIP]. Then everybody knows, that it is not ready to be merged yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment