Skip to content

Commit 9d0ea28

Browse files
committed
color to tremap_CatCatNum
1 parent 8df11e6 commit 9d0ea28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/treemap.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ hgch_treemap_CatCatNum <- function(data,
218218

219219
ColInt <- if (is.null(colors)) {
220220
getPalette()[1:Ngr]} else {
221-
colors
221+
colors <- colorRampPalette(colors)(Ngr)
222222
}
223223

224224

@@ -248,7 +248,7 @@ hgch_treemap_CatCatNum <- function(data,
248248
style = list(
249249
fontSize = '15px',
250250
fontWeight = 'bold'
251-
))))) %>%
251+
))))) %>%
252252
hc_add_theme(custom_theme(custom = theme))
253253

254254
if (export) hc <- hc %>%

0 commit comments

Comments
 (0)