I'm working on FullCalendar with several different resources that I'm displaying with different colors, which sometimes share events. I'm using the resourceIds field on events and on the day and timeline views, this is working great as shown in the picture below.
On the month and week views, it just puts them in the calendar once with the first resource's color. Is there a way to make it split it into 2 events so it can be shown that both resources are busy on the month and week views?
Update 1
I did find that you can add the groupByDateAndResource or groupByResource flags to the config, but I'm still not loving that, as it ends up duplicating the calendar. This is doable with 1 or 2 resources, but if I had 5, this would get ridiculous.
Related
I would like to filter out resources on a daily basis in a fullcalendar that implements a resourceTimeGrid for all days where a given resource does not have any events.
For example, in the picture below, Susan should not be displayed on Thursday, as she doesn't have any events.
The setting filterResourcesWithEvents only seems to have an effect when no events for Susan are present for the entire week.
It feels silly to ask a question like this but I really can't find a view by myself after clicking anywhere in the interface at least twice.
I switched my app from analytics to firebase and those events do reach the firebase backend.
I also can see the events from the last 30 minutes.
They are stored under select_content -> Parametername = item_name
But I do not find a view of way to select a wider period of time. Like show that same statistics over a longer period of time.
Do I have to set up a specific view? Or how can I get those results?
I had this exact problem and finally found a way to do it (though using the Google Analytics site instead of Firebase- but still using the select_content event).
In Google Analytics you can create a custom dimension from item_name (I did this in All events->Manage Custom Definitions->Create custom dimensions) then create a custom analysis in Analysis hub: I started from Blank, then used the Exploration Technique, selected Bar Chart for Visualization, added item_name as the Breakdown and Event Count as the Value- this gives the total event count for each item_name over the selected time period.
If you change the Visualization to Line Chart, you can also see how the values change over larger time periods (Granularities: Hour, Day, Week, Month).
Screenshot
I am in the process to add FullCalendar v4 to our react application and I'm pretty new to FullCalendar, so excuse me if I ask a basic question.
I searched both the documentation and StackOverflow, but couldn't find any hints to my current problem. Let me briefly describe our goal scenario:
We want to load and render the events for a whole year and show a date range of about 40 days (a whole month and additionally 5 days from the last and the next month) to the user. The user should be able to scroll through the whole year with the scrollbar.
The first question is whether FC4 already provides the functionality with which we can achieve our goal. I tried to define a custom view of type 'resourceTimeline' with a duration of 30 days and additionally set the 'validRange' to the current year. This gives me the look I want, but unfortunately it is static - the scrollbar is not visible as long as the screen can display the whole area of 40 days. With the next/previous buttons I can switch between the 40 days segments, but I'd rather use these buttons to switch between years and use the scrollbar to scroll within the year.
We have now tried to set the 'visibleRange' to the current year and programmatically scroll to the current date in the 'datesRender' function. The problem is that we can't decide whether FC4 was initially loaded (where we would scroll to the current date) or whether a user scrolled manually to another date in the timeline and edited an event there. In this case the scroll position should be kept.
So what we are missing is the matching callback that tells us that the 'executeRender' function has been completely executed. The question at this point is how and where I can provide an application specific callback function that is triggered after all dates and events have been rendered. I also saw several internal success callbacks. Is it possible to overwrite them?
Any ideas and hints are highly appreciated.
Thank you very much for thinking along.
I am interested to find out if it is possible to customize fullcalendar to do custom views of resource calendars for month, week and day views. The events displayed are only single all-day events. No multi-day events or time data.
The month plan is similar to the daily scheduler vertical resource view at fullcalendar.com
However, I need it for a month view with days as vertical rows.
I have not found any examples of the required day view or week view.
I have tried to adjust the settings and played around with it for a bit, but I haven't found out if this is possible.
I include some simple sketches of what I am looking for. I hope to get a few pointers if this is viable in fullcalendar or if I should look at another library.
I have a site with user generated stories. Stories are nodes. Stories are rated with Fivestar.
I want to create a calendar style view to list the top rated story - every day, for the current year. So at the end I will have a list of 365 stories.
I'm not sure how to approach this, any help would be great.
You could make a View that takes a Date argument, where you'll pass a specific day', and return results sorted by Fivestar rating, and limiting the View to 1 result.
Then in your custom calendar, loop over every day, and each time, calling the View and showing the result, which will be the 'top rated' note. Though this might be somewhat overkill, it's suitable for a Block which shows today's current top rated Node. I wouldn't actually use it for a whole month or even year view.
Another option could be, that every 24 hours - and a little past midnight - you use that View to get the top rated note for the previous day, and store or flag it as the top rated.
That way, only 1 Node a day will be flagged or stored, and you could build a view that lists all stored/flagged nodes, ordered by date. Rating is irrelevant here, since the View you ran in Cron already picked up the top rated one. Theme this View as a grid, and maybe with an argument Month, and you are close to a Calendar like Month view of your top rated Nodes per day.
Last option would be to build a View, which gets all nodes, and sort them by rating, and group them by day. Then make sure you only print 1 per group, namely, the top rated one.