Code:
\documentclass[]{scrartcl}
\usepackage{pdflscape}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{booktabs}
\usepackage{array}
\usepackage{colortbl}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{patterns}
\usetikzlibrary{plotmarks}
\usetikzlibrary{fit}
\pgfplotsset{compat=newest}
\newcount\kencounter
\global\kencounter=0
\usepackage{filecontents}
\begin{filecontents}{crreports.csv}
Name;Eco;Env;Soc;Size
Avon - 2011;35.85;22.64;41.51;3.04
BBC - 2010;9.52;66.67;23.81;3.01
Bertelsmann - 2011;13.79;40.23;45.98;0
British Airways - 2011;7.69;90.38;1.92;3.04
Chevron - 2010;44.93;24.64;30.43;3.01
Coca-Cola Enterprises - 2010;17.95;46.15;35.90;3.06
Danske Bank Group - 2011;16.87;54.22;28.92;3.02
Dell - 2011;6.49;35.06;58.44;3.10
Freshfields Bruckhaus Deringer - 2011;15.94;37.68;46.38;3.01
GlaxoSmithKline - 2010;17.59;67.59;14.81;3.06
Henry Davis York - 2011;18.75;62.50;18.75;3.01
IBM - 2010;24.24;33.33;42.42;3.13
Intel - 2010;40.88;29.41;29.71;3.28
Kelloggs - 2010;14.29;52.38;33.33;3.09
Nike - 2007 2008 2009;16.19;42.51;41.30;3.12
Novo Nordisk - 2011;24.83;16.11;59.06;3.01
RWE npower - 2010;15.38;46.15;38.46;0
Sainsbury - 2011;31.17;45.45;23.38;3.04
Siemens UK - 2010;15.79;57.89;26.32;0
Starbucks - 2010;36.84;21.05;42.11;3.01
Tesco - 2011;8.86;81.01;10.13;3.11
The Co-operative Group - 2010;18.75;9.56;71.69;3.02
TEST ; 33.33 ; 33.33 ; 33.33 ; 15
% TEST ; 100 ; 0 ; 0 ; 15
% TEST ; 0 ; 100 ; 0 ; 15
% TEST ; 0 ; 0 ; 100 ; 15
\end{filecontents}
\begin{document}
\begin{landscape}
\begin{tikzpicture}
\begin{axis}[
view={45}{45},
width=1.40\textwidth,
xlabel={Economical},
ylabel={Environmental},
zlabel={Social},
title=Focus of CR Report,
% axis lines=center,
% nodes near coords={(\thisrowno{0})},
% axis on top,
grid=major,
z buffer=sort,
xmin=0,xmax=100,
ymin=0,ymax=100,
zmin=0,zmax=100,
enlargelimits=upper,
xtick={0,20,...,100},
ytick={0,20,...,100},
ztick={0,20,...,100},
title={Results from some CR Reports}]
\addplot3+[
only marks,
scatter,
visualization depends on={\thisrowno{4} \as \perpointmarksize},
scatter/@pre marker code/.append style= {/tikz/mark size=\perpointmarksize}
] table
[
x={Eco},
y={Env},
z={Soc},
col sep=semicolon
]{crreports.csv};
\addplot3[surf,mesh/rows=3] coordinates {
(100,0,0) (0,100,0) (0,0,100)
(0,100,0) (0,0,100) (100,0,0)
(0,0,100) (100,0,0) (0,100,0)
};
\addplot3[surf,mesh/rows=3] coordinates {
(33.33,0,0) (0,33.33,0) (0,0,33.33)
(0,33.33,0) (0,0,33.33) (33.33,0,0)
(0,0,33.33) (33.33,0,0) (0,33.33,0)
};
\end{axis}
\end{tikzpicture}
\end{landscape}
\end{document}
Lesezeichen