ZahirJS commited on
Commit
9f1ff75
·
verified ·
1 Parent(s): c6aedab

Update radial_diagram_generator.py

Browse files
Files changed (1) hide show
  1. radial_diagram_generator.py +2 -4
radial_diagram_generator.py CHANGED
@@ -4,15 +4,13 @@ from tempfile import NamedTemporaryFile
4
  import os
5
  from graph_generator_utils import add_nodes_and_edges
6
 
7
- def generate_radial_diagram(json_input: str, base_color: str) -> str: # base_color is now correctly used
8
  """
9
  Generates a radial (center-expanded) diagram from JSON input.
10
 
11
  Args:
12
  json_input (str): A JSON string describing the radial diagram structure.
13
  It must follow the Expected JSON Format Example below.
14
- base_color (str): The hexadecimal color string (e.g., '#19191a') for the base
15
- color of the nodes, from which a gradient will be generated.
16
 
17
  Returns:
18
  str: The filepath to the generated PNG image file.
@@ -81,7 +79,7 @@ def generate_radial_diagram(json_input: str, base_color: str) -> str: # base_col
81
  }
82
  )
83
 
84
- # This line was REMOVED to ensure the passed base_color is used: base_color = '#19191a'
85
 
86
  # Central node styling (rounded box, dark color)
87
  dot.node(
 
4
  import os
5
  from graph_generator_utils import add_nodes_and_edges
6
 
7
+ def generate_radial_diagram(json_input: str) -> str: # Removed base_color parameter
8
  """
9
  Generates a radial (center-expanded) diagram from JSON input.
10
 
11
  Args:
12
  json_input (str): A JSON string describing the radial diagram structure.
13
  It must follow the Expected JSON Format Example below.
 
 
14
 
15
  Returns:
16
  str: The filepath to the generated PNG image file.
 
79
  }
80
  )
81
 
82
+ base_color = '#19191a' # Hardcoded base color
83
 
84
  # Central node styling (rounded box, dark color)
85
  dot.node(