Select Time Granularity
At the moment the calendar and its labels give us days of the week and the months. A nice feature would be a sort of semantic zoom that would allow us to check not only the interval of years, but monts, weeks and even hours of a day. Cheers
Ooh I like this one! π Expanding calendar functionality beyond overview of a year would definitely be an improvement. The key here is to keep overview uncluttered and interaction for the 'zoom' intuitive.
First thing that comes to mind is to make month labels 'clickable' that would expand that month over the entire width (animated of course). In addition maybe even make the circles 'clickable' that would expand and fill the canvas with details of that day.
Pedro, do you have anything to add with respect to the interaction?
Somewhat related to this is perhaps the 'initial' state of the calendar. In other words, when people start using the calendar with 0 data perhaps it should zoom in on the current week/month so that there is something to show. This feels like something for later though.
What you said is the way to go, I think! You have to be careful with the labels for the days of the week. For example, when the semantic zoom is on a day, the labels for the days of the week must change to the hours of that day.
Regarding what you said about the initial state of the calendar, it is a good idea but it doesn't seem very urgent. It is perfectly fine if the calendar starts on the whole year(s), even if there is almost no data.
When are you planning on doing this?
Cheers
Good idea, I am going to try and fit it in my schedule for next week βΊοΈ
Alright, looking forward to it! I'll stay tuned π
Hi Pedro, just finished initial version of the daily overview.
There is a slight change in the data structure, each object in the "details" array requires a datetime which is necessary to know where to put that object on the timeline in daily overview.
Also, since details arrays can potentially get really large I decided to generate a summary for the tooltip which includes distinct projects and their totals for that day. In terms of optimization you can compute that on the server and pass that with the data or let javascript handle it.
Hello! I already tried the updated demo and the daily overview is really beautiful and smooth. I'm thinking of computing the information and their format to be the same that you refer on the server/back-end, in order for the calendar to handle it correctly. But isn't there a way to simplify the structure and how it is passed?
Also, what are you planning to do with the other granularities (month, weeks, several years, etc.)?
Again, great job, you discovered a way to explore this data-vis problem that I'm sure no-one has done. Cheers
Thank you for the kind words Pedro π
We have been testing it a lot today and I've made some improvements in performance, mainly with respect to the transitions and animations interfering with each other, should be much smoother now.
To answer your questions, I've tried to keep structure of the data exactly as it was, the only addition being the date for each of the items in the details array. You can pass data including a summary array precomputed but that is optional, otherwise summary is generated in javascript which is surprisingly fast so far :thinking:
As to the other granularities, I have an idea for the monthly overview and was planning on adding that next. I have not given much thought to weeks and multiple years, although that sounds interesting. What did you have in mind?
You're welcome π
My questions about the data structure are mainly because I will be using this directive as means to show information about the trips/places visited by me/other person. In your case you're showing information about projects, I will be doing it about places (my house, coffee shop, etc.). So that was the reason I was asking you about the data structure, because my backend will need to process the location data and send it in a format the directive can read. It is also a case of how much information the calendar can withstand without becoming too slow!
For the monthly overview, firstly I would like to hear your plan. But my ideas are somewhat more conservative, as I was thinking on some selectors/buttons to show the desired granularity, or even a double click on the month in order to see it.
For multiple years I think some arrows that would allow side-scrolling are a simple and sufficient idea, or a sort of zoom button that would cluster the labels into years (transform Jan Feb Mar...into 2010 2011 2012) and at the same time cluster the circles to represent the data for each month of the respective year.
For the weeks the calendar could be simplified by clustering a month into 4 or 5 circles that represent those weeks, or you could show the hours of certain weeks - but I think here the week view is the less important!
Here are my two cents. Let me know of any updates. Hope we can continue to discuss this great project!
Sounds awesome! Thanks for providing some context :) And thank you again for providing such valuable feedback, it is very much appreciated. :smiley:
What I had in mind for the monthly overview is somewhat look similar to the day in terms of design, showing horizontal bars of equal length for each of the days where each bar is a stacked bar of all projects/trips on that day sorted by value. The labels change from months to week numbers and highlight those weeks on hover. It might be tricky to imagine but makes much more sense when you see it haha.
Since data structure can get really big my advice would be to split your own data into years, i.e. pass the year as a parameter to the api call and get data for each of the years, then you can easily add some buttons for prev/next naigation purposes to your view.
Once we got monthly overview down I can add a hook that will allow users to set initial overview type. And since it's angular that could be used to trigger different overview types.
Not going to get to it this week, but will try to implement this in the next couple weeks βοΈ
Yeah I'm having a tough time imagining what you said about the monthly overview haha but I bet it'll look awesome! But if in the end you don't like it, feel free to try the ideas I gave π
What you said about splitting the data into years is related to the year overview, right? Anyways, I was already thinking of having the year as a parameter for querying my database. If you're planning on adding that year navigation overview, let us know!
The hook to set the initial overview type is a nice addition, but not very urgent in my opinion.
In the meantime I found a bug on the tooltips, I already tried to correct it using CSS (z-index, etc.) but it didn't resolve anything. I will open the issue, but I think it's a rather simple bug.
Let us know when you have continued the implementation of what we are discussing in this topic. Cheers!
Hey Pedro, I've published a new version that includes latest fixes and a monthly overview state.
Might still need to adjust the colors of various projects on the days and maybe do some other styling changes and/or code cleanup. Let me know what you think π
It looks very cool! Great idea for the monthly overview. The interaction between month, day and year is very nice too. As for the color scale for the various projects it seems a bit confusing at the moment. Maybe you could add a little stroke to better see the separation between projects?
Do you have any other ideas in mind? Cheers!
Yeah, completely agree with you on the colors, I was using the max value of the days for the color range which resulted in days with only one or two values stand out more so than days with lots of items. This is fixed in the latest release. Also added a stroke to improve visibility of distinct items.
Glad you like the interaction, the core requirement was that you don't need any extra controls/switches to move from year to months to days and back, keeping the interaction intuitive.
As for any other ideas, I'd like to take some time to redo the transition animations and code cleanup along with it. But that makes it a different type of issue than time granularity, I should probably close this issue for now π
Thanks again for all the feedback! :)
Yeah, the interaction is very good, with no switches/buttons cluttering the visualization. Already tried this new release and the weekly view with the new color range and with the stroke between items is looking much cleaner and easy to understand. Great work!
I may be digressing here, but if we clicked on a week, wouldn't it be nice to do a sort of zoom on that week block? It would allow for them to be spread over the view, or even get a new type of visualization for that week.
Also, consider this: I click on a month, then click on a day of a week on that month view. When I go back, it shows the year view, instead of going back to the month where I was observing the data. For the daily overview (when I click a day and go back) all is fine, but in this case it seems a good idea!
Let me know what you think π
As for your redoing of the animations and code cleanup, I'll be observing and trying the new versions. Cheers!
Ah, I thought that week overview would be the same as month and so would not add much to the visualization as a whole, but I could certainly build it if you want :)
Also, the navigation back from daily to month was in there from the start, not sure why I removed it later haha, will put it back in there.
As I said, I was digressing haha. You could build it later if you have the time. It is not imperative!
Tell us when you re-add the navigation from daily to month π
Also, for me not to open another issue:

See the problem here? The bars for each day are not aligned. It would be nice to have them all of the same size!
Tell me what you think. Keep up the great work!
Hey Pedro :) sorry to keep you waiting so long!
I've added history and fixed the alignment issue in monthly overview (as shown on your picture). Going to work on that weekly overview now, will update you asap.
Cheers πΊ
Hi! I was just checking the project for updates. Nice coincidence!
In the meantime I already tested the changes and they look great. But I found two issues, though:

You see here? The week bars ale slightly moved down and not totally aligned with the day labels!
Also, when I initialize the calendar and click on a month, and then on a day, all good. But when I get back to the year overview, select another month, another day on another week, and then get back to the week overview, it takes me to the first ever month/week visited!
Other than that, it's even great! Cheers.
Thanks for the quick feedback Pedro, I see what you mean, I'll fix that and push with the next release asap π