Related: data visualization


Default Colour List

colour_list = ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b’]

Creating Animated Graphs

  1. Create figure containing empty data, layout, frames and config
    • data and frames are dictionaries
      • data is essentially a frame at t = 0
      • frames have additional name property, which held the slider identify and link with it, making animations interactive
    • layout is a list
  2. Define layout to include buttons and updatemenus
  3. Define a slider dictionary
    • This dictionary stores properties of slider
    • slider_steps calculated above goes into steps field here