Search⌘ K
AI Features

Exercise: Marks

Explore how to apply Altair's mark_text method to render text in data visualizations. Learn to customize font size, color, and style to enhance your data storytelling with clear and attractive text marks.

We'll cover the following...

Consider the following pandas DataFrame:

Python 3.10.4
import pandas as pd
df = pd.DataFrame([{'text' : 'This is a text'}])

Draw the text value. Also, set ...