# Upload custom Vega plots

**URL:** <https://community.wandb.ai/t/upload-custom-vega-plots/4537>\
**Category:** W&B Help\
**Created:** [June 7, 2023, 4:45pm UTC](https://community.wandb.ai/t/upload-custom-vega-plots/4537 "2023-06-07T16:45:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajacobsen-czb](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@ajacobsen-czb](https://community.wandb.ai/u/ajacobsen-czb)\
**Post date:** [June 7, 2023, 4:45pm UTC](https://community.wandb.ai/t/upload-custom-vega-plots/4537/1 "2023-06-07T16:45:02Z")

</div>

Hello!

I have been having a tough time with Vega. I am trying to plot ROC curves per-class, with a custom tooltip. For the tooltip, I want to show the value of ROC thresholds for each class, and I don’t want to use the WandB `wandb.plot.roc_curve` function because I want to accumulate statistics over several batches.

I’ve made _some_ progress in customizing my vega plot, but not much. I can’t seem to properly point my plot to the vega specification (no custom plot can be plotted). I can’t even find the vega specification ids that I’ve created in reports!

Is it or would it be possible to upload Vega specs along with the table? This would let us dynamically change the vega plots easily (for e.g. custom tooltips), along with many other benefits (unambiguous vega plot ID, etc). Or maybe I am barking up the completely wrong tree, and this is easier. Either way, I am curious!

Thanks

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [June 12, 2023, 6:37pm UTC](https://community.wandb.ai/t/upload-custom-vega-plots/4537/2 "2023-06-12T18:37:31Z")

</div>

Hello @ajacobsen-czb !

I did some testing and was able to see my made custom Vega script preset ([instructions](https://docs.wandb.ai/guides/app/features/custom-charts#saving-chart-presets) in documentation for ease) that I made within a report within the UI and use it within `wandb.plot_table()`. Are you able to see the spec within your custom presets in the UI?

As for uploading Vega specs along with the table, that is not a feature we currently support but I can make a feature request for you if you wish.

---

<div class="post-metadata">

**Author:** ![ajacobsen-czb](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@ajacobsen-czb](https://community.wandb.ai/u/ajacobsen-czb)\
**Post date:** [June 12, 2023, 7:11pm UTC](https://community.wandb.ai/t/upload-custom-vega-plots/4537/3 "2023-06-12T19:11:00Z")

</div>

Great! Thank you for the help. I’ll give this a try. In the mean time, I have figured out Weave, which gets me pretty much there too.

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [June 13, 2023, 11:05pm UTC](https://community.wandb.ai/t/upload-custom-vega-plots/4537/4 "2023-06-13T23:05:12Z")

</div>

Great to hear that! I will close this ticket for now but feel free to write in whenever you have questions.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [August 12, 2023, 11:05pm UTC](https://community.wandb.ai/t/upload-custom-vega-plots/4537/5 "2023-08-12T23:05:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
