Skip to content

Instantly share code, notes, and snippets.

@badbye
Created December 18, 2013 07:48
Show Gist options
  • Save badbye/8018734 to your computer and use it in GitHub Desktop.
Save badbye/8018734 to your computer and use it in GitHub Desktop.
require(shiny)
require(recharts)
# options(shiny.transcode.json = FALSE)
shinyServer(function(input, output) {
output$recharts = renderEcharts({
recharts.init()
ePie(abs(rnorm(input$numeber)))
})
})
require(shiny)
require(recharts)
shinyUI(pageWithSidebar(
headerPanel('Hello, world!'),
sidebarPanel(
sliderInput('numeber', 'How much data do you want?',
min=3, max=8, value=5)
),
mainPanel(
includeHTML(recharts.shiny.init()),
htmlOutput('recharts')
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment