为 Highcharter 地图创建自定义图例中断
Create a customized legend breaks for Highcharter map
我创建了一张地图,但我想自定义图例中断,不是从 0 到 100,而是从 60 到 100。如何
library(tidyverse)
library(highcharter)
mapdata <- get_data_from_map(download_map_data("custom/world"))
hcmap("custom/world", data = data, value = "Percent",
joinBy = c("iso-a3", "Code"), name = "Map",
dataLabels = list(enabled = FALSE, format = "{point.name}"),
borderColor = "#FAFAFA", borderWidth = 0.1,
tooltip = list(valueDecimals = 2, valueSuffix = "%"))
我找到了如何控制刻度的部分答案。
hc_colorAxis(tickInterval = 20)
我创建了一张地图,但我想自定义图例中断,不是从 0 到 100,而是从 60 到 100。如何
library(tidyverse)
library(highcharter)
mapdata <- get_data_from_map(download_map_data("custom/world"))
hcmap("custom/world", data = data, value = "Percent",
joinBy = c("iso-a3", "Code"), name = "Map",
dataLabels = list(enabled = FALSE, format = "{point.name}"),
borderColor = "#FAFAFA", borderWidth = 0.1,
tooltip = list(valueDecimals = 2, valueSuffix = "%"))
我找到了如何控制刻度的部分答案。 hc_colorAxis(tickInterval = 20)