Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
scatterPlot: restrict labels to be 100 or less
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchultheis committed Dec 21, 2017
1 parent b6243ec commit d3952a3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion R/scatterPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,16 @@ scatterPlot <- function(input, output, session, data, types, features = NULL, ma

result$highlight.color <- markerReac()$color
if(markerReac()$highlight != "Disabled" & nrow(features.r()) > 0){
result$highlight.labels <- markerReac()$label
# restrict label to 100 or less
if(length(markerReac()$label) <= 100) {
result$highlight.labels <- markerReac()$label
} else {
shiny::showNotification(
paste("Warning! Label restricted to 100 or less labels. Currently selected:", length(markerReac()$label)),
duration = 10,
type = "warning"
)
}
}

if(markerReac()$highlight == "Highlight" & nrow(features.r()) > 0){
Expand Down

0 comments on commit d3952a3

Please sign in to comment.