How do you add a heading to the chart generated by github-calendar?

Viewed 33

I am using github-calendar to show my Github contributions on my website. I would like to add a title to the chart like it is shown in this comment. In my case, I just want bold text saying 'Contributions in the past 365 days.'

Screenshot of what I want

I have tried adding text inside the div, but it appears to be overwritten because I don't see it in the DOM.

<!-- Prepare a container for your calendar. -->
<div class="calendar">
<p>Contributions in the past 365 Days</p>
</div>
<script>

  GitHubCalendar(
    ".calendar",
    "jsolly", {
    global_stats: false,
    responsive: true,

  });
1 Answers
Related