logo

... altair: tooltip



Notes

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())

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.