我正在尝试制作一份精美的简历,并希望在其中包含一个饼状技能图表(见下图)。关于如何在 Latex 中创建此图像,您有什么想法吗?
谢谢你的帮助,干杯
答案1
这里有一个起点。中央圆形节点被一些宽弧线包围。根据您的喜好更改线宽、颜色和角度。
\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}[font=\sffamily\bfseries\large,
text=white,
border/.style={line width=14mm}]
\foreach \angle/\col [remember=\angle as \last (initially 0)] in
{90/blue, 125/cyan, 160/green!30!black, 210/green, 270/orange, 360/red}{
\draw[\col, border] (\last:2cm)
arc[start angle=\last, end angle=\angle, radius=2cm];
\draw[white, line width=1mm] (\last:1.3)--++(\last:1.4);
}
\node[line width=1mm, draw, circle, minimum width=2.5cm, white, fill=blue!80] {C/C++};
\node at (60:2cm) {Python};
\node at (108:2cm) {Other};
\node at (143:2cm) {Java};
\node[text width=1cm, align=center, font=\sffamily\bfseries\small] at (185:2cm)
{HTML CSS JS PHP};
\node at (240:2cm) {Bash};
\node at (295:2cm) {Android};
\end{tikzpicture}
\end{document}