Tooltip logo altair: tooltip

1 2 3 4 5 6 7 8 9

One of the best features of altair is the ability to add a simple interactive tooltip to your chart.

Here's how you can add the tooltip.

(alt.Chart(plot_df)
  .mark_point(color='black')
  .encode(x='yday', y='births', tooltip=['date', 'births', 'wday'])
  .properties(width=600, height=300)
  .interactive())