Number of nights spent at tourist accommodation establishments challenge
challenge ="TOURISM"
Accommodation statistics are a key part of the system of tourism statistics in the EU and have a long history of data collection. For this indicator, the benchmark will be the official figures on nights spent at tourist accommodation establishments by residents and non-residents.
A night spent is each night a guest/tourist (resident or non-resident) actually spends (sleeps or stays) or is registered (his/her physical presence there being unnecessary) in a tourist accommodation establishment.
Next forecast for a given country
viewof country = Inputs.select(Object.values(country_map), {label:html`<b>Select a country:</b>`,placeholder:"Enter a country name",unique:true })
Plot.plot({grid:true,y: {label:"↑ Number of nights spent at tourist accommodation establishments",transform: d => d /1e6 },x: {label:"Year",domain: range },marks: [ Plot.line(historical, {tip:true,x:"date",y:"values",stroke:"black",title: (d) =>`${d.date.toLocaleString("en-UK", {month:"long",year:"numeric" })}\n${d.values/1e6} millions ` }), Plot.dot(predictions, {tip:true,x:"date",y:"values",fill:"model",title: (d) =>`${d.model}\n${d.date.toLocaleString("en-UK", {month:"long",year:"numeric" })} : ${d.values/1e6} millions ` }) ],color: {legend:true}})