TransWikia.com

How to plot events in a weekly/daily view?

Mathematica Asked on July 26, 2021

Are there any functions or resources to plot events in a calendar view like this?

enter image description here

I’d like to use this with the google service:

cal = ServiceConnect["GoogleCalendar"]
cal["EventDataset"]

For testing purposes here is code to generate the events:

nEvents = 25;
events = Thread[{Partition[Sort[ResourceFunction["RandomDate"][
    {Now, Now + Quantity[5, "Days"]}, nEvents*2]], 2], 
   Table[ResourceFunction["LatinizedText"][RandomInteger[{1, 20}]], nEvents]
}]

Criteria for an acceptable answer includes:

  • Looks like the above calendar from twitch
  • Shows event details like title and time length info
  • Handles overlapping events like a normal calendar view
  • Shows different calendars (sets of events) in different colors

Related:

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP