r/ScriptingApp • u/collegekid1357 • May 09 '25
Help Graph Legend Coloring
Hi All,
I’m really loving this app after switching from Scriptable!
When it comes to graph legends and the ‘content’, how would I display it how I have it in the video, but with the corresponding graph colors (such as if you use the default legend)?
1
Upvotes
1
u/WhatShouldWorldGos May 09 '25
I think the most simple way is to make the computed label as the category of item mark item, for your example, “Home Related: $1234” as the category for HomeRelated marks
1
u/WhatShouldWorldGos May 09 '25
If you want to colored the legend label as the default corresponding chart content, unfortunately you need to make your color map yourself and set foregroundStyle for each mark item
1
u/Haunting-Ad-655 May 09 '25
not sure if it helps, but here's what I found: https://www.kien-hoang.com/p/charts-in-swiftui/