code: def construct_display_graph(n_clicks) -> FigureResampler:
      fig = FigureResampler(
          go.Figure(),
          default_n_shown_samples=2_000,
          default_downsampler=MinMaxLTTB(parallel=True),
      )
  
      # Figure construction logic based on a state variable, in our case n_clicks
      sigma = n_clicks * 1e-6
      fig.add_trace(
          dict(name="log"), hf_x=x, hf_y=noisy_sin * (1 - sigma) ** x
      )
      fig.add_trace(
          dict(name="exp"), hf_x=x, hf_y=noisy_sin * (1 + sigma) ** x
      )
      fig.update_layout(title=f"<b>graph - {n_clicks}</b>", title_x=0.5)
  
      return fig, Serverside(fig)
  
file_path: plotly-resampler/examples/dash_apps/03_minimal_cache_dynamic.py
imports: from typing import List
  from uuid import uuid4
  import numpy
  import plotly.graph_objects
  from dash import MATCH, Input, Output, State, dcc, html, no_update
  from dash_extensions.enrich import DashProxy, Serverside, ServersideOutputTransform, Trigger, TriggerTransform
  from plotly_resampler import FigureResampler
  from plotly_resampler.aggregation import MinMaxLTTB
label_desc: Use image node_id 2 for calling a global function with example usage: construct_display_graph(n_clicks) and returns: fig,  Serverside