{"performances":{"performances":[{"event_date":"17751109","id":39704,"event_id":16044,"work_id":523,"title_clean":"May Day","count":4,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":21,"filtered_performances_for_work":4,"work":{"id":523,"lsdb_id":523,"title":"May Day; or, The Little Gipsy","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:15.000000Z","updated_at":"2024-12-16T13:08:14.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":"17751229","id":39923,"event_id":16129,"work_id":109,"title_clean":"The Jubilee","count":3,"genre_colour":"#ff9900","genre":"Drama\/entertainment","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":198,"filtered_performances_for_work":3,"work":{"id":109,"lsdb_id":109,"title":"The Jubilee","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1769","notes":null,"created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2024-12-16T13:08:14.000000Z","deleted_at":null,"genre_id":14,"performance_medium":"Musical","date_type":"Performed","genre":{"id":14,"label":"Drama\/entertainment","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:32:19.000000Z","updated_at":"2024-06-05T10:29:04.000000Z"}}},{"event_date":"17751024","id":39633,"event_id":16016,"work_id":2697,"title_clean":"Bon Ton","count":3,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":138,"filtered_performances_for_work":3,"work":{"id":2697,"lsdb_id":2697,"title":"Bon Ton; or High Life Above Stairs","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:19.000000Z","updated_at":"2023-10-09T09:50:55.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":"17751229","id":39922,"event_id":16129,"work_id":878,"title_clean":"The Merchant Of Venice","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":325,"filtered_performances_for_work":2,"work":{"id":878,"lsdb_id":878,"title":"The Merchant of Venice","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1600","notes":"Performed first 1596-98.","created_at":"2022-11-01T23:59:16.000000Z","updated_at":"2023-10-09T15:53:28.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Published","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":"17751024","id":39632,"event_id":16016,"work_id":540,"title_clean":"The Theatrical Candidates","count":2,"genre_colour":"#9900ff","genre":"Occasional","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":19,"filtered_performances_for_work":2,"work":{"id":540,"lsdb_id":540,"title":"The Theatrical Candidates","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:15.000000Z","updated_at":"2024-12-16T13:08:15.000000Z","deleted_at":null,"genre_id":8,"performance_medium":"Musical","date_type":"Performed","genre":{"id":8,"label":"Occasional","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:21.000000Z","updated_at":"2023-06-22T10:31:21.000000Z"}}},{"event_date":"17751109","id":39703,"event_id":16044,"work_id":2706,"title_clean":"Old City Manners","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":8,"filtered_performances_for_work":2,"work":{"id":2706,"lsdb_id":2706,"title":"Old City Manners","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":"Eastward Ho!","source_2":null,"first_performed_date":null,"publication_date":"1775","notes":"Adapted from Ben Jonson's 'Eastward Ho!' (1605).","created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2024-09-19T12:17:06.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":"17751110","id":39708,"event_id":16046,"work_id":1236,"title_clean":"Much Ado About Nothing","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":190,"filtered_performances_for_work":2,"work":{"id":1236,"lsdb_id":1236,"title":"Much Ado About Nothing","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1623","notes":null,"created_at":"2022-11-01T23:59:17.000000Z","updated_at":"2023-11-28T14:47:18.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Published","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":"17751116","id":39734,"event_id":16056,"work_id":2664,"title_clean":"The Deserter","count":2,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Unknown Genre","source_genre_colour":"green","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":"17760110","id":39970,"event_id":16149,"work_id":1688,"title_clean":"Measure For Measure","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":98,"filtered_performances_for_work":1,"work":{"id":1688,"lsdb_id":1688,"title":"Measure for Measure","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1604","notes":null,"created_at":"2022-11-01T23:59:17.000000Z","updated_at":"2024-10-28T20:28:32.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":"17751018","id":39603,"event_id":16006,"work_id":879,"title_clean":"As You Like It","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":288,"filtered_performances_for_work":1,"work":{"id":879,"lsdb_id":879,"title":"As You Like It","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1623","notes":null,"created_at":"2022-11-01T23:59:16.000000Z","updated_at":"2023-10-11T16:56:36.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Published","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"}}}],"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":"green","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\/1775-10-18?theatre=DL\">18 Oct 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/879\" title=\"More info on As You Like It\">As You Like It<\/a>, <a target=\"_blank\" href=\"\/plays\/2640\" title=\"More info on The Irish Widow\">The Irish Widow<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a>, <a target=\"_blank\" href=\"\/plays\/5319\" title=\"More info on The Irish Fair\">The Irish Fair<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            <a href=\"\/people?person=\">Yes<\/a>\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3260 12s<\/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\/1775-10-19?theatre=DL\">19 Oct 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/597\" title=\"More info on Othello\">Othello<\/a>, <a target=\"_blank\" href=\"\/plays\/2510\" title=\"More info on The Elopement\">The Elopement<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3114 19s 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\/1775-10-24?theatre=DL\">24 Oct 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/2500\" title=\"More info on The School For Lovers\">The School For Lovers<\/a>, <a target=\"_blank\" href=\"\/plays\/540\" title=\"More info on The Theatrical Candidates\">The Theatrical Candidates<\/a>, <a target=\"_blank\" href=\"\/plays\/2697\" title=\"More info on Bon Ton\">Bon Ton<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3155 7s 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\/1775-10-26?theatre=DL\">26 Oct 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/1944\" title=\"More info on The Provoked Husband\">The Provoked Husband<\/a>, <a target=\"_blank\" href=\"\/plays\/2697\" title=\"More info on Bon Ton\">Bon Ton<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            <a href=\"\/people?person=\">Yes<\/a>\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3200 19s<\/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\/1775-10-27?theatre=DL\">27 Oct 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/1409\" title=\"More info on The Way Of The World\">The Way Of The World<\/a>, <a target=\"_blank\" href=\"\/plays\/540\" title=\"More info on The Theatrical Candidates\">The Theatrical Candidates<\/a>, <a target=\"_blank\" href=\"\/plays\/2697\" title=\"More info on Bon Ton\">Bon Ton<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3159 9s 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\/1775-11-09?theatre=DL\">09 Nov 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/2706\" title=\"More info on Old City Manners\">Old City Manners<\/a>, <a target=\"_blank\" href=\"\/plays\/523\" title=\"More info on May Day\">May Day<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3189 8s<\/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\/1775-11-10?theatre=DL\">10 Nov 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/1236\" title=\"More info on Much Ado About Nothing\">Much Ado About Nothing<\/a>, <a target=\"_blank\" href=\"\/plays\/523\" title=\"More info on May Day\">May Day<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            <a href=\"\/people?person=\">Yes<\/a>\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3272 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\/1775-11-16?theatre=DL\">16 Nov 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/1236\" title=\"More info on Much Ado About Nothing\">Much Ado About Nothing<\/a>, <a target=\"_blank\" href=\"\/plays\/2664\" title=\"More info on The Deserter\">The Deserter<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3267 7s 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\/1775-11-21?theatre=DL\">21 Nov 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/1340\" title=\"More info on The Mourning Bride\">The Mourning Bride<\/a>, <a target=\"_blank\" href=\"\/plays\/523\" title=\"More info on May Day\">May Day<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3159 10s 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\/1775-11-23?theatre=DL\">23 Nov 1775<\/a><\/td>\n                        <td class=\"text-nowrap\">Drury Lane<\/td>\n                        <td><i><a target=\"_blank\" href=\"\/plays\/1446\" title=\"More info on She Would And She Would Not Or The Kind Imposter\">She Would And She Would Not Or The Kind Imposter<\/a>, <a target=\"_blank\" href=\"\/plays\/312\" title=\"More info on Queen Mab\">Queen Mab<\/a>, <a target=\"_blank\" href=\"\/plays\/5296\" title=\"More info on The Merry Peasants\">The Merry Peasants<\/a><\/i><\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\n                                                            No\n                                                    <\/td>\n                        <td>\u00a3107 11s<\/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=5296&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=5296&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=5296&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=5296&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=5296&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=5296&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=5296&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[]=5296\" 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 || {\"1775-1776\":{\"Drury Lane\":{\"formatted\":\"\\u00a32,824 2s 6d\",\"graphable\":2824.13}}};\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({\"1775-1776\":{\"Drury Lane\":{\"formatted\":\"\\u00a32,824 2s 6d\",\"graphable\":2824.13}}});\n});\n<\/script>\n<\/div>\n","total_work_receipts":"\u00a32,824 2s 6d","export_link":"\/api\/filters\/plays\/export\/?from=1732&to=1809&works[]=5296","graphable_receipts":{"1775-1776":{"Drury Lane":{"formatted":"\u00a32,824 2s 6d","graphable":2824.13}}},"notes":null,"date_range_receipts_ratio":100,"from_year":1732,"to_year":1809,"date_ranged_total_work_receipts":"\u00a32,824 2s 6d","date_ranged_covent_garden_revenue":"\u00a30","date_ranged_drury_lane_revenue":"\u00a32,824 2s 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":"\u00a32,824 2s 6d","work_year":null,"activity_people":[],"pairings":{"performances":[{"event_date":"17751109","id":39704,"event_id":16044,"work_id":523,"title_clean":"May Day","count":4,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":21,"filtered_performances_for_work":4,"work":{"id":523,"lsdb_id":523,"title":"May Day; or, The Little Gipsy","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:15.000000Z","updated_at":"2024-12-16T13:08:14.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":"17751229","id":39923,"event_id":16129,"work_id":109,"title_clean":"The Jubilee","count":3,"genre_colour":"#ff9900","genre":"Drama\/entertainment","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":198,"filtered_performances_for_work":3,"work":{"id":109,"lsdb_id":109,"title":"The Jubilee","title_variant":null,"type_1":"afterpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1769","notes":null,"created_at":"2022-11-01T23:59:14.000000Z","updated_at":"2024-12-16T13:08:14.000000Z","deleted_at":null,"genre_id":14,"performance_medium":"Musical","date_type":"Performed","genre":{"id":14,"label":"Drama\/entertainment","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:32:19.000000Z","updated_at":"2024-06-05T10:29:04.000000Z"}}},{"event_date":"17751024","id":39633,"event_id":16016,"work_id":2697,"title_clean":"Bon Ton","count":3,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":138,"filtered_performances_for_work":3,"work":{"id":2697,"lsdb_id":2697,"title":"Bon Ton; or High Life Above Stairs","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:19.000000Z","updated_at":"2023-10-09T09:50:55.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":"17751229","id":39922,"event_id":16129,"work_id":878,"title_clean":"The Merchant Of Venice","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":325,"filtered_performances_for_work":2,"work":{"id":878,"lsdb_id":878,"title":"The Merchant of Venice","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1600","notes":"Performed first 1596-98.","created_at":"2022-11-01T23:59:16.000000Z","updated_at":"2023-10-09T15:53:28.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Published","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":"17751024","id":39632,"event_id":16016,"work_id":540,"title_clean":"The Theatrical Candidates","count":2,"genre_colour":"#9900ff","genre":"Occasional","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":19,"filtered_performances_for_work":2,"work":{"id":540,"lsdb_id":540,"title":"The Theatrical Candidates","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:15.000000Z","updated_at":"2024-12-16T13:08:15.000000Z","deleted_at":null,"genre_id":8,"performance_medium":"Musical","date_type":"Performed","genre":{"id":8,"label":"Occasional","description":null,"lod_type":null,"lod_uri":null,"created_at":"2023-06-22T10:31:21.000000Z","updated_at":"2023-06-22T10:31:21.000000Z"}}},{"event_date":"17751109","id":39703,"event_id":16044,"work_id":2706,"title_clean":"Old City Manners","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":8,"filtered_performances_for_work":2,"work":{"id":2706,"lsdb_id":2706,"title":"Old City Manners","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":"Eastward Ho!","source_2":null,"first_performed_date":null,"publication_date":"1775","notes":"Adapted from Ben Jonson's 'Eastward Ho!' (1605).","created_at":"2022-11-01T23:59:19.000000Z","updated_at":"2024-09-19T12:17:06.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":"17751110","id":39708,"event_id":16046,"work_id":1236,"title_clean":"Much Ado About Nothing","count":2,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":190,"filtered_performances_for_work":2,"work":{"id":1236,"lsdb_id":1236,"title":"Much Ado About Nothing","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1623","notes":null,"created_at":"2022-11-01T23:59:17.000000Z","updated_at":"2023-11-28T14:47:18.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Published","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":"17751116","id":39734,"event_id":16056,"work_id":2664,"title_clean":"The Deserter","count":2,"genre_colour":"#00d5ff","genre":"Farce","source_genre":"Unknown Genre","source_genre_colour":"green","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":"17760110","id":39970,"event_id":16149,"work_id":1688,"title_clean":"Measure For Measure","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":98,"filtered_performances_for_work":1,"work":{"id":1688,"lsdb_id":1688,"title":"Measure for Measure","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1604","notes":null,"created_at":"2022-11-01T23:59:17.000000Z","updated_at":"2024-10-28T20:28:32.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":"17751018","id":39603,"event_id":16006,"work_id":879,"title_clean":"As You Like It","count":1,"genre_colour":"#0048ff","genre":"Comedy","source_genre":"Unknown Genre","source_genre_colour":"green","total_performances_for_work":288,"filtered_performances_for_work":1,"work":{"id":879,"lsdb_id":879,"title":"As You Like It","title_variant":null,"type_1":"mainpiece","type_2":null,"source_1":null,"source_2":null,"first_performed_date":null,"publication_date":"1623","notes":null,"created_at":"2022-11-01T23:59:16.000000Z","updated_at":"2023-10-11T16:56:36.000000Z","deleted_at":null,"genre_id":2,"performance_medium":"Spoken Drama","date_type":"Published","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"}}}],"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":"green","date_type":null}