{"performances":{"performances":[{"event_date":"18080422","id":72259,"event_id":28214,"work_id":3838,"title_clean":"Caractacus","count":10,"genre_colour":"#9900ff","genre":"Ballet","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":20,"filtered_performances_for_work":10,"work":{"id":3838,"lsdb_id":null,"title":"Caractacus: A Grand Ballet of Action","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1808","notes":null,"created_at":"2023-10-12T15:08:55.000000Z","updated_at":"2024-04-29T16:33:41.000000Z","deleted_at":null,"genre_id":17,"performance_medium":"Dance","date_type":"Performed","genre":{"id":17,"label":"Ballet","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-10-30T16:22:41.000000Z","updated_at":"2023-10-30T16:22:41.000000Z"}}},{"event_date":"18080405","id":72245,"event_id":28195,"work_id":3971,"title_clean":"Ella Rosenberg","count":4,"genre_colour":"#9900ff","genre":"Melodrama","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":47,"filtered_performances_for_work":4,"work":{"id":3971,"lsdb_id":null,"title":"Ella Rosenberg","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1807","notes":null,"created_at":"2024-12-05T09:33:35.000000Z","updated_at":"2024-12-10T15:49:33.000000Z","deleted_at":null,"genre_id":7,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":7,"label":"Melodrama","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:11.000000Z","updated_at":"2023-06-22T10:31:11.000000Z"}}},{"event_date":"18080402","id":72241,"event_id":28192,"work_id":2664,"title_clean":"The Deserter","count":2,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":172,"filtered_performances_for_work":2,"work":{"id":2664,"lsdb_id":2664,"title":"The Deserter","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1773","notes":null,"created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2025-03-23T21:09:20.000000Z","deleted_at":null,"genre_id":4,"performance_medium":"Musical","date_type":"Performed","genre":{"id":4,"label":"Farce","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:43.000000Z","updated_at":"2023-06-22T10:30:43.000000Z"}}},{"event_date":"18080404","id":72243,"event_id":28193,"work_id":3840,"title_clean":"Tekeli","count":2,"genre_colour":"#9900ff","genre":"Melodrama","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":64,"filtered_performances_for_work":2,"work":{"id":3840,"lsdb_id":null,"title":"Tekeli; or, The Siege of Montgatz","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1806","notes":null,"created_at":"2023-10-12T15:34:16.000000Z","updated_at":"2024-04-29T15:46:41.000000Z","deleted_at":null,"genre_id":7,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":7,"label":"Melodrama","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:11.000000Z","updated_at":"2023-06-22T10:31:11.000000Z"}}},{"event_date":"18080407","id":72247,"event_id":28199,"work_id":493,"title_clean":"The Mayor of Garratt","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":92,"filtered_performances_for_work":2,"work":{"id":493,"lsdb_id":493,"title":"The Mayor of Garratt","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1763","notes":null,"created_at":"2022-11-01T23:59:15.000000Z","updated_at":"2023-11-06T11:56:09.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":2,"label":"Comedy","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:16.000000Z","updated_at":"2023-06-22T10:30:16.000000Z"}}},{"event_date":"18080409","id":72249,"event_id":28201,"work_id":3119,"title_clean":"Ways and Means","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":7,"filtered_performances_for_work":1,"work":{"id":3119,"lsdb_id":3119,"title":"Ways and Means; or A Trip to Dover","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1788","notes":null,"created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2024-08-13T13:06:10.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":2,"label":"Comedy","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:16.000000Z","updated_at":"2023-06-22T10:30:16.000000Z"}}},{"event_date":"18080421","id":72257,"event_id":28211,"work_id":2717,"title_clean":"Three Weeks After Marriage","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":116,"filtered_performances_for_work":1,"work":{"id":2717,"lsdb_id":2717,"title":"Three Weeks After Marriage","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1764","notes":null,"created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2023-12-19T14:41:26.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":2,"label":"Comedy","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:16.000000Z","updated_at":"2023-06-22T10:30:16.000000Z"}}},{"event_date":"18080430","id":72273,"event_id":28225,"work_id":3179,"title_clean":"No Song No Supper","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":164,"filtered_performances_for_work":1,"work":{"id":3179,"lsdb_id":3179,"title":"No Song No Supper","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1790","notes":null,"created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2024-12-16T13:08:15.000000Z","deleted_at":null,"genre_id":4,"performance_medium":"Musical","date_type":"Performed","genre":{"id":4,"label":"Farce","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:43.000000Z","updated_at":"2023-06-22T10:30:43.000000Z"}}},{"event_date":"18081029","id":72478,"event_id":29012,"work_id":3453,"title_clean":"Blue Beard","count":1,"genre_colour":"#9900ff","genre":"Romance","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":197,"filtered_performances_for_work":1,"work":{"id":3453,"lsdb_id":3453,"title":"Blue Beard; or, Female Curiosity!","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1798","notes":null,"created_at":"2022-11-01T23:59:21.000000Z","updated_at":"2023-10-11T16:37:22.000000Z","deleted_at":null,"genre_id":11,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":11,"label":"Romance","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:51.000000Z","updated_at":"2023-06-22T10:31:51.000000Z"}}},{"event_date":"18081209","id":72556,"event_id":29029,"work_id":1331,"title_clean":"Anatomist","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":268,"filtered_performances_for_work":1,"work":{"id":1331,"lsdb_id":1331,"title":"The Anatomist; or, The Sham Doctor","title_variant":null,"type_1":"afterpiece","type_2":"mainpiece","source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1696","notes":"The original mainpiece was performed first in 1696 and after being performed at Lincoln's Inn Fields for some years, it came to Covent Garden. The farce was shortened to an afterpiece in 1743; based on No\u00ebl le Breton de Hauteroche's 'Crispin m\u00e9decin' (1680),","created_at":"2022-11-01T23:59:17.000000Z","updated_at":"2025-03-05T14:11:28.000000Z","deleted_at":null,"genre_id":4,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":4,"label":"Farce","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:43.000000Z","updated_at":"2023-06-22T10:30:43.000000Z"}}}],"total_performances":26,"covent_garden_performances":0,"drury_lane_performances":26,"date_ranged_total_performances":26,"date_ranged_covent_garden_performances":0,"date_ranged_drury_lane_performances":26,"from_year":1732,"to_year":1809},"genre_colour":"#0048ff","performances_html":"<div class=\"row\">\n    <h3>Performances<\/h3>\n\n    <div class=\"table-responsive\">\n        <table class=\"table mt-3 table-striped\">\n            <thead>\n\n\n                \n\n                <tr>\n                    <th><a class=\"sort\" data-order=\"asc\" id=\"sort-dates\"\n                            data-sort=\"event_date\">Dates <\/a><\/th>\n\n                    <th><a class=\"sort\" data-order=\"desc\"\n                            id=\"sort-theatre\" data-sort=\"theatre_name\">Theatre <\/a><\/th>\n\n                    <th style=\"white-space: nowrap\">Performances<\/th>\n                    <th><a class=\"sort\" data-order=\"desc\"\n                            id=\"sort-command\" data-sort=\"is_requested\">Requested <\/a><\/th>\n                    <th style=\"white-space: nowrap\"><a class=\"sort\"\n                            data-order=\"desc\"\n                            id=\"sort-command\" data-sort=\"is_command_performance\">Commands <\/a>\n                    <\/th>\n                    <th><a class=\"sort\" data-order=\"desc\"\n                            id=\"sort-benefit\" data-sort=\"is_benefit\">Benefit <\/a><\/th>\n                    <th><a class=\"sort\" data-order=\"desc\"\n                            id=\"sort-revenue\" data-sort=\"event_total_receipts\">Revenue <\/a><\/th>\n                    <th style=\"white-space: nowrap\"><a class=\"sort\"\n                            data-order=\"desc\"\n                            id=\"sort-type\" data-sort=\"percentage_portion_of_receipts\">Available\n                            Revenue %<\/a><\/th>\n                    <th style=\"white-space: nowrap\"><a class=\"sort\"\n                            data-order=\"desc\" id=\"sort-type\"\n                            data-sort=\"portion_of_capacity\">Capacity %<\/a><\/th>\n                    <\/th>\n                <\/tr>\n            <\/thead>\n            <tbody>\n                                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-03-31?theatre=DL\">31 Mar 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/2943\" title=\"More info on Rosina\">Rosina<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3301 15s<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-02?theatre=DL\">02 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/2664\" title=\"More info on The Deserter\">The Deserter<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3296 3s<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-04?theatre=DL\">04 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/3840\" title=\"More info on Tekeli\">Tekeli<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3291 6d<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-05?theatre=DL\">05 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/3971\" title=\"More info on Ella Rosenberg\">Ella Rosenberg<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3263 5s<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-07?theatre=DL\">07 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/493\" title=\"More info on The Mayor of Garratt\">The Mayor of Garratt<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3379 13s 6d<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-09?theatre=DL\">09 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/3119\" title=\"More info on Ways and Means\">Ways and Means<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3390 1s 6d<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-18?theatre=DL\">18 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/3840\" title=\"More info on Tekeli\">Tekeli<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3296 6d<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-19?theatre=DL\">19 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/493\" title=\"More info on The Mayor of Garratt\">The Mayor of Garratt<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3211 15s<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-20?theatre=DL\">20 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/3971\" title=\"More info on Ella Rosenberg\">Ella Rosenberg<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3211 11s 6d<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                                    \n                    <tr class=\"performance play-row\">\n                        <td style=\"white-space: nowrap\"><a\n                                href=\"https:\/\/data.theatronomics.com\/this-day\/1808-04-21?theatre=DL\">21 Apr 1808<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3837\" title=\"More info on The World\">The World<\/a>, <a target=\"_blank\" href=\"\/plays\/2717\" title=\"More info on Three Weeks After Marriage\">Three Weeks After Marriage<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3204 9s<\/td>\n                        <td>N\/A<\/td>\n                        <td>N\/A<\/td>\n                    <\/tr>\n                            <\/tbody>\n        <\/table>\n\n        <nav class=\"d-flex justify-items-center justify-content-between\">\n        <div class=\"d-flex justify-content-between flex-fill d-sm-none\">\n            <ul class=\"pagination\">\n                \n                                    <li class=\"page-item disabled\" aria-disabled=\"true\">\n                        <span class=\"page-link\">&laquo; Previous<\/span>\n                    <\/li>\n                \n                \n                                    <li class=\"page-item\">\n                        <a class=\"page-link\" href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&amp;workId=3837&amp;page=2\" rel=\"next\">Next &raquo;<\/a>\n                    <\/li>\n                            <\/ul>\n        <\/div>\n\n\n\n<div class=\"d-none flex-sm-fill d-sm-flex align-items-sm-center justify-content-sm-between\">\n    <div>\n        <p class=\"small text-muted\">\n            Showing\n            <span class=\"fw-semibold\">1<\/span>\n            to\n            <span class=\"fw-semibold\">10<\/span>\n            of\n            <span class=\"fw-semibold\">26<\/span>\n            results\n        <\/p>\n    <\/div>\n<\/div>\n\n\n    <div class=\"d-none flex-sm-fill d-sm-flex align-items-sm-center justify-content-sm-between\">\n        <div>\n            <p class=\"small text-muted\">\n                <span class=\"fw-semibold\">Items per page<\/span>\n            <\/p>\n        <\/div>\n    <\/div>\n    <div class=\"d-none flex-sm-fill d-sm-flex align-items-sm-center justify-content-sm-between\">\n        <ul id=\"perpage\" class=\"pagination\">\n            \n\n                        <li class=\"page-item  active \"><a\n                    href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&workId=3837&amp;perPage=10\" class=\"page-link per-page-link\">10<\/a>\n            <\/li>\n            <li class=\"page-item \"><a\n                    href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&workId=3837&amp;perPage=25\" class=\"page-link per-page-link\">25<\/a>\n            <\/li>\n            <li class=\"page-item \"><a\n                    href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&workId=3837&amp;perPage=50\" class=\"page-link per-page-link\">50<\/a>\n            <\/li>\n            <li class=\"page-item \"><a\n                    href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&workId=3837&amp;perPage=100\" class=\"page-link per-page-link\">100<\/a>\n            <\/li>\n        <\/ul>\n    <\/div>\n\n    <div>\n        <ul id=\"pagination\" class=\"pagination\">\n            \n                            <li class=\"page-item disabled\" aria-disabled=\"true\" aria-label=\"&laquo; Previous\">\n                    <span class=\"page-link\" aria-hidden=\"true\">&lsaquo;<\/span>\n                <\/li>\n            \n            \n                            \n                \n                \n                                                                                        <li class=\"page-item active\" aria-current=\"page\"><span\n                                    class=\"page-link\">1<\/span><\/li>\n                                                                                                <li class=\"page-item\"><a class=\"page-link\"\n                                    href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&amp;workId=3837&amp;page=2\">2<\/a><\/li>\n                                                                                                <li class=\"page-item\"><a class=\"page-link\"\n                                    href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&amp;workId=3837&amp;page=3\">3<\/a><\/li>\n                                                                        \n            \n                            <li class=\"page-item\">\n                    <a class=\"page-link\" href=\"https:\/\/data.theatronomics.com\/api\/pairings?perPage=10&amp;workId=3837&amp;page=2\" rel=\"next\"\n                        aria-label=\"Next &raquo;\">&rsaquo;<\/a>\n                <\/li>\n                    <\/ul>\n    <\/div>\n    <\/nav>\n\n        <div class=\"row\">\n            <div class=\"col p-0\">\n                <a href=\"\/api\/filters\/plays\/export\/?from=1732&amp;to=1809&amp;works[]=3837\" class=\"btn btn-primary download-plays-csv float-end\"\n                    style=\"background:#F26522; color: white !important;\">Download Export<\/a>\n            <\/div>\n        <\/div>\n\n    <\/div>\n<\/div>\n\n<div class=\"performances-receipts-graphs container mt-4\">\n    <!-- Include Chart.js -->\n\n<!-- Canvas for the chart -->\n<div class=\"chart-container\" style=\"position: relative; height:500px; width:100%\">\n    <canvas id=\"receiptsChart\"><\/canvas>\n<\/div>\n\n<script>\n\nfunction bootLineGraph(graphableReceiptsData) {\n    \/\/ Use passed data if available, otherwise fall back to page data\n    const graphable_receipts = graphableReceiptsData || {\"1807-1808\":{\"Drury Lane\":{\"formatted\":\"\\u00a36,191 13s 6d\",\"graphable\":6191.68}},\"1808-1809\":{\"Drury Lane\":{\"formatted\":\"\\u00a3872 4s 6d\",\"graphable\":872.23}}};\n    \n    \/\/ Destroy existing chart if it exists\n    if (receiptsChart) {\n        receiptsChart.destroy();\n        receiptsChart = null;\n    }\n    \n    \/\/ If no data, return early\n    if (!graphable_receipts || Object.keys(graphable_receipts).length === 0) {\n        return;\n    }\n    \n    console.log(graphable_receipts);\n\n    \/\/ Prepare data structures for the chart\n    const years = Object.keys(graphable_receipts);\n    const theaters = new Set();\n    const theaterTotals = {};\n\n    \/\/ First pass: collect all theaters and calculate total flow per theater\n    years.forEach(year => {\n        Object.keys(graphable_receipts[year]).forEach(theater => {\n            theaters.add(theater);\n            if (!theaterTotals[theater]) {\n                theaterTotals[theater] = 0;\n            }\n            theaterTotals[theater] += graphable_receipts[year][theater].graphable;\n        });\n    });\n\n    \/\/ Sort theaters by total flow value (descending)\n    const sortedTheaters = Array.from(theaters).sort((a, b) => {\n        return theaterTotals[b] - theaterTotals[a];\n    });\n\n    \/\/ Prepare datasets for Chart.js\n    const datasets = [];\n    const colorPalette = [\n        'rgba(255, 99, 132, 0.7)',\n        'rgba(54, 162, 235, 0.7)',\n        'rgba(255, 206, 86, 0.7)',\n        'rgba(75, 192, 192, 0.7)',\n        'rgba(153, 102, 255, 0.7)',\n        'rgba(255, 159, 64, 0.7)'\n    ];\n\n    \/\/ Create a dataset for each theater in order of total flow\n    sortedTheaters.forEach((theater, index) => {\n        const data = years.map(year => {\n            if (graphable_receipts[year][theater]) {\n                return graphable_receipts[year][theater].graphable;\n            }\n            return 0;\n        });\n\n        datasets.push({\n            label: theater,\n            data: data,\n            backgroundColor: colorPalette[index % colorPalette.length],\n            borderColor: colorPalette[index % colorPalette.length].replace('0.7', '1.0'),\n            borderWidth: 1\n        });\n    });\n\n    \/\/ Create and render the chart\n    const ctx = document.getElementById('receiptsChart').getContext('2d');\n    receiptsChart = new Chart(ctx, {\n        type: 'bar',\n        data: {\n            labels: years,\n            datasets: datasets\n        },\n        options: {\n            responsive: true,\n            maintainAspectRatio: false,\n            plugins: {\n                title: {\n                    display: true,\n                    text: 'Theatre Receipts by Season'\n                },\n                tooltip: {\n                    callbacks: {\n                        label: function(context) {\n                            const year = context.label;\n                            const theater = context.dataset.label;\n                            const value = context.raw;\n\n                            if (value > 0 && graphable_receipts[year][theater]) {\n                                return `${theater}: ${graphable_receipts[year][theater].formatted}`;\n                            }\n                            return `${theater}: \u00a30`;\n                        }\n                    }\n                },\n                legend: {\n                    display: true,\n                    position: 'top',\n                }\n            },\n            scales: {\n                x: {\n                    title: {\n                        display: true,\n                        text: 'Season'\n                    },\n                    stacked: true\n                },\n                y: {\n                    title: {\n                        display: true,\n                        text: 'Receipts (\u00a3)'\n                    },\n                    stacked: true,\n                    beginAtZero: true\n                }\n            }\n        }\n    });\n\n    \/\/ Function to update chart based on year range\n    window.updateChart = function(startYear, endYear) {\n        \/\/ Filter years based on range\n        const filteredYears = years.filter(year => {\n            return year >= startYear && year <= endYear;\n        });\n\n        \/\/ Update each dataset with filtered data\n        datasets.forEach(dataset => {\n            const theater = dataset.label;\n            dataset.data = filteredYears.map(year => {\n                if (graphable_receipts[year][theater]) {\n                    return graphable_receipts[year][theater].graphable;\n                }\n                return 0;\n            });\n        });\n\n        \/\/ Update chart labels and redraw\n        receiptsChart.data.labels = filteredYears;\n        receiptsChart.update();\n    };\n}\n\ndocument.addEventListener('DOMContentLoaded', function() {\n    bootLineGraph({\"1807-1808\":{\"Drury Lane\":{\"formatted\":\"\\u00a36,191 13s 6d\",\"graphable\":6191.68}},\"1808-1809\":{\"Drury Lane\":{\"formatted\":\"\\u00a3872 4s 6d\",\"graphable\":872.23}}});\n});\n<\/script>\n<\/div>\n","total_work_receipts":"\u00a37,063 18s","export_link":"\/api\/filters\/plays\/export\/?from=1732&to=1809&works[]=3837","graphable_receipts":{"1807-1808":{"Drury Lane":{"formatted":"\u00a36,191 13s 6d","graphable":6191.68}},"1808-1809":{"Drury Lane":{"formatted":"\u00a3872 4s 6d","graphable":872.23}}},"notes":null,"date_range_receipts_ratio":100,"from_year":1732,"to_year":1809,"date_ranged_total_work_receipts":"\u00a37,063 18s","date_ranged_covent_garden_revenue":"\u00a30","date_ranged_drury_lane_revenue":"\u00a37,063 18s","date_ranged_covent_garden_ratio":0,"date_ranged_drury_lane_ratio":100,"covent_garden_ratio":0,"drury_lane_ratio":100,"covent_garden_revenue":"\u00a30","drury_lane_revenue":"\u00a37,063 18s","work_year":"1808","activity_people":[{"activity_full":{"id":5,"label":"Author","slug":"author","created_at":"2022-11-02T00:33:17.000000Z","updated_at":"2024-12-17T11:10:03.000000Z","description":"AKA \u2018playwright\u2019 or \u2018poet\u2019. A writer of plays (mainpieces or afterpieces). Most were free agents, although a small number held quasi-formal positions vis-\u00e0-vis a certain theatre, or received some form of regular remuneration in exchange for a ready supply of plays."},"activity":"Author","person":"James Kenney","person_id":16713,"start_date":null,"start_date_year":null}],"pairings":{"performances":[{"event_date":"18080422","id":72259,"event_id":28214,"work_id":3838,"title_clean":"Caractacus","count":10,"genre_colour":"#9900ff","genre":"Ballet","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":20,"filtered_performances_for_work":10,"work":{"id":3838,"lsdb_id":null,"title":"Caractacus: A Grand Ballet of Action","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1808","notes":null,"created_at":"2023-10-12T15:08:55.000000Z","updated_at":"2024-04-29T16:33:41.000000Z","deleted_at":null,"genre_id":17,"performance_medium":"Dance","date_type":"Performed","genre":{"id":17,"label":"Ballet","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-10-30T16:22:41.000000Z","updated_at":"2023-10-30T16:22:41.000000Z"}}},{"event_date":"18080405","id":72245,"event_id":28195,"work_id":3971,"title_clean":"Ella Rosenberg","count":4,"genre_colour":"#9900ff","genre":"Melodrama","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":47,"filtered_performances_for_work":4,"work":{"id":3971,"lsdb_id":null,"title":"Ella Rosenberg","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1807","notes":null,"created_at":"2024-12-05T09:33:35.000000Z","updated_at":"2024-12-10T15:49:33.000000Z","deleted_at":null,"genre_id":7,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":7,"label":"Melodrama","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:11.000000Z","updated_at":"2023-06-22T10:31:11.000000Z"}}},{"event_date":"18080402","id":72241,"event_id":28192,"work_id":2664,"title_clean":"The Deserter","count":2,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":172,"filtered_performances_for_work":2,"work":{"id":2664,"lsdb_id":2664,"title":"The Deserter","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1773","notes":null,"created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2025-03-23T21:09:20.000000Z","deleted_at":null,"genre_id":4,"performance_medium":"Musical","date_type":"Performed","genre":{"id":4,"label":"Farce","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:43.000000Z","updated_at":"2023-06-22T10:30:43.000000Z"}}},{"event_date":"18080404","id":72243,"event_id":28193,"work_id":3840,"title_clean":"Tekeli","count":2,"genre_colour":"#9900ff","genre":"Melodrama","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":64,"filtered_performances_for_work":2,"work":{"id":3840,"lsdb_id":null,"title":"Tekeli; or, The Siege of Montgatz","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1806","notes":null,"created_at":"2023-10-12T15:34:16.000000Z","updated_at":"2024-04-29T15:46:41.000000Z","deleted_at":null,"genre_id":7,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":7,"label":"Melodrama","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:11.000000Z","updated_at":"2023-06-22T10:31:11.000000Z"}}},{"event_date":"18080407","id":72247,"event_id":28199,"work_id":493,"title_clean":"The Mayor of Garratt","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":92,"filtered_performances_for_work":2,"work":{"id":493,"lsdb_id":493,"title":"The Mayor of Garratt","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1763","notes":null,"created_at":"2022-11-01T23:59:15.000000Z","updated_at":"2023-11-06T11:56:09.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":2,"label":"Comedy","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:16.000000Z","updated_at":"2023-06-22T10:30:16.000000Z"}}},{"event_date":"18080409","id":72249,"event_id":28201,"work_id":3119,"title_clean":"Ways and Means","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":7,"filtered_performances_for_work":1,"work":{"id":3119,"lsdb_id":3119,"title":"Ways and Means; or A Trip to Dover","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1788","notes":null,"created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2024-08-13T13:06:10.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":2,"label":"Comedy","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:16.000000Z","updated_at":"2023-06-22T10:30:16.000000Z"}}},{"event_date":"18080421","id":72257,"event_id":28211,"work_id":2717,"title_clean":"Three Weeks After Marriage","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":116,"filtered_performances_for_work":1,"work":{"id":2717,"lsdb_id":2717,"title":"Three Weeks After Marriage","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1764","notes":null,"created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2023-12-19T14:41:26.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":2,"label":"Comedy","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:16.000000Z","updated_at":"2023-06-22T10:30:16.000000Z"}}},{"event_date":"18080430","id":72273,"event_id":28225,"work_id":3179,"title_clean":"No Song No Supper","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":164,"filtered_performances_for_work":1,"work":{"id":3179,"lsdb_id":3179,"title":"No Song No Supper","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1790","notes":null,"created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2024-12-16T13:08:15.000000Z","deleted_at":null,"genre_id":4,"performance_medium":"Musical","date_type":"Performed","genre":{"id":4,"label":"Farce","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:43.000000Z","updated_at":"2023-06-22T10:30:43.000000Z"}}},{"event_date":"18081029","id":72478,"event_id":29012,"work_id":3453,"title_clean":"Blue Beard","count":1,"genre_colour":"#9900ff","genre":"Romance","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":197,"filtered_performances_for_work":1,"work":{"id":3453,"lsdb_id":3453,"title":"Blue Beard; or, Female Curiosity!","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1798","notes":null,"created_at":"2022-11-01T23:59:21.000000Z","updated_at":"2023-10-11T16:37:22.000000Z","deleted_at":null,"genre_id":11,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":11,"label":"Romance","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:51.000000Z","updated_at":"2023-06-22T10:31:51.000000Z"}}},{"event_date":"18081209","id":72556,"event_id":29029,"work_id":1331,"title_clean":"Anatomist","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Comedy","source_genre_colour":"#0048ff","total_performances_for_work":268,"filtered_performances_for_work":1,"work":{"id":1331,"lsdb_id":1331,"title":"The Anatomist; or, The Sham Doctor","title_variant":null,"type_1":"afterpiece","type_2":"mainpiece","source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1696","notes":"The original mainpiece was performed first in 1696 and after being performed at Lincoln's Inn Fields for some years, it came to Covent Garden. The farce was shortened to an afterpiece in 1743; based on No\u00ebl le Breton de Hauteroche's 'Crispin m\u00e9decin' (1680),","created_at":"2022-11-01T23:59:17.000000Z","updated_at":"2025-03-05T14:11:28.000000Z","deleted_at":null,"genre_id":4,"performance_medium":"Spoken Drama","date_type":"Performed","genre":{"id":4,"label":"Farce","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:30:43.000000Z","updated_at":"2023-06-22T10:30:43.000000Z"}}}],"total_performances":26,"covent_garden_performances":0,"drury_lane_performances":26,"date_ranged_total_performances":26,"date_ranged_covent_garden_performances":0,"date_ranged_drury_lane_performances":26,"from_year":1732,"to_year":1809},"performance_name":"Unknown Performance","theatres":[1,2],"this_genre_colour":"#0048ff","date_type":"Performed"}