VOOZH about

URL: https://www.geeksforgeeks.org/python/how-to-make-custom-buttons-in-plotly/

⇱ How to make Custom Buttons in Plotly? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to make Custom Buttons in Plotly?

Last Updated : 1 Oct, 2020

A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library. 

Making Custom Buttons

In plotly, actions custom Buttons are used to quickly make actions directly from a record. Custom Buttons can be added to page layouts in CRM, Marketing, and Custom Apps. There are 4 possible methods that can be applied in custom buttons:

  • restyle: modify data or data attributes
  • relayout: modify layout attributes
  • update: modify data and layout attributes
  • animate: start or pause an animation

Example 1: Using Restyle Method

Output:

👁 Image

Example 2: Using Update method

Output:

👁 Image
Comment
Article Tags:
Article Tags: