v1.1 fully mobile compatible (scrolling spaced, coefficient plots removed & radar plots visible)
Build and Push Docker Image / build (push) Successful in 1m10s
Build and Push Docker Image / build (push) Successful in 1m10s
This commit is contained in:
@@ -37,6 +37,12 @@ server <- function(input, output, session) {
|
||||
output$league_characteristics_plot <- renderPlotly({
|
||||
width <- ifelse(is.null(input$screen_width), 760, input$screen_width)
|
||||
|
||||
domain_size <- if(width <= 767) {
|
||||
c(0.2, 0.8)
|
||||
} else {
|
||||
c(0.02, 0.98)
|
||||
}
|
||||
|
||||
country_data <- league_averages_plot_selected_data()
|
||||
values <- as.numeric(country_data[1, -1])
|
||||
|
||||
@@ -45,6 +51,7 @@ server <- function(input, output, session) {
|
||||
theta_labels <- gsub("4 ", "4<br>", theta_labels)
|
||||
theta_labels <- gsub("number ", "number<br>", theta_labels)
|
||||
theta_labels <- gsub("by ", "by<br>", theta_labels)
|
||||
theta_labels <- gsub("Gini ", "Gini<br>", theta_labels)
|
||||
|
||||
custom_plotly(type = 'scatterpolar', fill = 'toself', hoverinfo = "none", xaxis_title = "", yaxis_title = "", width = width) %>%
|
||||
add_trace(
|
||||
@@ -53,7 +60,10 @@ server <- function(input, output, session) {
|
||||
) %>%
|
||||
layout(
|
||||
margin = list(t = 50),
|
||||
polar = list(radialaxis = list(range = c(0,1))),
|
||||
polar = list(
|
||||
domain = list(x = domain_size),
|
||||
radialaxis = list(range = c(0,1))
|
||||
),
|
||||
showlegend = FALSE
|
||||
)
|
||||
})
|
||||
@@ -74,6 +84,12 @@ server <- function(input, output, session) {
|
||||
output$basic_profiles_characteristic_plot <- renderPlotly({
|
||||
width <- ifelse(is.null(input$screen_width), 760, input$screen_width)
|
||||
|
||||
domain_size <- if(width <= 767) {
|
||||
c(0.2, 0.8)
|
||||
} else {
|
||||
c(0.02, 0.98)
|
||||
}
|
||||
|
||||
group_data <- basic_profiless_plot_selected_data()
|
||||
values <- as.numeric(group_data[1, 2:10])
|
||||
|
||||
@@ -82,6 +98,7 @@ server <- function(input, output, session) {
|
||||
theta_labels <- gsub("4 ", "4<br>", theta_labels)
|
||||
theta_labels <- gsub("number ", "number<br>", theta_labels)
|
||||
theta_labels <- gsub("by ", "by<br>", theta_labels)
|
||||
theta_labels <- gsub("Gini ", "Gini<br>", theta_labels)
|
||||
|
||||
custom_plotly(type = 'scatterpolar', fill = 'toself', hoverinfo = "none", xaxis_title = "", yaxis_title = "", width = width) %>%
|
||||
add_trace(
|
||||
@@ -90,7 +107,10 @@ server <- function(input, output, session) {
|
||||
) %>%
|
||||
layout(
|
||||
margin = list(t = 50),
|
||||
polar = list(radialaxis = list(range = c(-0.4,0.4))),
|
||||
polar = list(
|
||||
domain = list(x = domain_size),
|
||||
radialaxis = list(range = c(-0.4,0.4))
|
||||
),
|
||||
showlegend = FALSE
|
||||
)
|
||||
})
|
||||
@@ -185,6 +205,12 @@ server <- function(input, output, session) {
|
||||
#plotting radar chart
|
||||
output$clustering_characteristics_plot <- renderPlotly({
|
||||
width <- ifelse(is.null(input$screen_width), 760, input$screen_width)
|
||||
|
||||
domain_size <- if(width <= 767) {
|
||||
c(0.2, 0.8)
|
||||
} else {
|
||||
c(0.02, 0.98)
|
||||
}
|
||||
|
||||
group_data <- clustering_plot_selected_data()
|
||||
values <- as.numeric(group_data[1, 2:10])
|
||||
@@ -194,6 +220,7 @@ server <- function(input, output, session) {
|
||||
theta_labels <- gsub("4 ", "4<br>", theta_labels)
|
||||
theta_labels <- gsub("number ", "number<br>", theta_labels)
|
||||
theta_labels <- gsub("by ", "by<br>", theta_labels)
|
||||
theta_labels <- gsub("Gini ", "Gini<br>", theta_labels)
|
||||
|
||||
custom_plotly(type = 'scatterpolar', fill = 'toself', hoverinfo = "none", xaxis_title = "", yaxis_title = "", width = width) %>%
|
||||
add_trace(
|
||||
@@ -202,7 +229,10 @@ server <- function(input, output, session) {
|
||||
) %>%
|
||||
layout(
|
||||
margin = list(t = 50),
|
||||
polar = list(radialaxis = list(range = c(-0.7,1.5))),
|
||||
polar = list(
|
||||
domain = list(x = domain_size),
|
||||
radialaxis = list(range = c(-0.7,1.5))
|
||||
),
|
||||
showlegend = FALSE
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user