Datafable / epu-index

EPU index
http://www.applieddatamining.com/cms/?q=content/economic-policy-uncertainty-index
1 stars 0 forks source link

Create download form #5

Closed bartaelterman closed 9 years ago

bartaelterman commented 9 years ago

Create a form to download data:

peterdesmet commented 9 years ago

Blocked by #45

peterdesmet commented 9 years ago

I see two options:

1. Download links

screen shot 2015-07-27 at 17 22 22

Advantages:

Disadvantages:

2. Download form

A form with two text boxes for start and end date + a download button

Advantages:

Disadvantages:

OK if I implement option 1?

bartaelterman commented 9 years ago

OK

peterdesmet commented 9 years ago

Option 1 implemented in 4349c8272cebc0282a4709555d0cd3dc5c0aa2a6, using d3 to update the href attribute of the download link on a new selection (so no on("click") event required).

I also subtracted one day from the year range, so instead of the previous 2010-09-01 to 2011-09-01, it now shows 2010-09-01 to 2011-08-31. This is more what the user expects (e.g. title shows sep-aug, instead of sep-sep and only unique dates are listed in the download): a30cf1d52fba3dc6bbfbec300b7e5bc022efbc34