Skip to content

Commit

Permalink
getting closer
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffckerr committed Dec 13, 2023
1 parent 47963eb commit ae7966e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/py-shiny/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ <h1>Google Trend Index</h1>
created: function () {
axios.post('http://localhost:8080/api/getoptions') // Use a POST request to pass along the value.
.then(function (response) {
vm.trendoptions = response.data
vm.plotdata()
this.trendoptions = response.data
this.plotdata()
})
},

Expand All @@ -94,10 +94,10 @@ <h1>Google Trend Index</h1>
methods: {
plotdata: function () {
var url = 'http://localhost:8080/api/plotdata'
url += '/' + vm.trendselection
url += '/' + vm.startdate.toISOString().substring(0, 10)
url += '/' + vm.enddate.toISOString().substring(0, 10)
url += '/' + vm.trendline
url += '/' + this.trendselection
url += '/' + this.startdate.toISOString().substring(0, 10)
url += '/' + this.enddate.toISOString().substring(0, 10)
url += '/' + this.trendline
axios.post(url) // Use a POST request to pass along the value.
.then(function (response) {
document.getElementById('trend').innerHTML = ''; // Clear the DOM before redrawing
Expand Down

0 comments on commit ae7966e

Please sign in to comment.