Open okanji opened 3 years ago
The UI for a download csv button has been created. Now the functionality to get the data that the plot is showing needs to be built into a function. The current code downloads a mock csv file.
1) The UI for the download csv button is here: https://github.com/bcgov/cmip6-BC/blob/275efda3b844c9b707b7f738fe9d5993f04cd39e/app.R#L143-L144
2) The body of this function needs to be edited to return the actual plot data as a data frame. Currently it returns a mock data frame: https://github.com/bcgov/cmip6-BC/blob/275efda3b844c9b707b7f738fe9d5993f04cd39e/app.R#L333-L339
3) The download handler that calls the function above and converts the data frame to a downloadable csv is here: https://github.com/bcgov/cmip6-BC/blob/275efda3b844c9b707b7f738fe9d5993f04cd39e/app.R#L629-L637
All of the above needs to be uncommented. Only 3. needs to be edited.
The UI for a download csv button has been created. Now the functionality to get the data that the plot is showing needs to be built into a function. The current code downloads a mock csv file.
1) The UI for the download csv button is here: https://github.com/bcgov/cmip6-BC/blob/275efda3b844c9b707b7f738fe9d5993f04cd39e/app.R#L143-L144
2) The body of this function needs to be edited to return the actual plot data as a data frame. Currently it returns a mock data frame: https://github.com/bcgov/cmip6-BC/blob/275efda3b844c9b707b7f738fe9d5993f04cd39e/app.R#L333-L339
3) The download handler that calls the function above and converts the data frame to a downloadable csv is here: https://github.com/bcgov/cmip6-BC/blob/275efda3b844c9b707b7f738fe9d5993f04cd39e/app.R#L629-L637
All of the above needs to be uncommented. Only 3. needs to be edited.