4
votes
Accepted
Create graph from CSV of percentage figures
Things are easier with the data transposed:
\documentclass[border=10pt]{standalone}
\begin{filecontents}{operating-profit-margin-data.csv}
Year,2018,2019,2020,2021,2022
Industry benchmark,28.83,14.11,...
3
votes
Create graph from CSV of percentage figures
Try this:
Output:
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Operating Profit Margin},
xlabel={},
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pgfplotstable × 1119pgfplots × 509
tikz-pgf × 238
tables × 173
csv × 46
longtable × 36
pgfmath × 29
bar-chart × 26
macros × 25
siunitx × 25
color × 18
foreach × 17
formatting × 15
plot × 15
vertical-alignment × 13
horizontal-alignment × 11
tabularx × 11
beamer × 10
graphics × 10
pdftex × 10
conditionals × 10
multicolumn × 10
columns × 10
boxplot × 10
filecontents × 10