我正试着在choropleth地图上用色标编码百分比。如何格式化刻度以显示百分比值(例如10%),而不是分数值(例如0.1)?我知道对于常规的X或Y轴,您可以执行axis=alt.Axis(format='.0%'),但我不知道如何对此色标使用格式。import altair as altfrom vega_datasets import data
alt.renderers.enable('notebook
我认为错误一定是出现在choropleth映射的'key_on‘参数中,但我不知道我做错了什么。我检查了原始的geojson文件,似乎有正确的路径。threshold_scale+ 1 # make sure that the last value of the list is greater than the maximum imm