src/lib/components/molecules/column-chart/column-chart-example.js (494 lines of code) (raw):
const example = {
sop: {
numResults: "230",
numCouncils: "230",
parties: [
{
paId: 534,
name: "Conservative",
abbreviation: "Con",
totalCouncils: 33,
changeInControl: -48,
seatsWon: 2295,
netChangeInSeats: -958,
heldCouncils: [
"Basildon",
"Blaby",
"Braintree",
"Breckland",
"Broxbourne",
"Dartford",
"Dudley",
"East Cambridgeshire",
"Epping Forest",
"Fenland",
"Fylde",
"Harlow",
"Havant",
"New Forest",
"North East Lincolnshire",
"North Kesteven",
"North Lincolnshire",
"Redditch",
"Reigate & Banstead",
"Rushcliffe",
"Rushmoor",
"Sevenoaks",
"Solihull",
"South Holland",
"South Norfolk",
"South Staffordshire",
"Test Valley",
"Thurrock",
"Walsall",
"Wychavon",
"Wyre",
],
lostCouncils: [
"Amber Valley",
"Bracknell Forest",
"Brentwood",
"Broadland",
"Bromsgrove",
"Cannock Chase",
"Central Bedfordshire",
"Charnwood",
"Cherwell",
"Dacorum",
"Dover",
"East Hampshire",
"East Hertfordshire",
"East Lindsey",
"East Riding of Yorkshire",
"East Staffordshire",
"East Suffolk",
"Erewash",
"Great Yarmouth",
"Harborough",
"Hertsmere",
"Horsham",
"King's Lynn & West Norfolk",
"Lichfield",
"Maidstone",
"Medway",
"Melton",
"Mid Sussex",
"Newark & Sherwood",
"North Warwickshire",
"North West Leicestershire",
"Pendle",
"Ribble Valley",
"Rugby",
"Runnymede",
"South Gloucestershire",
"South Hams",
"South Kesteven",
"Staffordshire Moorlands",
"Stratford-on-Avon",
"Swindon",
"Tamworth",
"Tewkesbury",
"Tonbridge & Malling",
"Wealden",
"Welwyn Hatfield",
"West Berkshire",
"West Devon",
"West Suffolk",
"Windsor & Maidenhead Royal",
],
gainedCouncils: ["Torbay", "Wyre Forest"],
totalGainedCouncils: 2,
totalLostCouncils: 50,
totalHeldCouncils: 31,
},
{
paId: 537,
name: "Labour",
abbreviation: "Lab",
totalCouncils: 71,
changeInControl: 22,
seatsWon: 2675,
netChangeInSeats: 643,
heldCouncils: [
"Barnsley",
"Bassetlaw",
"Blackburn with Darwen",
"Bolsover",
"Bradford",
"Bury",
"Calderdale",
"Cambridge",
"Chesterfield",
"Chorley",
"Coventry",
"Crawley",
"Exeter",
"Gateshead",
"Gedling",
"Halton",
"Ipswich",
"Kirklees",
"Knowsley",
"Leeds",
"Leicester",
"Lincoln",
"Liverpool",
"Luton",
"Manchester",
"Newcastle-upon-Tyne",
"North Tyneside",
"Norwich",
"Nottingham",
"Oldham",
"Preston",
"Reading",
"Rochdale",
"Rossendale",
"Salford",
"Sandwell",
"Sefton",
"South Tyneside",
"Southampton",
"Stevenage",
"Sunderland",
"Tameside",
"Telford & Wrekin",
"Trafford",
"Wakefield",
"Wigan",
"Wolverhampton",
"Worthing",
],
lostCouncils: ["Slough"],
gainedCouncils: [
"Amber Valley",
"Blackpool",
"Bracknell Forest",
"Brighton & Hove",
"Broxtowe",
"Cheshire West & Chester",
"Dover",
"East Staffordshire",
"Erewash",
"Gravesham",
"High Peak",
"Mansfield",
"Medway",
"Middlesbrough",
"North East Derbyshire",
"Plymouth",
"South Derbyshire",
"South Ribble",
"Stoke-on-Trent",
"Swindon",
"Thanet",
"West Lancashire",
"York",
],
totalGainedCouncils: 23,
totalLostCouncils: 1,
totalHeldCouncils: 48,
},
{
paId: 539,
name: "Liberal Democrat",
abbreviation: "Lib Dem",
totalCouncils: 29,
changeInControl: 12,
seatsWon: 1628,
netChangeInSeats: 415,
heldCouncils: [
"Bath & North East Somerset",
"Chelmsford",
"Cotswold",
"Eastbourne",
"Eastleigh",
"Hinckley & Bosworth",
"Kingston-upon-Hull",
"Mole Valley",
"North Devon",
"North Norfolk",
"Oadby & Wigston",
"St Albans",
"Three Rivers",
"Vale of White Horse",
"Watford",
"Winchester",
"Woking",
],
lostCouncils: [],
gainedCouncils: [
"Chichester",
"Dacorum",
"Guildford",
"Horsham",
"Mid Devon",
"South Hams",
"South Oxfordshire",
"Stratford-on-Avon",
"Surrey Heath",
"Teignbridge",
"West Berkshire",
"Windsor & Maidenhead Royal",
],
totalGainedCouncils: 12,
totalLostCouncils: 0,
totalHeldCouncils: 17,
},
{
paId: 535,
name: "Green Party",
abbreviation: "Green",
totalCouncils: 1,
changeInControl: 1,
seatsWon: 482,
netChangeInSeats: 201,
heldCouncils: [],
lostCouncils: [],
gainedCouncils: ["Mid Suffolk"],
totalGainedCouncils: 1,
totalLostCouncils: 0,
totalHeldCouncils: 0,
},
{
paId: 542,
name: "UK Independence Party",
abbreviation: "UKIP",
totalCouncils: 0,
changeInControl: 0,
seatsWon: 0,
netChangeInSeats: -6,
heldCouncils: [],
lostCouncils: [],
gainedCouncils: [],
totalGainedCouncils: 0,
totalLostCouncils: 0,
totalHeldCouncils: 0,
},
{
paId: 536,
name: "Independent/Other",
abbreviation: "Ind",
totalCouncils: 3,
changeInControl: -3,
seatsWon: 865,
netChangeInSeats: -360,
heldCouncils: ["Ashfield", "Castle Point"],
lostCouncils: ["Forest of Dean", "Maldon", "Mansfield", "Torridge"],
gainedCouncils: ["Boston"],
totalGainedCouncils: 1,
totalLostCouncils: 4,
totalHeldCouncils: 2,
},
{
paId: 538,
name: "Liberal",
abbreviation: "Lib",
totalCouncils: 0,
changeInControl: 0,
seatsWon: 4,
netChangeInSeats: -1,
heldCouncils: [],
lostCouncils: [],
gainedCouncils: [],
totalGainedCouncils: 0,
totalLostCouncils: 0,
totalHeldCouncils: 0,
},
{
paId: 540,
name: "Ratepayers or Residents",
abbreviation: "R",
totalCouncils: 2,
changeInControl: 0,
seatsWon: 99,
netChangeInSeats: -11,
heldCouncils: ["Epsom & Ewell", "Uttlesford"],
lostCouncils: [],
gainedCouncils: [],
totalGainedCouncils: 0,
totalLostCouncils: 0,
totalHeldCouncils: 2,
},
{
paId: 541,
name: "Reform UK",
abbreviation: "Reform",
totalCouncils: 0,
changeInControl: 0,
seatsWon: 6,
netChangeInSeats: -8,
heldCouncils: [],
lostCouncils: [],
gainedCouncils: [],
totalGainedCouncils: 0,
totalLostCouncils: 0,
totalHeldCouncils: 0,
},
{
paId: 544,
name: "Yorkshire Party",
abbreviation: "Yorkshire",
totalCouncils: 0,
changeInControl: 0,
seatsWon: 3,
netChangeInSeats: 1,
heldCouncils: [],
lostCouncils: [],
gainedCouncils: [],
totalGainedCouncils: 0,
totalLostCouncils: 0,
totalHeldCouncils: 0,
},
{
paId: 543,
name: "Vacant",
abbreviation: "Vacant",
totalCouncils: 0,
changeInControl: 0,
seatsWon: 24,
netChangeInSeats: 0,
heldCouncils: [],
lostCouncils: [],
gainedCouncils: [],
totalGainedCouncils: 0,
totalLostCouncils: 0,
totalHeldCouncils: 0,
},
{
name: "No Overall Control",
abbreviation: "NOC",
totalCouncils: 91,
changeInControl: 16,
seatsWon: 0,
netChangeInSeats: 0,
heldCouncils: [
"Arun",
"Ashford",
"Babergh",
"Basingstoke & Deane",
"Bedford",
"Bolton",
"Bournemouth, Christchurch & Poole",
"Burnley",
"Canterbury",
"Cheshire East",
"Colchester",
"Darlington",
"Derby",
"Derbyshire Dales",
"East Devon",
"Elmbridge",
"Folkestone & Hythe",
"Hart",
"Hartlepool",
"Herefordshire",
"Hyndburn",
"Lancaster",
"Lewes",
"Malvern Hills",
"Milton Keynes",
"North Hertfordshire",
"North Somerset",
"Peterborough",
"Portsmouth",
"Redcar & Cleveland",
"Rochford",
"Rother",
"Rutland",
"Sheffield",
"Southend-on-Sea",
"Spelthorne",
"Stafford",
"Stockport",
"Stockton-on-Tees",
"Swale",
"Tandridge",
"Tendring",
"Tunbridge Wells",
"Warwick",
"Waverley",
"West Lindsey",
"West Oxfordshire",
"Wirral",
"Wokingham",
"Worcester",
],
lostCouncils: [
"Blackpool",
"Boston",
"Brighton & Hove",
"Broxtowe",
"Cheshire West & Chester",
"Chichester",
"Gravesham",
"Guildford",
"High Peak",
"Mid Devon",
"Mid Suffolk",
"Middlesbrough",
"North East Derbyshire",
"Plymouth",
"South Derbyshire",
"South Oxfordshire",
"South Ribble",
"Stoke-on-Trent",
"Surrey Heath",
"Teignbridge",
"Thanet",
"Torbay",
"West Lancashire",
"Wyre Forest",
"York",
],
gainedCouncils: [
"Brentwood",
"Broadland",
"Bromsgrove",
"Cannock Chase",
"Central Bedfordshire",
"Charnwood",
"Cherwell",
"East Hampshire",
"East Hertfordshire",
"East Lindsey",
"East Riding of Yorkshire",
"East Suffolk",
"Forest of Dean",
"Great Yarmouth",
"Harborough",
"Hertsmere",
"King's Lynn & West Norfolk",
"Lichfield",
"Maidstone",
"Maldon",
"Melton",
"Mid Sussex",
"Newark & Sherwood",
"North Warwickshire",
"North West Leicestershire",
"Pendle",
"Ribble Valley",
"Rugby",
"Runnymede",
"Slough",
"South Gloucestershire",
"South Kesteven",
"Staffordshire Moorlands",
"Tamworth",
"Tewkesbury",
"Tonbridge & Malling",
"Torridge",
"Wealden",
"Welwyn Hatfield",
"West Devon",
"West Suffolk",
],
totalGainedCouncils: 41,
totalLostCouncils: 25,
totalHeldCouncils: 50,
},
],
},
}
export { example }