I am attempting to set_continuous_color_scale on a treemap with the code below and it produces the error visible should be a boolean
df = data.frame(Count = c(10,20,30,40),
L1 = c("A", "A", "B", "B"),
L2 = c("C1", "C2", "D1", "D2"),
stringsAsFactors = FALSE)
D3partitionR() %>%
add_data(df, count = "Count", steps = c("L1","L2"), color = "Count") %>%
set_chart_type('treemap') %>%
set_continuous_color_scale(c("#aabbcc", "#112233")) %>%
plot()
I have made various attempts to set visible with set_labels_parameters, set_legend_parameters, set_tooltip_parameters and set_trail that have failed to resolve the issue.
How do I use this function (or any other method) to modify the colors? Thanks
I am attempting to
set_continuous_color_scaleon a treemap with the code below and it produces the errorvisible should be a booleanI have made various attempts to set visible with
set_labels_parameters,set_legend_parameters,set_tooltip_parametersandset_trailthat have failed to resolve the issue.How do I use this function (or any other method) to modify the colors? Thanks