-
QuestionIs there a way to add a black border to bar and arc charts similar to this: MWEimport pandas as pd
import altair as alt
source = pd.DataFrame({"category": [1, 2, 3, 4, 5, 6], "value": [4, 6, 10, 3, 7, 8]})
alt.Chart(source).mark_arc().encode(
theta=alt.Theta(field="value", type="quantitative"),
color=alt.Color(field="category", type="nominal"),
) |
Beta Was this translation helpful? Give feedback.
Answered by
jonmmease
Mar 24, 2023
Replies: 1 comment 1 reply
-
Yes, you can use the import pandas as pd
import altair as alt
source = pd.DataFrame({"category": [1, 2, 3, 4, 5, 6], "value": [4, 6, 10, 3, 7, 8]})
alt.Chart(source).mark_arc(stroke="black", strokeWidth=3).encode(
theta=alt.Theta(field="value", type="quantitative"),
color=alt.Color(field="category", type="nominal"),
) Hope that helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mcp292
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use the
stroke
andstrokeWidth
arguments tomark_arc
:Hope that helps!