{"performances":{"performances":[{"event_date":"17960517","id":61208,"event_id":24191,"work_id":335,"title_clean":"Alive and Merry","count":4,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":5,"filtered_performances_for_work":4,"work":{"id":335,"lsdb_id":335,"title":"Alive and Merry","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1796","notes":null,"created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2023-10-30T16:43:23.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"}}},{"event_date":"17960611","id":61352,"event_id":24232,"work_id":2834,"title_clean":"The Deaf Lover","count":2,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":87,"filtered_performances_for_work":2,"work":{"id":2834,"lsdb_id":2834,"title":"The Deaf Lover","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1780","notes":"Altered from Pilon's The Device (1779)","created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2023-10-11T17:29:29.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"}}},{"event_date":"17960430","id":61128,"event_id":24165,"work_id":2738,"title_clean":"All the Worlds a Stage","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":95,"filtered_performances_for_work":1,"work":{"id":2738,"lsdb_id":2738,"title":"All the World's a Stage","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1777","notes":null,"created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2023-10-12T07:58:42.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"}}},{"event_date":"17960504","id":61146,"event_id":24171,"work_id":31,"title_clean":"The Citizen","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":251,"filtered_performances_for_work":1,"work":{"id":31,"lsdb_id":31,"title":"The Citizen","title_variant":null,"type_1":"afterpiece","type_2":"mainpiece","source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1761","notes":"Published 1763.","created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2025-03-06T07:41:58.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"}}},{"event_date":"17960507","id":61164,"event_id":24177,"work_id":3176,"title_clean":"The Spoiled Child","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":117,"filtered_performances_for_work":1,"work":{"id":3176,"lsdb_id":3176,"title":"The Spoiled Child","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1792","notes":null,"created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2023-10-09T09:51:44.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"}}},{"event_date":"17960509","id":61169,"event_id":24179,"work_id":3294,"title_clean":"My Grandmother","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":81,"filtered_performances_for_work":1,"work":{"id":3294,"lsdb_id":3294,"title":"My Grandmother","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1794","notes":"Based on Louis Anseaume's Le Tableau Parlant.","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":"17960510","id":61175,"event_id":24181,"work_id":3327,"title_clean":"The Wedding Day","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":68,"filtered_performances_for_work":1,"work":{"id":3327,"lsdb_id":3327,"title":"The Wedding Day","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1794","notes":null,"created_at":"2022-11-01T23:59:21.000000Z","updated_at":"2024-09-25T10:54:44.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":"17960525","id":61256,"event_id":24205,"work_id":4300,"title_clean":"A Dramatic Cento","count":1,"genre_colour":"#9900ff","genre":"Unknown","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":1,"filtered_performances_for_work":1,"work":{"id":4300,"lsdb_id":null,"title":"A Dramatic Cento","title_variant":null,"type_1":null,"type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":null,"notes":null,"created_at":"2025-04-30T11:19:07.000000Z","updated_at":"2025-04-30T11:19:07.000000Z","deleted_at":null,"genre_id":null,"performance_medium":null,"date_type":null,"genre":null}},{"event_date":"17960525","id":61257,"event_id":24205,"work_id":295,"title_clean":"The Sultan","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":107,"filtered_performances_for_work":1,"work":{"id":295,"lsdb_id":295,"title":"The Sultan; or A Peep into the Seraglio","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1775","notes":null,"created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2025-06-17T13:27:12.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":"17960525","id":61258,"event_id":24205,"work_id":5339,"title_clean":"Little Peggy's Love","count":1,"genre_colour":"#9900ff","genre":"Unknown","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":6,"filtered_performances_for_work":1,"work":{"id":5339,"lsdb_id":null,"title":"Little Peggy's Love","title_variant":null,"type_1":null,"type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":null,"notes":null,"created_at":"2025-05-01T13:02:44.000000Z","updated_at":"2025-05-06T12:46:12.000000Z","deleted_at":null,"genre_id":null,"performance_medium":"Dance","date_type":null,"genre":null}}],"total_performances":15,"covent_garden_performances":0,"drury_lane_performances":15,"date_ranged_total_performances":15,"date_ranged_covent_garden_performances":0,"date_ranged_drury_lane_performances":15,"from_year":1732,"to_year":1809},"genre_colour":"#ff9900","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\/1796-04-30?theatre=DL\">30 Apr 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud Or The Prince Of Persia\">Mahmoud Or The Prince Of Persia<\/a>, <a target=\"_blank\" href=\"\/plays\/2738\" title=\"More info on All the Worlds a Stage\">All the Worlds a Stage<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3297 14s<\/td>\n                        <td>58%<\/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\/1796-05-04?theatre=DL\">04 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/31\" title=\"More info on The Citizen\">The Citizen<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3315 4s<\/td>\n                        <td>62%<\/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\/1796-05-07?theatre=DL\">07 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/3176\" title=\"More info on The Spoiled Child\">The Spoiled Child<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3298 6s<\/td>\n                        <td>71%<\/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\/1796-05-09?theatre=DL\">09 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/3294\" title=\"More info on My Grandmother\">My Grandmother<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            <a href=\"https:\/\/data.theatronomics.com\/this-day\/1796-05-09?theatre=DL\">Yes<\/a>\n                                                    <\/td>\n                        <td>\u00a3402 7s<\/td>\n                        <td>63%<\/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\/1796-05-10?theatre=DL\">10 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/3327\" title=\"More info on The Wedding Day\">The Wedding Day<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3227 14s 6d<\/td>\n                        <td>59%<\/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\/1796-05-17?theatre=DL\">17 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/335\" title=\"More info on Alive and Merry\">Alive and Merry<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            <a href=\"https:\/\/data.theatronomics.com\/this-day\/1796-05-17?theatre=DL\">Yes<\/a>\n                                                    <\/td>\n                        <td>\u00a3403 13s 6d<\/td>\n                        <td>59%<\/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\/1796-05-19?theatre=DL\">19 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/335\" title=\"More info on Alive and Merry\">Alive and Merry<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3226 17s 6d<\/td>\n                        <td>62%<\/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\/1796-05-25?theatre=DL\">25 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/4300\" title=\"More info on A Dramatic Cento\">A Dramatic Cento<\/a>, <a target=\"_blank\" href=\"\/plays\/295\" title=\"More info on The Sultan\">The Sultan<\/a>, <a target=\"_blank\" href=\"\/plays\/5339\" title=\"More info on Little Peggy's Love\">Little Peggy's Love<\/a>, <a target=\"_blank\" href=\"\/plays\/4497\" title=\"More info on Harmony, Harmony\">Harmony, Harmony<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            <a href=\"https:\/\/data.theatronomics.com\/this-day\/1796-05-25?theatre=DL\">Yes<\/a>\n                                                    <\/td>\n                        <td>\u00a3657 12s<\/td>\n                        <td>61%<\/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\/1796-05-28?theatre=DL\">28 May 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/335\" title=\"More info on Alive and Merry\">Alive and Merry<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            <a href=\"https:\/\/data.theatronomics.com\/this-day\/1796-05-28?theatre=DL\">Yes<\/a>\n                                                    <\/td>\n                        <td>\u00a3198 15s<\/td>\n                        <td>61%<\/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\/1796-06-01?theatre=DL\">01 Jun 1796<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/3395\" title=\"More info on Mahmoud\">Mahmoud<\/a>, <a target=\"_blank\" href=\"\/plays\/68\" title=\"More info on The Padlock\">The Padlock<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            <a href=\"https:\/\/data.theatronomics.com\/this-day\/1796-06-01?theatre=DL\">Yes<\/a>\n                                                    <\/td>\n                        <td>\u00a3326 19s 6d<\/td>\n                        <td>65%<\/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=3395&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\">15<\/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=3395&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=3395&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=3395&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=3395&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=3395&amp;page=2\">2<\/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=3395&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[]=3395\" 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 || {\"1795-1796\":{\"Drury Lane\":{\"formatted\":\"\\u00a33,143 16s 6d\",\"graphable\":3143.83}}};\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({\"1795-1796\":{\"Drury Lane\":{\"formatted\":\"\\u00a33,143 16s 6d\",\"graphable\":3143.83}}});\n});\n<\/script>\n<\/div>\n","total_work_receipts":"\u00a33,143 16s 6d","export_link":"\/api\/filters\/plays\/export\/?from=1732&to=1809&works[]=3395","graphable_receipts":{"1795-1796":{"Drury Lane":{"formatted":"\u00a33,143 16s 6d","graphable":3143.83}}},"notes":null,"date_range_receipts_ratio":100,"from_year":1732,"to_year":1809,"date_ranged_total_work_receipts":"\u00a33,143 16s 6d","date_ranged_covent_garden_revenue":"\u00a30","date_ranged_drury_lane_revenue":"\u00a33,143 16s 6d","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":"\u00a33,143 16s 6d","work_year":"1796","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":"Prince Hoare","person_id":658,"start_date":null,"start_date_year":null},{"activity_full":{"id":17,"label":"Composer","slug":"composer","created_at":"2022-11-02T00:33:17.000000Z","updated_at":"2024-12-17T11:07:15.000000Z","description":"A composer of music."},"activity":"Composer","person":"Stephen John Seymour Storace","person_id":812,"start_date":null,"start_date_year":null},{"activity_full":{"id":17,"label":"Composer","slug":"composer","created_at":"2022-11-02T00:33:17.000000Z","updated_at":"2024-12-17T11:07:15.000000Z","description":"A composer of music."},"activity":"Composer","person":"Michael Kelly","person_id":816,"start_date":null,"start_date_year":null}],"pairings":{"performances":[{"event_date":"17960517","id":61208,"event_id":24191,"work_id":335,"title_clean":"Alive and Merry","count":4,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":5,"filtered_performances_for_work":4,"work":{"id":335,"lsdb_id":335,"title":"Alive and Merry","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1796","notes":null,"created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2023-10-30T16:43:23.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"}}},{"event_date":"17960611","id":61352,"event_id":24232,"work_id":2834,"title_clean":"The Deaf Lover","count":2,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":87,"filtered_performances_for_work":2,"work":{"id":2834,"lsdb_id":2834,"title":"The Deaf Lover","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1780","notes":"Altered from Pilon's The Device (1779)","created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2023-10-11T17:29:29.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"}}},{"event_date":"17960430","id":61128,"event_id":24165,"work_id":2738,"title_clean":"All the Worlds a Stage","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":95,"filtered_performances_for_work":1,"work":{"id":2738,"lsdb_id":2738,"title":"All the World's a Stage","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1777","notes":null,"created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2023-10-12T07:58:42.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"}}},{"event_date":"17960504","id":61146,"event_id":24171,"work_id":31,"title_clean":"The Citizen","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":251,"filtered_performances_for_work":1,"work":{"id":31,"lsdb_id":31,"title":"The Citizen","title_variant":null,"type_1":"afterpiece","type_2":"mainpiece","source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1761","notes":"Published 1763.","created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2025-03-06T07:41:58.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"}}},{"event_date":"17960507","id":61164,"event_id":24177,"work_id":3176,"title_clean":"The Spoiled Child","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":117,"filtered_performances_for_work":1,"work":{"id":3176,"lsdb_id":3176,"title":"The Spoiled Child","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1792","notes":null,"created_at":"2022-11-01T23:59:20.000000Z","updated_at":"2023-10-09T09:51:44.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"}}},{"event_date":"17960509","id":61169,"event_id":24179,"work_id":3294,"title_clean":"My Grandmother","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":81,"filtered_performances_for_work":1,"work":{"id":3294,"lsdb_id":3294,"title":"My Grandmother","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1794","notes":"Based on Louis Anseaume's Le Tableau Parlant.","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":"17960510","id":61175,"event_id":24181,"work_id":3327,"title_clean":"The Wedding Day","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":68,"filtered_performances_for_work":1,"work":{"id":3327,"lsdb_id":3327,"title":"The Wedding Day","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1794","notes":null,"created_at":"2022-11-01T23:59:21.000000Z","updated_at":"2024-09-25T10:54:44.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":"17960525","id":61256,"event_id":24205,"work_id":4300,"title_clean":"A Dramatic Cento","count":1,"genre_colour":"#9900ff","genre":"Unknown","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":1,"filtered_performances_for_work":1,"work":{"id":4300,"lsdb_id":null,"title":"A Dramatic Cento","title_variant":null,"type_1":null,"type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":null,"notes":null,"created_at":"2025-04-30T11:19:07.000000Z","updated_at":"2025-04-30T11:19:07.000000Z","deleted_at":null,"genre_id":null,"performance_medium":null,"date_type":null,"genre":null}},{"event_date":"17960525","id":61257,"event_id":24205,"work_id":295,"title_clean":"The Sultan","count":1,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":107,"filtered_performances_for_work":1,"work":{"id":295,"lsdb_id":295,"title":"The Sultan; or A Peep into the Seraglio","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1775","notes":null,"created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2025-06-17T13:27:12.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":"17960525","id":61258,"event_id":24205,"work_id":5339,"title_clean":"Little Peggy's Love","count":1,"genre_colour":"#9900ff","genre":"Unknown","source_genre":"Drama\/entertainment","source_genre_colour":"#ff9900","total_performances_for_work":6,"filtered_performances_for_work":1,"work":{"id":5339,"lsdb_id":null,"title":"Little Peggy's Love","title_variant":null,"type_1":null,"type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":null,"notes":null,"created_at":"2025-05-01T13:02:44.000000Z","updated_at":"2025-05-06T12:46:12.000000Z","deleted_at":null,"genre_id":null,"performance_medium":"Dance","date_type":null,"genre":null}}],"total_performances":15,"covent_garden_performances":0,"drury_lane_performances":15,"date_ranged_total_performances":15,"date_ranged_covent_garden_performances":0,"date_ranged_drury_lane_performances":15,"from_year":1732,"to_year":1809},"performance_name":"Unknown Performance","theatres":[1,2],"this_genre_colour":"#ff9900","date_type":"Performed"}