Controlling reactivity in Shiny - r

I have a Shiny Dashboard that has 4 tabs that display 4 different plots. The last plot is a 3 D Plotly plot. It is parameter driven which are provided by two input text controls and one select box. It works fine, but it is quite slow.
Therefore, I am trying to control its reactivity by putting an submitButton next to the parameter controls so that it is redrawn only when the user clicks the submitButton. Trouble is: it affects the other three plots as well. Is there a way to control the reactivity so that it only affects the desired plot?

Related

An unwanted label appears around the leaflet map within shiny context

Using leaflet, I have created the below pretty map within the shiny context. As shown in the image below, a label within a box (Intelectual Disability) appears around the map. It disappears when I click somewhere on the page, however, I was wondering to know why this happens and how can I avoid this?
Thanks,
Nader

How to dynamically create multiple comb box based on dataset in ASP.NET

I am trying dynamically create a combo box based on a selection that is made, and will dynamically create another combo box below it in ASP. NET.
Selection is made then another combo box gets created below and gets filled with another set of data and etc...
Sorry for the confusion, I wanted to dynamically create a combo box and recreate combo boxes dynamically again. I could not explain exactly what I was trying to do but I found some samples that got me to the direction that I was trying to achieve based on link below.
https://www.aspsnippets.com/Articles/Creating-Dynamic-DropDownList-Controls-in-ASP.Net.aspx

Display Buffering/Loading message in Shiny Dashboard

I have done Shiny dashboard with 4 different tabs in the Side panel. It's all working perfectly fine. The only thing is, the fourth tab is a plotly output. When I click the tab, it should display the entire US county map.
It takes nearly 30 seconds to load the map after the tab button is clicked. Until that the screen just displays the empty body background. Is there anyway I could add a buffering/loading message that gets displayed in the body until the map is loaded? So that the user knows that the map is being loaded.. Thanks
Alternate to the progress bar there are few things you can do in this regard.
library(shinycssloaders)
usage:
withSpinner(plotOutput("my_plot"))
plotOutput("my_plot") %>% withSpinner()
If it takes 30 secs you may want to look into the Asynchronous concept in Rshiny Conference. Joe Cheng talk
probably this is still probably work in progress, but you can find alternate options will be available.

R Shiny Leaflet - Adding Content to SidebarPanel based on click events

I'm working on a Shiny dashboard which is taking a shape file from my system and using leaflet to show some categorical variable (like winning party in an election).
In the main panel, I have the map, which is colored based on winning party.
In the sidebar panel, I want to display fields of any particular constituency which has been clicked upon in a particular formatting. I can't figure out how to do this. I would also like to introduce "zoom on click" features.
Working Dashboard - sidebarpanel on right with field to be filled which can be seen in popup
Any help will be appreciated. Thanks!
EDIT1: I was also able to pass a vector array as layerId in addPolygon function but don't know how to use the layerId to retrieve other attributes.
Solved to an extent:
I used htmloutput in ui.R. Using layerId accessed other vars and passed them through renderText in server.R

Adding tabular values along with the legends in asp.net chart controls

I am stuck in preparing some chart control in the format we required. I have added the asp chart control in to my asp.net application, Where the X and Y values in the chart are displaying correctly, when i pass some values. Right now I want to display the legends along with the unit values in the chart. The following figure is my required format
I have searched every where in the net and also tried a lot, but still I dint find the way how can i display the chart like that. For an alternative I added one grid control at the bottom of chart, but its not appearing as my requirement. It is coming differently like below.
So, can any one give me an advice of how can i achieve my goal of displaying the chart like in my required format.
Thank you for not responding to my question, so any how I have done it my self by using datalist at the bottom of the chart control. I added one datalist control to the table in which chart control is present and binded the required data table to the datalist and also binded images to the datalist control at runtime from a datatable. Inorder to display the data present in datalist, i used RepearDirection property of the datalist and set it to "Horizontal". Finally my report displayed like my required format. And for the chart area, i added two types of series for the same X and Y points inorder to display Line chart as I required, one series is bubble and another is line.
So, finally my graph displayed as below.

Resources