Coder Social home page Coder Social logo

argondash's Introduction

argonDash

R build status CRAN status lifecycle cranlogs total

argon Bootstrap4 dashboard template for Shiny

Installation

{argonDash} requires to install {argonR}.

install.packages("argonR")
# devel version
devtools::install_github("RinteRface/argonDash")
# from CRAN
install.packages("argonDash")

Demo

See a demonstration on shinyapps.io.

library(argonDash)
argonDashGallery()

Vertical layout


Horizontal layout

This layout is experimental.


Aknowledgement

  • Creative Tim for designing the original argon dashboard HTML template.

Code of Conduct

Please note that the argonDash project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

argondash's People

Contributors

divadnojnarg avatar olivroy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

argondash's Issues

Card Plot Overflow

Hi,
Seems like the card height doesn't auto adjust.
Increasing the height of the output plot in the example app demonstrates it.

output$distPlot <- renderPlot({
			hist(rnorm(input$obs))
		},height=600)

The issue is also present in tabs with card_wrapper set to TRUE.

The height appears to autoadjust when the content is a long text, so maybe it has to do with Shiny?

Create multiple rows in argonTable

Hi everyone,

I've tried to insert many rows in argonTable and I found a solution which is the following:

  1. In a script, I format the dataframe by using this piece of code:
library(argonDash)
library(argonR)
mtcars$car <- rownames(mtcars)

paste_items <- function(row){
  paste("argonTableItems(argonTableItem('", mtcars[row,"car"],"'), argonTableItem(dataCell = TRUE,",  mtcars[row,"mpg"], "))", sep = "")
}

res <- parse(text = sapply(c(1:nrow(mtcars)), function(i) paste_items(i)))
  1. In the app.R I change the output by:
output$argonTable <- renderUI({
      
      wrap <- if (input$cardWrap == "Enable") TRUE else FALSE
      
      argonTable(
        cardWrap = wrap,
        headTitles = c(
          "CAR",
          "MPG"
        ),
        lapply(c(1:length(res)), function(i) eval(res[i]))
      )
    })

However it would be nice to have multiple pages instead of a single page. Any ideas?

Thanks

argoInfoCard stat color

After the last update the color of stat and stat_icon inside argonInfoCard doesn't capture the css classes .text-danger and .text-succes according with the value of the stat. Now argonInfoCard show a default color without percentage symbol.

image

image

Many thanks!

HTTP error 404

Hey @DivadNojnarg ! Thanks loads for this package. I love the look of argon and have been waiting for a library for R. However I am unable to install the package, even when I download the zip and try a local install. The installation breaks with an HTTP error. Could you help? The error and the session info are mentioned below

devtools::install_github("RinteRface/argonDash")
Downloading GitHub repo RinteRface/argonDash@master
Error: HTTP error 404.
  Not Found

  Rate limit remaining: 38/60
  Rate limit reset at: 2018-11-13 15:13:39 UTC

  
sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)

Matrix products: default

locale:
[1] LC_COLLATE=English_India.1252  LC_CTYPE=English_India.1252    LC_MONETARY=English_India.1252
[4] LC_NUMERIC=C                   LC_TIME=English_India.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] rio_0.5.10      forcats_0.3.0   stringr_1.3.1   dplyr_0.7.8     purrr_0.2.5     readr_1.1.1     tidyr_0.8.2    
 [8] tibble_1.4.2    ggplot2_3.1.0   tidyverse_1.2.1 shinyjs_1.0     shiny_1.2.0    

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0        lubridate_1.7.4   lattice_0.20-35   prettyunits_1.0.2 ps_1.2.1          rprojroot_1.3-2  
 [7] assertthat_0.2.0  digest_0.6.18     mime_0.6          R6_2.3.0          cellranger_1.1.0  plyr_1.8.4       
[13] backports_1.1.2   httr_1.3.1        pillar_1.3.0      rlang_0.3.0.1     lazyeval_0.2.1    curl_3.2         
[19] readxl_1.1.0      rstudioapi_0.8    data.table_1.11.8 callr_3.0.0       desc_1.2.0        devtools_2.0.1   
[25] foreign_0.8-70    munsell_0.5.0     broom_0.5.0       compiler_3.5.1    httpuv_1.4.5      modelr_0.1.2     
[31] pkgconfig_2.0.2   base64enc_0.1-3   pkgbuild_1.0.2    htmltools_0.3.6   tidyselect_0.2.5  crayon_1.3.4     
[37] withr_2.1.2       later_0.7.5       grid_3.5.1        nlme_3.1-137      jsonlite_1.5      xtable_1.8-3     
[43] gtable_0.2.0      magrittr_1.5      scales_1.0.0      zip_1.0.0         cli_1.0.1         stringi_1.2.4    
[49] debugme_1.1.0     fs_1.2.6          remotes_2.0.2     promises_1.0.1    testthat_2.0.1    bindrcpp_0.2.2   
[55] xml2_1.2.0        openxlsx_4.1.0    tools_3.5.1       glue_1.3.0        hms_0.4.2         pkgload_1.0.2    
[61] processx_3.2.0    colorspace_1.3-2  sessioninfo_1.1.1 rvest_0.3.2       memoise_1.1.0     bindr_0.1.1      
[67] haven_1.1.2       usethis_1.4.0    

Argon Card

It's possible insert an option inside the argonCard function to customize the text in the button "More"?

argonDashGallery() "no file found"

I cannot load argonDashGallery()

> argonDash::argonDashGallery()
Loading required namespace: magrittr
Error in system.file(paste0("examples/app.R"), package = "argonDash",  : 
  no file found

R.version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 6.3
year 2020
month 02
day 29
svn rev 77875
language R
version.string R version 3.6.3 (2020-02-29)
nickname Holding the Windsock

I also tried it on my Windows machine and run into the same problem.

argonDashGallery() not working

Hi,

Thanks for your work on this package, it looks like it could be used to make some really nice Shiny apps! I just wanted to point out that the demo function doesn't work.

When I run argonDashGallery() as suggested in the README I get the following error message:

Error in system.file(paste0("examples/app.R"), package = "argonDash",  : 
  no file found

I think "examples/app.R" needs to be replaced with "examples/gallery/app.R".

Reference should be updated

For example.

argonDashBody() in reference page

doesn't exist in argonR Package, instead argonPage() is used.

image

image

Also If you don't mind I can try to create cheatsheet for this argonR package.

Font Awesome Icons

It's possible to use font awesome icons inside argonTabSet and argonInfoCard?

argondash don't work with horizontal layout

Hi and thanks for reading me

I am working with a dashboard made with shiny, argondash and argonr, but I noticed that the horizontal layout does not work correctly, since the windows continue to be displayed vertically.

The code is the following:

library(shiny)
library(argonDash)
library(argonR)
shinyApp(
  ui = argonDashPage(title = 'Sync the City',
                     description = 'Testing',
                     header = argonDashHeader(color = 'primary', separator = TRUE),
                     sidebar = argonDashSidebar(vertical = FALSE,
                                                brand_logo = "https://elpacientecolombiano.com/wp-content/uploads/2015/09/LOGO-SALUD-MORADO.png",
                                                id = 'sidebar',
                                                argonSidebarHeader(title = 'Main Menu'),
                                                
                                                argonSidebarMenu(
                                                  argonSidebarItem(tabName = 'landing_page', 'Landing Page'),
                                                  argonSidebarItem(tabName = 'map', 'Map'),
                                                  argonSidebarItem(tabName = 'network', 'Network')
                                                )
                     )
  ),
  server = function(input, output){}
)

Is there a way to use the traditional tabsetPanel item?

Hi,
I've been looking into ways to dynamically add tabs. insertTab only works with tabPanel and when I used that, the CSS seemed messed up. Is there a way to use both argoTabs and traditional tabs?

tabsetPanel(id = "tabs",
               tabPanel("Hello", "This is the hello tab"),
               tabPanel("Foo", "This is the foo tab"),
               tabPanel("Bar", "This is the bar tab")

example

How to add elements to NavBar?

Hi, I am trying to create a page with the a horizontal navbar on top. I tried setting vertical=FALSE in argonDashSidebar but the items are displayed under each other not side by side.

I think having a top navbar to navigate between the different app pages is a crucial aspect of a Shiny app. Thanks for any help!

fileInput looks messy

Hi,
The widget for fileInput looks messy and the upload message bar seems too thin, as demonstrated below.

screenshot_2019-01-23 sensory data analysis dashboard 1

screenshot_2019-01-23 sensory data analysis dashboard 2

If you could point me to which CSS files need editing, I'll tweak them accordingly and issue a pull request.

Cheers!

Optional args for argonInfoCard

I am using argonInfoCard as a valueBox. The stat option adds a "%" to the value. Could you exclude the "%" and make it user defined, eg stat = paste(10,"% increase").
Is it also possible to include href in the argonInfoCard?
Thanks

Tabs not working in shinyapps.io

Hi,
Thank you for this great package. Currently I'm developing an app using argonDash.

When I developed the app on my local machine, the app worked properly all the way that I want. But after deployed it to shinyapps.io, the tabs does not display the contents. Only the first tab's content that displayed on the browser. When I clicked the other tabs, it's content does not appear.

Here is my repo https://github.com/aephidayatuloh/stk211 and this is my app https://analyticastudio.shinyapps.io/stk211.

Kindly need your advice.
Thanks

EDIT: I also changed the argon.min.css to fit my needes.

Programmatically set the value of 'stat' in 'argonInfoCard'

I would like to programmatically set the value of 'stat' in the 'argonInfoCard'. I figure the best would be to render a custom UI element in the server side of the application:

    output$UI1 <- renderUI({
      argonInfoCard(
        value = reactiveData()$x, #"350,897"
        title = "Umsatzerlöse", 
        stat = ireactiveData()$y, #"2.5"
        stat_icon = "arrow-up",
        description = "2017/2016 Ratio", 
        icon = "chart-bar", 
        icon_background = "danger",
        hover_lift = TRUE,
        background_color = "default"
      )
    })

However, the outputing UI element if deformed, prolonged in its height.
If I would like to set the stat value inside of the ui componennt of the shiny app, providing it with a renderText value for argonInfoCard does not apply, as it creates a div or span HTML element.

So the question is, how can I set stat value programmatically in shiny context?

add rsconnect folder to Rbuildignore

Otherwise we get the folder when we install, and RStudio IDE offer to republish when opening th example with argonDashGallery()
image

I think you just need to add a lines in Rbuildignore to ignore inst/examples/rsconnect

Access current tab selection

Hi,
I tried to access the current tab selection by running input$sidebar, sidebar being the id of the sidebar used in argonDashSidebar but it did not work. Is this a bug?

argonCarousel not responsive

library(shiny)
library(argonR)
library(argonDash)
library(magrittr)

shiny::shinyApp(
  ui = argonDashPage(
    title = "Argon Dashboard Demo",
    author = "David",
    description = "Argon Dash Test",
    sidebar = argonDashSidebar(
      vertical = TRUE,
      skin = "light",
      background = "white",
      size = "md",
      side = "left",
      id = "my_sidebar",
      brand_url = "http://www.google.com",
      brand_logo = "https://demos.creative-tim.com/argon-design-system/assets/img/brand/blue.png",
      argonSidebarHeader(title = "Main Menu"),
      argonSidebarMenu(
        argonSidebarItem(
          tabName = "cards",
          icon = "tv-2",
          icon_color = "primary",
          "Cards"
        )
      ),
      argonSidebarDivider(),
      argonSidebarHeader(title = "Other Items")
    ),
    navbar = argonDashNavbar(), 
    header = argonDashHeader(
      gradient = TRUE,
      color = "primary",
      separator = TRUE,
      separator_color = "secondary",
      argonCard(
        title = "Argon Card",
        src = "http://www.google.com",
        hover_lift = TRUE,
        shadow = TRUE,
        shadow_size = NULL,
        hover_shadow = FALSE,
        border_level = 0,
        icon = "atom",
        status = "primary",
        background_color = NULL,
        gradient = FALSE, 
        floating = FALSE,
        "This is the content"
      )
    ),
    body = argonDashBody(
      argonTabItems(
        argonTabItem(
          tabName = "cards",
          argonRow(
            argonCard(
              width = 12,
              title = "Argon Card",
              src = NULL,
              hover_lift = TRUE,
              shadow = TRUE,
              shadow_size = NULL,
              hover_shadow = FALSE,
              border_level = 0,
              icon = "atom",
              status = "primary",
              background_color = NULL,
              gradient = FALSE, 
              floating = FALSE,
              argonCarousel(
                width = 12,
                id = "carousel2",
                argonCarouselItem(
                  src = "https://demos.creative-tim.com/argon-design-system/assets/img/theme/img-1-1200x1000.jpg",
                  active = TRUE
                ),
                argonCarouselItem(
                  src = "https://demos.creative-tim.com/argon-design-system/assets/img/theme/img-2-1200x1000.jpg",
                  active = FALSE
                )
              )
            ) 
          )
        )
      )
    ),
    footer = argonDashFooter(
      copyrights = "@Divad Nojnarg, 2018",
      src = "https://github.com/DivadNojnarg",
      argonFooterMenu(
        argonFooterItem("RinteRface", src = "https://github.com/RinteRface"),
        argonFooterItem("argon", src = "https://demos.creative-tim.com/argon-design-system/index.html")
      )
    )
  ),
  server = function(input, output) {}
)

Update ArgonTabItems in my Shiny app

I tried to use this JS to update argonTabItems in my Shiny app, but it does not work. Basically, I am trying to use an action button on one tab to navigate to the next tab on my sidebar upon clicking the action button. Upon clicking the action button, a blank tab is opened instead. Can you help me to fix this issue? Here is a summary of my code:

library(shiny)
library(argonR)
library(argonDash)
library(shinyjs)
library(shinyWidgets)

Defines site header

argonHeader <- argonDashHeader(
gradient = TRUE,
color = "primary",
separator = FALSE,
separator_color = "secondary",

argonH1("Prototype - EasyPlotLabelR", display = 3, class = "text-center")
)

Defines site sidebar

argonSidebar <- argonDashSidebar(
id = "my_sidebar",
vertical = TRUE,
skin = "light",
background = "white",
size = "md",
side = "left",

argonSidebarHeader(title = "Main Menu"),
argonSidebarMenu(

argonSidebarItem(
  tabName = "welcome",
  icon = argonIcon(name = "cloud-upload-96", color = "info"),
  "Welcome"
),

argonSidebarItem(
  tabName = "data_import",
  icon = argonIcon(name = "cloud-upload-96", color = "info"),
  "Import fieldbook"
),

argonSidebarItem(
  tabName = "label_info",
  icon = argonIcon(name = "tag", color = "green"),
  "Label information"
),

),

argonSidebarDivider()
)

Defines site footer

argonFooter <- argonDashFooter(
copyrights = "Copyright © 2023 Alex Kena | Ebenezer Ogoe | Clara Burgos |
Geoff Morris",
src = NULL,
argonFooterMenu(
argonFooterItem("Follow Alex Kena on GitHub",
src = "https://github.com/awkena"),
argonFooterItem("View Ebenezer Ogoe's profile", src = NULL)
)
)

Welcome page

pg_welcome <- argonTabItem(
tabName = "welcome",

First row of logos

Some intro text that may need to be summarized into two paragraphs or less

argonH1("Welcome!", display = 4),
p("Welcome to EasyPlotLabelR, a no-frills R Shiny app for designing experimental
or trial plot labels affixed with QR codes for digital data collection.
This open-source software simplifies the complicated process of plot label design.
It generates plot labels that are compatible with the widely used digital data
collection mobile app, Fieldbook.",
style = "text-align: justify; margin-top: 10px;"),

p("The software requires users to upload a field book (csv file format) that
contains LOCATION, PLOT, REP, ROW, RANGE/COLUMN, iBLOCK (if present),
ENTRY/TREATMENT information. The column names of the imported field book do not
necessarily have to match what is listed above, and do not have to be in
any particular order.", style = "text-align: justify; margin-top: 10px;"),

p("Our app uses an informative unique ID to generate QR codes with different error
correction levels. Users can upload a field book that already contains an
informative unique ID for each plot or opt for the app to create informative
unique plot IDs. It creates an informative unique plot ID by
concatenating LOCATION, YEAR, PLOT, ROW and RANGE/COLUMN IDs into a string
separated by an underscore. Eg. AKRON_2023_101_1_2",
style = "text-align: justify; margin-top: 10px;"),

p("Users can choose from a list of preset common label templates as shown in
the sample labels below. Alternatively, users can design any custom rectangular
label given the page and label setting parameters.",
style = "text-align: justify; margin-top: 10px;"),

p(" The app outputs a downloadable PDF file based on user-defined page
and label setting parameters for printing. It also allows users to download an
updated field book if the informative unique IDs for generating QR codes
were created in the app.", style = "text-align: justify; margin-top: 10px;"),

)

Fieldbook import tab setup

pg_data_import <- argonTabItem(
tabName = "data_import",
argonCard(
width = 12,
title = "Upload your data",
src = NULL,
hover_lift = FALSE,
shadow = TRUE,
shadow_size = NULL,
hover_shadow = FALSE,
border_level = 0,
icon = argonIcon("atom"),
status = "primary",
background_color = NULL,
gradient = FALSE,
floating = FALSE,

# Custom CSS to style the file upload widget. The specific classes and IDs were
# identified with Mozilla Firefox's Inspect element
tags$style(HTML('#datUploader_progress {height: 15px !important;}
                .input-group .form-control:not(:first-child) {
                padding-left: 10px; border-left: 0;}
                ')),

fileInput(inputId = "datUploader", "Upload a Fieldbook file in CSV format:",
          accept = ".csv", width = '50%', placeholder = "  No file selected"),


shinyjs::disabled(prettySwitch(inputId = "from_fieldhub", inline = TRUE,
                               label = tags$strong("Generated with FieldHub"),
                               value = FALSE, status = "primary", fill = TRUE)),


shinyjs::disabled(prettySwitch(inputId = "from_BMS", inline = TRUE,
                               label = tags$strong("Generated with BMS"),
                               value = FALSE, status = "primary", fill = TRUE)),




shinyjs::disabled(prettySwitch(inputId = "preview_dat", inline = TRUE,
                               label = tags$strong("Preview uploaded Fieldbook"), 
                               value = FALSE, status = "primary", fill = TRUE)),



br(),

fluidRow(
  column(width = 4,
         actionButton(inputId = "submit_dat", "Submit Fieldbook")),
  
  column(width = 4, offset = 3,
         actionButton(inputId = "npg1", "Next >>"))
)

)

)

Label information tab setup

warn <- "Submit a Fieldbook first"

pg_label_info <- argonTabItem(
tabName = "label_info",

Mimics a classic ArgonUI card

argonCard(
# Card configuration
width = 12,
title = "Page parameters",
src = NULL,
hover_lift = FALSE,
shadow = TRUE,
shadow_size = NULL,
hover_shadow = FALSE,
border_level = 0,
icon = argonIcon("atom"),
status = "primary",
background_color = NULL,
gradient = FALSE,
floating = FALSE,

# Page items
fluidRow(
  
  
  column(width = 2,
         prettyCheckbox(inputId = "IBlock", label = "Incomplete blocks", 
                        value = FALSE, inline = TRUE,
                        status = "primary", shape = "curve", outline = TRUE)),
  
  
  
  
  column(width = 3, offset = 1,
         shinyjs::disabled(sliderInput(inputId = "ec_level", label = "QR code error level",
                                       min = 0, max = 3, step = 1, value = 3))),
  
  
  column(width = 3, offset = 1,
         
         shinyjs::disabled(actionButton(inputId = "gen_qrcode", label = ("Generate QR codes "),
                                        icon = NULL, width = NULL, span(id="Animate", class="")))),
  
),

br(),



fluidRow(
  
  column(width = 4,
         prettyCheckbox(inputId = "get_unique_id", inline = TRUE,
                        label = "Generate unique IDs for QR codes",
                        value = TRUE, status = "primary", shape = "curve", outline = TRUE)),
  
  

fluidRow(
  column(width = 6,
         textInput(inputId = "rname", label = "Input your name",
                   value = "", placeholder = 'Initial(s) + Last name'),
  ),
  
  column(width = 6,
         
         textInput(inputId = "yr", label = "Input year of experiment",
                   value = ""))),

fluidRow(
  column(width = 6,
         selectInput(inputId = "rep_id", "Select ID for REP", choices = warn),
         selectInput(inputId = "row_id", "Select ID for ROW", choices = warn),
         selectInput(inputId = "loc_id", "Select ID for LOCATION", choices = warn),
         selectInput(inputId = "IBlock_id", "Select ID for IBlock", choices = warn)
  ),
  
  column(width = 6,
         selectInput("plot_id", "Select ID for PLOT", choices = warn),
         selectInput("col_id", "Select ID for COLUMN", choices = warn),
         selectInput("entry_id", "Select ID for TREATMENT/ENTRY", choices = warn),
         selectInput("unique_id", "Select ID for UNIQUE IDs", choices = warn)
  )
),

fluidRow(
  column(width = 4,
         actionButton(inputId = "npg2", "Next >>")),
)

)
)

)

Piece everything together in UI

ui <- argonDashPage(

title = "EasyPlotLabelR",
author = "Alexander Wireko Kena, Ebenezer Ogoe",
description = "A Shiny app to generate digital plot labels freely and easily",
sidebar = argonSidebar,
navbar = NULL,
header = argonHeader,
body = argonDashBody(

# recover the R export in JS in the message arg. Message is an object.
# If on the R side message was a list, you can access its children by
# message.children.
shiny::tags$head(
  shiny::tags$script(
    'Shiny.addCustomMessageHandler("update-tabs", function(message) {
            var currentTab = parseInt(message);
            console.log(message); // we check if the message is displayed
            
            // hide and inactivate all not selected tabs
            $(".active.show").removeClass("active show");
            $(".tab-pane.active.show").removeClass("active show");
            
            // add active class to the current selected tab and show its content
            $("#tab-Tab" + currentTab).addClass("active show");
            $("#shiny-tab-Tab" + currentTab).addClass("active show");
           });
          '
  )
),


tags$head(
  tags$style(
    HTML(".shiny-notification {
          height: 100px;
          width: 300px;
          position:fixed;
          top: calc(25% - 30px);;
          left: calc(80% - 200px);;
        }
       "
    )
  )
),

useShinyjs(),
argonTabItems(
  pg_welcome,
  pg_data_import,
  pg_label_info
 
)

),

footer = argonFooter

)

Server component of app

server <- function(input, output, session) {

stop app when app is closed

session$onSessionEnded(function() {
stopApp()
})

send data from R to Javascript

observeEvent(input$npg1, {
session$sendCustomMessage(
type = "update-tabs",
message = input$npg2
)
})

}

enableBookmarking(store = "server")
shinyApp(ui, server)

Package Highcharter

Hi,
I have a problem with the package highcharter in the argon dashboard rshiny,
just by adding an highchartOutput it completely shakes the whole disposition,
do you know the reason?

Editing Layout of argonProfile()

argonProfile provides no options to adjust:

  1. Links 1 and 2 on the side (would like to toggle off)
  2. The "more" link/text in the comment area
  3. Padding/spacing between text

image

Icon not getting displayed inside argonInfoCard

Hi,

I am using argonR and argonDash packages version 0.2.0.9000.
I am using some argonInfoCards in my Shiny Dashboard.

While stat_icons are getting displayed, the issue is that icons (icon = argonIcon("chart-bar-32"),) are not getting displayedin argonInfoCard.

Here's my code:

library(argonR)
library(argonDash)
library(shiny)

shiny::shinyApp(
  ui = argonDashPage(
    body = argonDashBody(
      argonRow(
        argonInfoCard(
          value = textOutput("ctr_increase"),
          title = "CTR",
          stat = 3.48,
          stat_icon = argonIcon("bold-up"),
          description = "compared to 7 day avg",
          icon = argonIcon("chart-bar-32"),
          hover_lift = TRUE,
          width = 4,
        ),
        argonInfoCard(
          value = "2,356",
          title = "Card Views",
          stat = -3.48,
          stat_icon = argonIcon("bold-down"),
          description = "compared to 7 day avg",
          icon = argonIcon("chart-bar-32"),
          shadow = TRUE,
          width = 4
        ),
        argonInfoCard(
          value = "924",
          title = "Unique Users",
          stat = -1.10,
          stat_icon = argonIcon("bold-down"),
          description = "compared to 7 day avg",
          icon = argonIcon("chart-bar-32"),
          gradient = TRUE,
          background_color = '#DBAE58',
          shadow = TRUE,
          width = 4
        )
      )
    )
  ),
  server = function(input, output) {}
)

And here's the output:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.