<jupyter_start><jupyter_text>Most examples work across multiple plotting backends, this example is also available for:* [Matplotlib - dropdown_economic](../matplotlib/dropdown_economic.ipynb)<jupyter_code>import pandas as pd
import holoviews as hv
from holoviews import opts, dim
hv.extension('bokeh')<jupyter_output><empty_output><jupyter_text>Declaring data<jupyter_code>macro_df = pd.read_csv('http://assets.holoviews.org/macro.csv', '\t')
key_dimensions   = [('year', 'Year'), ('country', 'Country')]
value_dimensions = [('unem', 'Unemployment'), ('capmob', 'Capital Mobility'),
                    ('gdp', 'GDP Growth'), ('trade', 'Trade')]
macro = hv.Table(macro_df, key_dimensions, value_dimensions)<jupyter_output><empty_output><jupyter_text>Plot<jupyter_code>gdp_curves = macro.to.curve('Year', 'GDP Growth')
gdp_unem_scatter = macro.to.scatter('Year', ['GDP Growth', 'Unemployment'])
annotations = hv.Arrow(1973, 8, 'Oil Crisis', 'v') * hv.Arrow(1975, 6, 'Stagflation', 'v') *\
hv.Arrow(1979, 8, 'Energy Crisis', 'v') * hv.Arrow(1981.9, 5, 'Early Eighties\n Recession', 'v')

(gdp_curves * gdp_unem_scatter* annotations).options(
    opts.Curve(color='k'), 
    opts.Scatter(cmap='Blues', color='Unemployment', 
                 line_color='k', size=dim('Unemployment')*1.5),
    opts.Text(text_font_size='13px'),
    opts.Overlay(height=400, show_frame=False, width=700))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17280453257790368, 'fraction_numerical': 0.021954674220963172, 'mean_word_length': 6.246153846153846, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '211303', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 563, 'n_tokens_neox': 512, 'n_words': 92, 'path': 'examples/gallery/demos/bokeh/dropdown_economic.ipynb', 'repo_name': 'jonmmease/holoviews', 'size': '1412'}