# server.R
library(quantmod)
source("helpers.R")
shinyServer(function(input, output) {
output$plot <- renderPlot({
data <- getSymbols(input$symb, src = "yahoo",
from = input$dates[1],
to = input$dates[2],
auto.assign = FALSE)
chartSeries(data, theme = chartTheme("white"),
type = "line", log.scale = input$log, TA = NULL)
})
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.