|
12 | 12 | "source": [
|
13 | 13 | "## Bar Chart Race: Top 10 Vendors by CVE Count (2002–2024)\n",
|
14 | 14 | "\n",
|
15 |
| - "This script generates a dynamic bar chart race showcasing the top 10 vendors by CVE count over time (2002–2024). The visualization highlights trends and shifts in vulnerability disclosures across two decades in an engaging video format.\n", |
| 15 | + "This script generates a dynamic bar chart race showcasing the top 5 vendors by CVE count over time (2002–2024). The visualization highlights trends and shifts in vulnerability disclosures across two decades in an engaging video format.\n", |
16 | 16 | "\n",
|
17 | 17 | "---\n",
|
18 | 18 | "\n",
|
|
40 | 40 | " - **Fallback Colors**: Vendors without defined colors are assigned visually distinct fallback colors from a predefined color palette (`tab20`).\n",
|
41 | 41 | "\n",
|
42 | 42 | "5. **Generate the Bar Chart Race**:\n",
|
43 |
| - " - Animates the top 10 vendors dynamically over time:\n", |
| 43 | + " - Animates the top 5 vendors dynamically over time:\n", |
44 | 44 | " - Bars update their values and order based on cumulative CVE counts.\n",
|
45 | 45 | " - Customizable parameters enhance readability and aesthetics.\n",
|
46 | 46 | " - Saves the animation as an `.mp4` file for high-quality sharing.\n",
|
|
85 | 85 | {
|
86 | 86 | "metadata": {
|
87 | 87 | "ExecuteTime": {
|
88 |
| - "end_time": "2025-01-05T13:10:58.590215Z", |
89 |
| - "start_time": "2025-01-05T13:03:34.083722Z" |
| 88 | + "end_time": "2025-01-05T13:39:15.508308Z", |
| 89 | + "start_time": "2025-01-05T13:36:46.755819Z" |
90 | 90 | }
|
91 | 91 | },
|
92 | 92 | "cell_type": "code",
|
|
260 | 260 | " filename=output_file, # Path to save the output file (e.g., .mp4 or .gif)\n",
|
261 | 261 | " orientation=\"h\", # Horizontal bar chart orientation\n",
|
262 | 262 | " sort=\"desc\", # Sort bars in descending order by value\n",
|
263 |
| - " n_bars=10, # Display the top 10 vendors at any given time\n", |
| 263 | + " n_bars=5, # Display the top 5 vendors at any given time\n", |
264 | 264 | " fixed_order=False, # Dynamically adjust the order of bars based on value\n",
|
265 | 265 | " fixed_max=True, # Keep the maximum value on the y-axis consistent across all frames\n",
|
266 |
| - " steps_per_period=20, # Number of steps (frames) per period for smoother transitions\n", |
267 |
| - " period_length=600, # Duration of each period in milliseconds (controls animation speed)\n", |
| 266 | + " steps_per_period=10, # Number of steps (frames) per period for smoother transitions\n", |
| 267 | + " period_length=400, # Duration of each period in milliseconds (controls animation speed)\n", |
268 | 268 | " interpolate_period=True, # Smoothly interpolate values between periods\n",
|
269 | 269 | " label_bars=True, # Display values as labels inside the bars\n",
|
270 | 270 | " bar_size=0.85, # Adjust bar thickness (0.85 means bars take up 85% of the space)\n",
|
|
0 commit comments