The year at a glance: each day with something on has a dot in its colour, and a tooltip of what is on. Click a day - or move to it with the arrow keys and press Enter - to open it; the Year button brings the twelve months back.

Click a day to open it.

jQuery Scheduler: Year View

jqxScheduler's year view shows the twelve months at once, each day with appointments marked with a dot an appointment colour and a tooltip of what is on. Click a day - or press Enter on it - to open it in the day view; the arrow keys, Home, End, Page Up and Page Down move through the year.

A live JavaScript/jQuery example of jqxScheduler, the jQWidgets Scheduler component, with its complete source code below. It is one of 45 jqxScheduler demos for jQuery.

jqxScheduler API used in this demo

Source code

To run it in your own page, load jqx.base.css, a theme and the library files below from npm (npm install jqwidgets-scripts) or the jsDelivr CDN, then add the markup and the script. jQuery is not required: jqxcore.js provides $. Getting started with jqxScheduler shows the setup step by step.

The page loads jqx.base.css, a theme and these library files: jqxcore.js, jqxbuttons.js, jqxscrollbar.js, jqxdata.js, jqxdate.js, jqxscheduler.js, jqxscheduler.api.js, jqxdatetimeinput.js, jqxmenu.js, jqxcalendar.js, jqxtooltip.js, jqxwindow.js, jqxcheckbox.js, jqxlistbox.js, jqxdropdownlist.js, jqxnumberinput.js, jqxradiobutton.js, jqxinput.js.

It also loads helper scripts of this demo site, which are not part of the library: demos.js (getWidth() and other layout helpers).

script.js

$(document).ready(function () {
    // A product team's 2026: releases, conferences, the office's holidays, a monthly all-hands
    // and a sprint review every other Friday. The categories are resources, so each has its
    // colour - in the year view's dots as in the other views.
    var day = function (month, date, hour, minute) { return new Date(2026, month - 1, date, hour || 0, minute || 0); };
    var events = [
        { id: 'r1', subject: 'Release 4.0', category: 'Release', start: day(2, 17, 10), end: day(2, 17, 11) },
        { id: 'r2', subject: 'Release 4.1', category: 'Release', start: day(5, 19, 10), end: day(5, 19, 11) },
        { id: 'r3', subject: 'Release 4.2', category: 'Release', start: day(8, 25, 10), end: day(8, 25, 11) },
        { id: 'r4', subject: 'Release 5.0', category: 'Release', start: day(11, 17, 10), end: day(11, 17, 11) },
        { id: 'c1', subject: 'DevCon Berlin', category: 'Conference', allDay: true, start: day(3, 10), end: day(3, 12, 23, 59) },
        { id: 'c2', subject: 'UX Summit', category: 'Conference', allDay: true, start: day(6, 23), end: day(6, 24, 23, 59) },
        { id: 'c3', subject: 'Web Days Sofia', category: 'Conference', allDay: true, start: day(10, 14), end: day(10, 16, 23, 59) },
        { id: 'h1', subject: 'New Year', category: 'Holiday', allDay: true, start: day(1, 1), end: day(1, 1, 23, 59) },
        { id: 'h2', subject: 'Spring holiday', category: 'Holiday', allDay: true, start: day(4, 10), end: day(4, 13, 23, 59) },
        { id: 'h3', subject: 'Summer break', category: 'Holiday', allDay: true, start: day(8, 3), end: day(8, 14, 23, 59) },
        { id: 'h4', subject: 'Winter holidays', category: 'Holiday', allDay: true, start: day(12, 24), end: day(12, 31, 23, 59) },
        { id: 'a1', subject: 'All-hands', category: 'Company', start: day(1, 5, 16), end: day(1, 5, 17), rule: 'FREQ=MONTHLY;BYMONTHDAY=5;COUNT=12' },
        { id: 's1', subject: 'Sprint review', category: 'Company', start: day(1, 9, 14), end: day(1, 9, 15), rule: 'FREQ=WEEKLY;INTERVAL=2;BYDAY=FR;COUNT=26' }
    ];
    var source = {
        dataType: 'array',
        dataFields: [
            { name: 'id', type: 'string' },
            { name: 'subject', type: 'string' },
            { name: 'category', type: 'string' },
            { name: 'allDay', type: 'boolean' },
            { name: 'rule', type: 'string' },
            { name: 'start', type: 'date' },
            { name: 'end', type: 'date' }
        ],
        id: 'id',
        localData: events
    };
    var categories = { dataType: 'array', dataFields: [{ name: 'category', type: 'string' }], localData: [{ category: 'Release' }, { category: 'Conference' }, { category: 'Holiday' }, { category: 'Company' }] };

    $('#scheduler').jqxScheduler({
        date: new $.jqx.date(2026, 10, 7),
        width: '100%',
        height: 640,
        source: new $.jqx.dataAdapter(source),
        view: 'yearView',
        showLegend: true,
        resources: { colorScheme: 'scheme05', dataField: 'category', source: new $.jqx.dataAdapter(categories) },
        appointmentDataFields: { from: 'start', to: 'end', id: 'id', subject: 'subject', allDay: 'allDay', resourceId: 'category', recurrencePattern: 'rule' },
        views: [
            { type: 'dayView', timeRuler: { formatString: 'HH:mm' } },
            { type: 'weekView', timeRuler: { formatString: 'HH:mm' } },
            'monthView',
            // up to four dots under a day
            { type: 'yearView', maxDots: 4 }
        ],
        ready: function () {
            $('#scheduler').jqxScheduler('scrollToTime', 8);
        }
    });

    // where the year view sends a click: the scheduler opens the day; the page says what is on it
    $('#scheduler').on('cellClick', function (event) {
        var date = event.args.date.toDate();
        var on = $.grep($('#scheduler').jqxScheduler('getAppointments'), function (a) {
            var from = a.from.toDate(), to = a.to.toDate();
            return from < new Date(date.getFullYear(), date.getMonth(), date.getDate() + 1) && to > date;
        });
        $('#status').text(date.toDateString() + ': ' + (on.length ? $.map(on, function (a) { return a.subject; }).join(', ') : 'nothing planned') + '.');
    });
    $('#scheduler').on('viewChange', function (event) {
        if (event.args.newViewType === 'yearView') {
            $('#status').text('Back to the year. Click a day to open it.');
        }
    });
});

body.html

<div id="content" class="demo">
    
    <p class="demo-intro">
        The year at a glance: each day with something on has a dot in its colour, and a tooltip of what is on. Click a day - or move to it with the arrow keys and press Enter - to open it; the Year button brings the twelve months back.
    </p>
    <div id="scheduler"></div>
    <div id="status" class="demo-status" role="status" aria-live="polite">Click a day to open it.</div>
</div>

Learn more

More jQuery Scheduler demos