Calendar Component Layout¶
The calendar component of our web app is actually a specific chart called a Gantt chart. We are going to use the Anvil plotting mechanism to create it.
Our current CalendarComponentLayout already has a card to contain our details, so all we have to do is add the plot.
Add Plot to Calendar¶
Let add our plot
Open CalendarComponentLayout in Design mode.
Find the Plot component
Add it to self.card_details
Rename the plot to self.plot_timeline
That’s all done. Let’s add the code.