You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we wrap the text and try to use it with layer, fill, and facet, the plot created is all incorrect.
# dataimportaltairasaltimportpandasaspdimporttextwrapx= ['a long long long long long long title', 'a long long long long long long title',
'a long long long long long long title', 'a long long long long long long title',
'another long long long title', 'another long long long title',
'another long long long title', 'another long long long title']
df=pd.DataFrame({
'y': [10, 20, 30 , 40] *2,
'x': x,
'fill' : ['a', 'b', 'a', 'b'] *2,
'facet' : ['case 1', 'case 1', 'case 2', 'case 2'] *2
})
df_wrapped=df.copy()
df_wrapped['x'] = [s.split(' ') forsindf['x']]
This works as intended for the bar and text in the plot, but the labels are not readable:
What happened?
When we wrap the text and try to use it with layer, fill, and facet, the plot created is all incorrect.
This works as intended for the bar and text in the plot, but the labels are not readable:
If we wrap the labels, the bars and text are incorrectly placed in the plot:
What would you like to happen instead?
No response
Which version of Altair are you using?
No response
The text was updated successfully, but these errors were encountered: