Altair
alt.Chart(data).mark_bar().encode( x=alt.X('a', title='Category'), y=alt.Y('b', title='Value'), color='a' # Color by category ).properties( title='My First Altair Chart', width=400, height=300 ) Use code with caution. Copied to clipboard 5. Interaction
You can save your chart as a JSON file (Vega-Lite spec) or render it as an image/HTML file. chart.save('chart.html') Use code with caution. Copied to clipboard altair
Altair works best with tidy data—long-form data where each row is an observation and each column is a variable. altair