I am attempting to make my first custom chart in wandb: a simple scatter plot with F-1 score as Y axis and X axis as the time the experiment run was created.
I have thus far been unable to get anything to work. I believe it may be related to having a field name with a space bank_macro avg_f1-score
? but I’m not sure. Here is what I have so far:
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A simple scatter plot.",
"data": {"name": "wandb"},
"transform": [
{
"filter": "datum['bank_macro avg_f1-score'] > 0.0"
}
],
"mark": {"type": "point", "tooltip": {"content": "data"}},
"title": "$(string:title)",
"encoding": {
"x": {"field": "${field:createdAt}", "type": "temporal"},
"y": {"field": "${field:bank_macro avg_f1-score}", "type": "quantitative", "scale": {"domain": [0.0, 1.0]}}
}
}
which produces the following:
The x axis data seems correct. But the Y axis is not correct, and it is not using the encoding I specified in the config