2

Often I see in a paper a table with a column of circles which are filled for 25/50/75/100% to show priority/level of meeting requirements, to mention yes/no/unknown/NA etc?

  • Do such (usage of) circles have a specific name?
    • How can I add such circles to a table in an easy way?
    • What are common other (visualization) techniques used in scientific papers to visualize this kind of levels/ranking/categorization? So far I have seen these circles and ++ .. --. But I am novice so maybe there are more techniques.

Thanks

3

2 Answers 2

6

Do you mean something like below? Make sure to define your own commands. Like this, you can still switch to something different later on

% arara: lualatex

\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{unicode-math}
\setmathfont{xits-Math}
\newcommand*{\noPrior}{\ensuremath{\mdlgwhtcircle}}
\newcommand*{\quarterPrior}{\ensuremath{\circleurquadblack}}
\newcommand*{\halfPrior}{\ensuremath{\circlerighthalfblack}}
\newcommand*{\threeQuarterPrior}{\ensuremath{\blackcircleulquadwhite}}
\newcommand*{\fullPrior}{\ensuremath{\mdlgblkcircle}}

\begin{document}
\begin{tabular}{lr}
    \toprule
    Symbol & Meaning\\
    \midrule
    \noPrior & \SI{0}{\percent}\\
    \quarterPrior & \SI{25}{\percent}\\
    \halfPrior & \SI{50}{\percent}\\
    \threeQuarterPrior & \SI{75}{\percent}\\
    \fullPrior & \SI{100}{\percent}\\
    \bottomrule
\end{tabular}
\end{document}

enter image description here


Here is an idea for TikZ:

% arara: pdflatex

\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{tikz}
\newcommand*{\priority}[1]{\begin{tikzpicture}[scale=0.15]%
    \draw (0,0) circle (1);
    \ifthenelse{#1>0}{\fill[fill opacity=0.5,fill=blue] (0,0) -- (90:1) arc (90:90-#1*3.6:1) -- cycle;}{}
    \end{tikzpicture}}

\begin{document}
\begin{tabular}{lr}
    \toprule
    Symbol & Meaning\\
    \midrule
    \priority{0} & \SI{0}{\percent}\\
    \priority{15} & \SI{15}{\percent}\\
    \priority{33} & \SI{33}{\percent}\\
    \priority{75} & \SI{75}{\percent}\\
    \priority{100} & \SI{100}{\percent}\\
    \bottomrule
\end{tabular}
\end{document}

enter image description here

2
  • Yes cool however not usable for plain pdflatex. Also is there a TIKZ impl which works from 0% to 100%?
    – robert
    Jan 11, 2016 at 17:21
  • @robert Pls see my edit.
    – LaRiFaRi
    Jan 11, 2016 at 17:33
1

For 0%, 50%, and 100% you could use the fontawesome glyphs \faCircleO, \faAdjust, and \faCircle. Requires xelatex or lualatex.

\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\faCircle
\faAdjust
\faCircleO
\end{document}

enter image description here

1
  • Thank you :) Exactly what I was looking for. Jan 18, 2021 at 4:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .