Created
December 18, 2013 07:48
-
-
Save badbye/8018734 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require(shiny) | |
| require(recharts) | |
| # options(shiny.transcode.json = FALSE) | |
| shinyServer(function(input, output) { | |
| output$recharts = renderEcharts({ | |
| recharts.init() | |
| ePie(abs(rnorm(input$numeber))) | |
| }) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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