Radar chart (spider chart)
A radar chart places several metrics on spokes around a circle and connects each item's values into a polygon, giving a quick visual profile for comparing two or three items.
When to use it
- Comparing two or three items across five to eight metrics on the same scale.
- The overall profile shape matters more than exact values.
Watch out: The polygon's area depends on the order of the axes, and more than three overlapping shapes become unreadable.
Ask for it in pltchat
Upload your file and type something like:
"radar chart comparing the three models on all metrics"
pltchat writes the loader and the plot for your columns, runs it in your browser and shows you the code.
The matplotlib code
Self-contained with example data; swap in pd.read_csv(...) or
pd.read_excel(...) for your own file.
import numpy as np
import matplotlib.pyplot as plt
metrics = ["Speed", "Accuracy", "Cost", "Robustness", "Ease of use", "Support"]
scores = {"Model A": [4, 5, 2, 3, 4, 3], "Model B": [3, 3, 5, 4, 3, 4]}
angles = np.linspace(0, 2 * np.pi, len(metrics), endpoint=False).tolist()
angles += angles[:1]
fig, ax = plt.subplots(figsize=(5, 5), subplot_kw={"projection": "polar"})
for name, vals in scores.items():
vals = vals + vals[:1]
ax.plot(angles, vals, label=name)
ax.fill(angles, vals, alpha=0.2)
ax.set_xticks(angles[:-1], metrics)
ax.set_ylim(0, 5)
ax.legend(loc="upper right", bbox_to_anchor=(1.25, 1.1))
plt.tight_layout()
plt.show()
Upload a CSV, Excel, JSON or Parquet file. Your first plot is always free.