Hi
This questions is related to this other one: https://discourse.julialang.org/t/how-to-make-vegalite-read-my-topojson-file/34546/12
The goal is to make a choropleth map.
I was succesful in reading a topojson file. Now I have to read a dataframe (df_splunk). This dataframe has many columns but “count” is the one to be used as it will give the intensity of color to the map.
This is my code:
@vlplot(width=800, height=600) +
@vlplot(
mark={
:geoshape
},
data={
values=JSON.parsefile("/home/juliana/roc/Data/Topojson/disa_ONT_region.topojson"),
format={
typ=:topojson,
feature=:disa_ONT_region
}
},
transform=[{
lookup=:featureId,
from={
data=df_splunk,
key=:featureId,
fields=["count"]
}
}],
projection={
typ=:albersUsa
},
color="rate:q"
)
The error that I am getting is the following:
WARN Infinite extent for field "rate": [Infinity, -Infinity]
Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"
WARN Infinite extent for field "rate": [Infinity, -Infinity]
Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"
I get the same error when I just want to make a barplot of the same dataframe:
df_splunk |> @vlplot(:bar, x=:count, y="featureId:o")
Even when using a very small dataframe (df_x). But at least here I can see the plot.