angular-calendar-heatmap icon indicating copy to clipboard operation
angular-calendar-heatmap copied to clipboard

Year/Weekly overview error

Open PedroF20 opened this issue 10 years ago • 9 comments

Hello g1eb!

Since we last spoke I began to adapt this project of yours to show the data I need, and also make some code adjustments needed for the calendar to fit my project. Maybe my suggestion of simplifying the data format was a bit overkill, since I could feed the calendar the correct format. So no rushes here 😄

As you can see in the following image:

image

I'm using the calendar to show stays in places instead of projects, so in my case (and even in the project context) I have some stays that are of little seconds. In those cases D3 cannot create the rectangles in the week view, hence those erros. Maybe some scaling here to fix this problem with small data?

Other issue in this image:

image

You see the tooltip? That circle is related to March, however it is drawn on September/October. The labels are a bit messed up. They should be aligned with the data I am passing and not with the real world data. Thank you!

PedroF20 avatar Jul 27 '16 22:07 PedroF20

First one seems like a scaling/rounding issue indeed, let me take a look at that for ya :)

As for the second one, calendar should start drawing circles at the appropriate position during the year. Maybe even scale the labels to fit the data? Say if there is no data for first couple months then there is no need to show it? What do you think?

g1eb avatar Jul 28 '16 12:07 g1eb

What do you mean with scaling the labels? Maybe the second option is better: if there is no data for certain days/months, no need to show it. If you could exemplify it, it would be awesome!

PedroF20 avatar Jul 28 '16 13:07 PedroF20

Yeah, basically hiding labels/circles if there is no data. With scaling I mean that if you have two or three months of data available that you use available width for that range. I did not mean to really scale circles to ovals, poor choice of words :)

Let me get back to you when I fix the first bug.

g1eb avatar Aug 01 '16 09:08 g1eb

Yeah, that's it. I agree with what you said! I'll be waiting for new.

PedroF20 avatar Aug 01 '16 09:08 PedroF20

Heya Pedro! Sorry that took a while, I wanted to make more time to be sure I had the right fix 😸 Let me know what you think, I hope new release fixed your issue!

g1eb avatar Aug 15 '16 15:08 g1eb

Hello,

Sorry for the time I took to answer, I was on vacation with little to no Internet access. I already tried the new release, it's all working good!!

Regarding the data format as we talked once, I'm having no problems with it, so I think it is not that hard to format.

About the option to observe multiple years, any idea?

PedroF20 avatar Aug 22 '16 22:08 PedroF20

Hey :) no worries, holidays are important! If this is solved, I'm going to close the issue 🍒

Glad it worked out with the format, it is aimed to be very generic indeed.

As for multiple years I have not made up my mind yet.. I like your suggestion to make a year selector and changing the year view on click. I need some more time to implement it though.

Oh something else I wanted to ask you, are you using this inside gridster? How is that working out? 😺

g1eb avatar Aug 23 '16 11:08 g1eb

Yes you can close it, it's all good. Let me know when you have a solution for the multiple years issue!

As for the gridster, yes, I'm using it. I was having some resizing issues with the calendar (the circles were becoming too big and not aligned with the labels). But since this calendar can be sort of "fixed" (no need to resize), I can say it is working very good. Check my angular repo or ask me anything if you need. Cheers 😄

PedroF20 avatar Aug 23 '16 11:08 PedroF20

Cool! Thanks, I'll keep you posted :)

g1eb avatar Aug 23 '16 12:08 g1eb