我偶然看到了一篇帖子(https://peltiertech.com/stacked-bar-chart-alternatives/)。我想绘制一个类似于帖子中最后提到的图表。图表的图片已附上。任何帮助都将不胜感激。
答案1
这只是一个带有彩色线条的表格,所以
\documentclass{article}
\usepackage{xcolor}
\newcommand{\myrule}[2]{\color{#1}\rule{#2}{2mm}}
\newcommand{\tbl}[1]{\myrule{blue!80!black}{#1}}
\newcommand{\qlik}[1]{\myrule{red!80!black}{#1}}
\newcommand{\orac}[1]{\myrule{orange}{#1}}
\newcommand{\tib}[1]{\myrule{pink}{#1}}
\begin{document}
\begin{tabular}{rllll}
\multicolumn{5}{c}{\textbf{How BI Customers Use Their Platforms}}\\
& Tableau & Qliktech & Oracle & Tibco\\
Using parameterized reports & \tbl{2cm} & \qlik{2cm} & \orac{3cm} & \tib{1.5cm} \\
viewing static management reports & \tbl{1.5cm} & \qlik{1.2cm} & \orac{1.1cm} & \tib{1cm} \\
\end{tabular}
\end{document}