'How to show part of the repeated chart in altair
i have used repeat in altair and the Result looks like this.
i was wondering how can i only show the Lower part that i have marked with a Red triangle.
the code that i have used:
from sklearn import datasets
import altair as alt
data_wine = datasets.load_wine (as_frame = True).frame
features = data_wine.columns.values[data_wine.columns.values != 'target']
alt.Chart(data_wine).mark_circle().encode(
alt.X(alt.repeat("column"), type = 'quantitative', scale = alt.Scale (nice = True)),
alt.Y(alt.repeat("row"), type = 'quantitative', scale = alt.Scale (nice = True)),
color = 'target:N'
).properties(
width=150,
height=150
).repeat(
row = features,
column = features
)#.interactive()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

