You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-13
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ Tool to analyze and visualize dependencies between cells in Excel spreadsheets i
8
8
9
9
Will generate a graph of the dependencies between cells in an Excel spreadsheet. Data extracted with `openpyxl` (<https://foss.heptapod.net/openpyxl/openpyxl>), the graph is generated with the `networkx` library (<https://networkx.org/>) and is visualized using `matplotlib`.
10
10
11
-
This is a simple tool and maybe even naïve in its approach - it was hacked together in two evenings and would benefit from some refactoring and more features. It is meant as a starting point for further development.
12
11
<brclear="right"/>
13
12
14
13
## Definitions
@@ -39,10 +38,6 @@ graph TD
39
38
40
39
```
41
40
42
-
The way the graph is built is by iterating over all cells in the spreadsheet and extracting the references in the formula of each cell. The references are then added as edges in the graph.
43
-
44
-
A cell within a range is considered a dependency of the range itself, but not of the other cells in the range.
Depending on the size of the spreadsheet you might want to adjust the plot configuration in the code to to make the graph more readable (remove labels, decrease widths and sizes etc)
70
-
71
-
In [graph_visualizer.py](src/graph_visualizer.py) you will find three configuration for small, medium and large graphs. You can adjust the configuration to your needs.
64
+
Depending on the size of the spreadsheet you might want to adjust the plot configuration in the code to to make the graph more readable (remove labels, decrease widths and sizes etc) - you can find the configuration in [graph_visualizer.py](src/graphedexcel/graph_visualizer.py) with settings for small, medium and large graphs. You can adjust the configuration to your needs - but this only working if you run from source.
72
65
73
66
### Arguments
74
67
75
-
`--verbose` will dump formula cell contents during (more quiet)
68
+
`--verbose` will dump formula cell contents during (more noisy)
76
69
77
70
`--no-visualize` will skip the visualization step and only print the summary (faster)
78
71
@@ -82,7 +75,7 @@ In [graph_visualizer.py](src/graph_visualizer.py) you will find three configurat
82
75
83
76
## Sample output
84
77
85
-
The following is the output of running the script on the provided`docs/Book1.xlsx` file.
78
+
The following is the output of running the script on the sample`docs/Book1.xlsx` file.
86
79
87
80
```bash
88
81
=== Dependency Graph Summary ===
@@ -114,14 +107,16 @@ Graph visualization saved to images/.\Book1.xlsx.png
0 commit comments